SB Apprenticeship: Day 41

Today is voting day for municipal primaries! If you're in NC, check the Board of Elections to see if there's one going on in your town!

Today is voting day for municipal primaries! If you’re in NC, check the Board of Elections to see if there’s one going on in your town!

  • What did you learn yesterday?
  • What are you going to do today?
  • What do you expect to learn?

Yesterday I learned that apparently it’s impossible to confirm that a modal dialogue exists using Capybara-Webkit. When I look online, I find ways to accept or dismiss the alert, which in theory ought to work also: if you can confirm an alert than the alert obviously exists, but when I try I just get Unable to find modal dialog (Capybara::ModalNotFound). I was originally supposed to use Selenium for this, but Brandon suggested Webkit instead, and I’m beginning to think he did it solely to troll me. Of course, when he gets in and I manage to corner him for help, it’s going to be like three words that he just knows off the top of his head. *sigh* I’m getting a lot of use out of the ¯\_(ツ)_/¯ emoji lately.

Today I am going to fight with this stupid JavaScript stuff some more. After I get that working, there’s only one more Scenario in the Administration feature, so that’ll be a nice accomplishment. I just realized that I never actually did the blog kata that I was supposed to work on, so I may take time this afternoon and work on that instead.

With any luck I’ll learn that I was looking in the wrong place for the answers to my Webkit problems, and Brandon will show me a magical resource that will answer all my questions, leaving me content and happy at my keyboard. What do we think the chances of that actually happening are?

SB Apprenticeship: Day 39

My coworkers have a Minecraft world they play in, so I finally got motivated to try it out. Four hours later, this is my house!

My coworkers have a Minecraft world they play in, so I finally got motivated to try it out. Four hours later, this is my house!

I’m not a gamer. I never have been, for a lot of reasons — I never played as a kid, I don’t have any consoles, I’m kind of super ADD, I never really knew what to play, so many games have a reputation for being horrifically sexist…etc. The games I’ve enjoyed have all been puzzle games, like Portal or Braid or Thomas Was Alone. I’ve been curious about sandbox games like Minecraft or The Sims for a while now, but I know myself — it’s all or nothing. Like last night, for instance, I started playing and the next thing I know it’s midnight and I really ought to be getting ready for bed — but I just finished smelting all this glass, I need to make my house have windows! I didn’t manage to get anything I meant to do last night done, so the poor kitties will have to live with a dirty litterbox until tonight. Anyone have any tips on how to prevent losing hours and hours to a video game?

  • What did you learn yesterday?
  • What are you going to do today?
  • What do you expect to learn?

So, aside from learning that Minecraft is dangerously addictive, I learned that, despite all being organized into neat little files, Cucumber tests all run together. It goes through all the step files when I run the tests, so when I solve And I click the "Login" button in the Account Creation steps, Admin Authentication can also use it when those steps run. For some reason it took Brandon three times explaining this for me to really grasp it. But! I think I have it now! The thing that was confusing me was that I would run my tests and one would fail that wasn’t actually in my list, which would throw me off.

I also learned that Github doesn’t count commits that are made to a branch in my little contributions map until the branch is merged into master. I set myself the goal of making at least one commit a day for the month of October, but it looks like I failed on the very first day! Booooo. Of course, I had planned to do a chapter of the Rails Tutorial when I got home, until Minecraft ate my evening.

Current streak: 0 days. *sob*

Current streak: 0 days. *sob* 

I need some kind of clever name for this goal. Commit October? Git October? Codetober? Some sort of horror movie reference about being committed (like to a mental institution?) Maybe that’s ableist. I’ve never been great at coming up with names. Any great ideas out there?

Today is labs day! This never actually means much to me since I mostly just continue whatever I was working on during the week, but there are more distractions. Derek, one of the previous apprentices who is now a junior dev is hosting a lunch and learn on Cucumber that I plan on attending, so hopefully I’ll learn more about how Cucumber and Capybara work. I’m working on the Admin Authentication tests, so I think that means I’m going to actually write some code and get the bookstore app really started.

Wouldn’t it be cool if I emerge from today an expert in Cucumber? Flying through my tests and crafting beautiful code and totally being a successful junior dev. Ahh.

SB Apprenticeship: Day 36

I have blue hair, a red panda skirt and a job that doesn't care at all about either. I'm definitely adulting right.

I have blue hair, a red panda skirt and a job that doesn’t care at all about either. I’m definitely adulting right.

  • What did you learn yesterday?
  • What are you going to do today?
  • What do you expect to learn?

Why am I still having problems with Github? I’m ok with creating a new repo on the site, and I’m ok once I get it linked up to my laptop, but the process of connecting the two is fraught with indecision for me. I have to either look it up or ask every time. Sigh. It’s like everything involving me and coding: once I get started I’m generally ok, but getting started is always a big pain. I wonder how long it takes for that to go away?

Yesterday Brandon and I set up my project, got Devise installed and passed a whole bunch of the Cucumber tests. I didn’t realize that this was going to be similar to the Battleship project at TIY; they wrote all the tests and I have to make them pass. It’s still a lot of work, but there’s some guidance, and that makes me feel better. I still can’t really imagine *working* as a coder, like coming in in the morning and sitting down to program. Just knowing what to do. I guess that’s where Agile and meetings and stuff come in, but it’s all still a bit foreign to me. Devise is pretty cool, there’s a lot going on under the hood there and I think it’s going to make my life a lot easier. It was also easier to set up than I thought; there were a lot of steps, but the readme was clear and there was never a part where I felt lost or confused.

Today I’m going to read up on Capybara and work more on the bookstore, at least in between meetings. I signed up for the blogging task force, and there’s the initial meeting for that at 11, then at noon there’s a lunch and learn about the new HR policies. I’ll at least have the whole afternoon to work, though. I’m looking forward to being on the blogging task force, I’ve been enjoying writing here every day. I’m still not sure if I should be putting all that behind me and focusing solely on coding, but I guess I’ll figure all that out.

I expect to learn more about how Capybara works with Cucumber. The test suite I’m working on now is all the account creation stuff, so I think it will be fairly familiar.