I did it.

too tired to come up with a joke right now.

I completed my first exercise in fcc on 15 December 2015 with the intention of completing the front end development certificate, and ticked it off on 25 June 2018. Probably took a little longer than expected but slow and steady wins the race right?

Honestly I’m not exactly sure what to feel right now, if i had to take a stab at it, my feelings could be described as 50% elation, 50% pride and 50% exhaustion (hey Ive been studying coding for the last 3 years not maths). This has been a journey that has really tried and tested me, there have been multiple times that Ive wanted to walk away, multiple times that Ive yelled hard at my laptop and multiple times that Ive just felt empty.

Its hard doing this course or any course when you work full time, you have commitments that you need to keep on top of, along with coding, I have to find time to practice drums, study Japanese, keep on top of my eBay side business and give my girlfriend enough attention so she doesn’t dump my ungrateful butt. Ive probably stretched myself a little thin from all this but I think im happiest when Im busy and not just sitting around watching some crappy show on netflix.

I found the best way to get through to the end was to set a routine up for myself, each morning I get up at 5.30, stretch, have a cold shower, walk my dog with my partner and then sit down for 40 mins and plug away at whatever problem I am working on at the time. Once you find that routine then it becomes hard to find excuses for yourself to not keep going, it may even feel wrong if you decide to skip a day!

Im not sure whats next, my original hope was for employment but Im not really sure how realistic that is. I might move on to the next certificate and keep pushing for the last 3 certificates, this wasnt my initial intention, but Im halfway up the mountain so Im might as well keep going. I might also try to come up with my own react projects or convert my older projects from the original course into the react format, this seems to be the big thing at the moment so it couldn’t hurt to get even better at it, but for the life of me i cant think of an something to create right now.


I did it, im proud of myself and now its time to enjoy that.


this doesn’t look right

“who needs google maps? paper maps are making a comeback!” words that would quickly come back to haunt the hipster.

Okayyyyyy, so after taking a couple of months off from free code camp I came back to finish up my course and finally claim my certification after 3 years of toiling away.

But something was amiss, where had all these new lessons and projects come from? Why does free code camp now have 6 certificates instead of 3 and now I have to learn about React, Redux and Sass? huh?

It turns that during my small sabbatical, free code camp had decided pull a blindside on me and release its new curriculum to the public, unfair!

With only one project left to complete I had returned to a new curriculum and even worse, some of the projects that I had spent weeks grinding on had now been moved to interview questions and didnt count to new certificates, madness!

So after crying in the shower for a few hours and having an all around general meltdown I had a bit of a dig around and found that they still awarded a legacy certificate if you managed to finish the fcc old course. So I hunkered down and ground out solutions to the tic tac toe and simon projects.

Both projects were definitely worth my time as it really managed to reinforce previous  lessons learned during my time, the feeling of finally grinding out a solution to tic tac toe after all the worry and stress it put me through was better than sex! (but not really). Plus its two more projects that are quite complex, as far as the curriculum in fcc goes, that I can now add to my portfolio. Plus plus I now have five projects that have been ticked off on the new ffc curriculum section “Take Home Projects”!

Once that was done I also decided that it was definitely in my best interests to plow ahead and go for the new course certificates, I alreadty had 85% of the 3 new courses Responsive Web Design Certification, Javascript Algorithms And Data Structures Certification and Front End Libraries Certification ticked off. The new projects also gave me a chance to try and work on all the skills I had learned from Andrew Mead’s Udemy courses.

It definitely wasnt fun to come back and see a whole bunch of new stuff staring me in the face, especially being that close to completing something that I have worked towards for the last 2-3 years, but it turns out that there was a silver lining in it all along… in the form of more work… wait… oh man!

“When life gives you lemons, just say fuck lemons, and bail.”

Blogging Purgatory

this episode got a bit too real when Charlie Brown had to drink his own piss to survive.

So yeah it turns out that in the process of juggling a full time job, studying web development and giving my gf enough attention so she doesn’t leave my ungrateful ass, finding that spare 5 minutes to blog about my progress can be surprisingly hard!

Im thinking about maybe changing the format of this blog to give more micro updates, not in the twitter size, but maybe more talk about experiences and such rather than talking about actual javascript or web design elements. Ive just finished building the fcc pomodoro project so ill chuck that up soon with a few comments about what i was trying to do.

“Even if you fall on your face, you’re still moving forward”. – Victor Kiam

So guess Im killing it?


Object.defineProperty() – There’s More Than One Way to Skin a Cat

private property sign

definition: sketchy

I thought Id try and do something different for this blog and post some code that runs through how a specific piece of JavaScript Works

The Object.defineProperty() is a method that can create or modify a property of an object with a couple of special caveats added. Using this method you have the ability to make the property and the method read-only (writable and configurable) or invisible (enumearble).  For a more in depth explanation the Mozilla page can be found here and another very helpful blog on the method can be found here.

But this page is the copy of a JSFiddle post that I have been playing around with in an attempt to strengthen my understanding of it, you should give it a shot too. The link to the actually JSFiddle page can be found here.


toFixed or not toFixed, that is the question.. to rounding a number in Javascript


“I could put a cactus on the top of this and sell it to hipsters”

freeCodeCamp has made me ask a grand number of questions about javascript and one of the more recent ones was “so how the %^@$ do I reduce the number of
^#$%ing decimal places in a this $@#$ing number?!?!” (this question came about just after realising that js thinks that 0.1 + 0.2 equals 0.3000000000000004.)

And as we are talking about Javascript, one question can only ever lead to another, this time being “so do you want a string or a number in response?”

“I want a string response!” (the toFixed() method)

Ok then, this is probably the easiest way of reducing a number to a fixed number of decimal places. You simply add the toFixed() method to your variable with the desired amount of decimal places as the parameter and bob is your uncle.

  • //create a variable ‘x’ with 3 decimal places
  • var x = 3.146;
  • //create a new variable ‘y’ with the toFixed() method with 2 as a parameter to reduce the number to 2 decimal places
  • var y = x.toFixed(2);
  • //call the y variable
  • console.log(y);
  • ‘3.15’

“I want a number response!” (the Math.round function)

Then let’s get to it, this is a simple and easy way of rounding a number with decimals to the nearest whole number. You just need to call the Math.round() function with your desired number/variable as the parameter.

  • //create a variable ‘x’ with 3 decimal places
  • var x = 3.146;
  • //create a new variable ‘y’ with the Math.round() function and the variable ’x’ as the parameter
  • var y = Math.round(x);
  • //call the y variable
  • console.log(y);
  • 3

“But I need to create a number with 2 decimal places” I hear myself saying time and time again whilst chewing my entire fingernail off. Fear not! There is back way to countering Math.round’s rather depraved need to cut the number’s entire tail off, and it involves just a simple bit of math.

  • //create a variable ‘x’ with 3 decimal places
  • var x = 3.146;
  • //create a new variable ‘y’ with the Math.round() function and the variable ’x’  times 100  then divided by 100 as the parameter, shifting the decimal place back a couple of spots.
  • var y = Math.round(x * 100) / 100;
  • //call the y variable
  • console.log(y);
  • 3.15

So there you have it, a couple of ways to round a number down and a great way to solve the Javascript issue with binary and floating point numbers. If there are any errors in this post, apologies, I’m still learning and I find that writing about this stuff as I go helps reinforce it. Any questions about the subject are more than welcome but will most likely be reposted as a question on the StackOverflow website by yours truly.


Extra Time!

If you want to use the toFixed method and still have the result as a number, then just convert it via the parseInt() function post toFixed() conversion as seen below.

  • //create a variable ‘x’ with 3 decimal places
  • var x = 3.146;
  • //create a new variable ‘y’ with the toFixed() method with 2 as a parameter to reduce the number to 2 decimal places
  • var y = x.toFixed(2);
  • //query the type of y variable
  • console.log(typeof y);
  • string
  • //create a new variable ‘z’ with the parseInt() function and the variable ’z’ as the parameter
  • y = parseInt(y);
  • //query the type of z variable
  • console.log(typeof y);
  • number

week.length = x;

A weekly update of what I’m currently reading, watching and listening to.


x = reading

Einstein – Walter Isacson

An interesting book by the same author of the Steve Job’s Biography “Jobs”. I’m not much of a science person, but this is a great chance to learn just who Einstein was and what drove him to reach such incredible heights.

Isacson is a pretty amazing writer too and despite its controversy, I’d also recommend the Jobs book 100 percent.


x = listeningzooz

Too Many Zooz

Great funk bank that apparently still busks in the New York subways, heaps of fun and a great pick me up in times when I’m ready to put a brick through my computer.

Also has made me add “learn trumpet” to my bucket list.


westx = watching


If you haven’t heard of this show yet then you must have been living under a rock for the last 3 months.

Robots + Cowboys = take my money.





shop-talkx = podcasting

Shop Talk Show

Dave Rupert and Chris Coyer talk
everything about web development, a ton of the stuff can go straight over your head, but it can still be a great podcast to pick up an interesting tidbit or two whilst trying to climb the mountain of learning code.

pain in the… back

plank of wood

me yesterday

So for my current day job I sit at a desk for 7-8 hours a day, and when I get home from that and hit the coding books, I’m back at another desk for 1-2 hours. This ongoing routine of sitting awkwardly has resulted in my back becoming stiffer than a 2×4 plank of wood.

Recently some kind soul who’s name I cannot for the life of me remember now (forgive me mystery angel) passed me a link to this video and it’s been a real boon to both my spine and sanity.

So I thought I would pass on the favour.

I might suggest that you try and find a quiet, discrete spot to perform these exercises, as you may get a funny look or two when flapping your arms up and down or climbing an imaginary ladder.

Good luck and keep climbing!

I Built This!


See the Pen Free Code Camp Weather App by Luke (@escrew7) on CodePen.

This is my version of the Free Code Camp Weather App written up on Codepen. I’m pretty happy with how it has turned out. A couple of things I am particularly stoked about are the toggle on the degrees <div> where you can click to change from Farenheight to Celsius; and the minimal design of the app, which I think is suited to its purpose.

Free Code Camp along with Khan Academy have, to me, been two of the better free web development learning platforms. Both boast strong challenges along with great support networks for when you run into coding problems. Free Code Camp has really pushed me to my limits with JavaScript and on more than one occasion I’ve stormed off complaining about how the site is cheating me, only to realise that I’ve spelt “function” wrong.

One feature I’ve really enjoyed about Free Code Camp is that you can enter into a “contract” with the Camp, where each month you donate a sum of money to a choice of charities until you finish your selected certificate. It’s really rewarding knowing that you are achieving your goals of learning code whilst also giving others less fortunate a leg up in achieving their own dreams. I decided to donate monthly to the http://www.blackgirlscode.com/ school and have been 9 months.

freeCodeCamp is no walk in the park by any means, but if you really push yourself, the rewards that come from completing algorithms and projects is legit.


Give it a shot.

Like Riding a Bike?


I recently took a little bit of time off of studying JavaScript to attempt the construction of some actual websites. So now that I had a couple of sites under my belt I decided to dive back into the Free Code Camp Front End Certificate.

Have you ever left a video game for a couple of months and then come back with absolutely zero idea of what is going on? Because that’s exactly what happened to me, I had no idea how to create a function, looping was lost on me and I couldn’t even remember the difference between an array and an object. Studying JavaScript is just like riding a bike… if that bike had no wheels and a cat for a seat.

But complete and utter despair at my lack of ability isn’t something that gets me down for (too) long and after a couple of weeks of persevering I was running through the intermediate problems with increasing confidence. As intimidating as stuff like this can be when you first look at it, once you have a basic grasp of the fundamentals, the world is your oyster.

I hate that saying… I don’t even like oysters.

The world is your oyster deep fried mars bar.