Wednesday — JS Store and Codebar

Today was another massive day, I’m really going to need a break one of these days. Come on Saturday!

This morning I got up early and went in to Makers. I started planning out my Javascript Web Store project that I’m working on, did a basic readme, and diagrammed out how I’m going to implement it.

I didn’t get very far as I realised I didn’t know how to quickly change between files in Vim (and I want to use Vim as much as possible going forward). I ended up messaging my coach, who came down and helped me get set up!

I ended up forking his repo for his home files, and this is going to replace my dotfiles repo I did on Monday.

It took a little while, but we got it sorted. It was really nice of him to help me out.

Then I started on the clothes store web app. I’ve decided that I’m going to do the following objects: product, shopping cart, voucher and shop will be my controller. I may actually end up just making the shop the index.html file (that the user interacts with).

I TDD’d the product object, and got most of the shopping cart done. First thing tomorrow I’ve still got to deal with prices and vouchers, but I’m feeling good about it. The big thing for me will be styling.

Here’s the repo:

This evening I coached at Codebar for the very first time. On their website they describe themselves as

codebar is a non-profit initiative that facilitates the growth of a diverse tech community by running regular programming workshops.

I was a bit nervous in the lead up to it, worried about coaching, but it ended up going well!

My biggest fear was that I would pair with someone who was working on something complicated that I didn’t know about, and alas … I was paired with someone working on something complicated that I didn’t know about!

She has taken over a company website and wanted to learn some HTML and CSS to update it. Once we started taking a look at it, I realised that it was in PHP (a language I don’t know).

We got quite a bit done; we talked some basic HTML and CSS, got her set up with a FTP client to download the files, I showed her the element inspector in chrome, we talked media queries for responsive web sites, and finally (and most importantly!) got her on the right track to look into PHP.

I really enjoyed it and am looking forward to going back. Hopefully next time I’ll know more about what we are working on!


I remember this day well. Trump winning. I was really, really distressed. Still am.

It’s fun to look back at the things I wanted to learn. The first one, where an instance variable is set to a local variable, is when something is passed in to the function and you want to store it. We use this a ton! Today I did a really similar thing in my Javascript web store! (In Javascript, the ‘this’ is similar to a ‘self’, which is similar to an instance variable in ruby)

I was wanting to learn more about Rspec, and I certainly have done so.

I was wondering about the use of subject, and subject really just describes the class you are working with. I didn’t like using the word ‘subject’, and I don’t actually do that anymore. I now always give the subject a name.

Things I learned

  • Tons of Vim stuff
  • Better way to manage dotfiles
  • Diagramming out a front end project

Things I want to focus on

  • Continuing the project. This is my main focus for tomorrow.

Things I’m struggling with

  • In my clothes store project, I’ve set each item up as an object. I’m wondering if it is bad practice to set up the item with 20 ‘objects’ for each thing that the store sells. If I had more time I’d do a database.
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.