Embarrassing Maths & Ruby update

Ok, I’m pretty embarrassed with this one.

Having a degree in Mathematics and working in a heavily mathematical field for the past decade I like to think I’m reasonably skilled will all things numbers/symbols.  But then I was stumped by this Codewars.com challenge:

screen-shot-2017-02-09-at-21-11-24

Baffled…I’m embarrassed to admit I had to google the mathematical answer *blushing emoji*

But once I got the formulae I was fine.  Did a nice bit of code and it was done in a line.  But still…

feels

Maybe it’s time to put away differential equations and linear regression and pick up a GCSE textbook.

Still, on the plus side, I’ve completed the codeacademy.com Ruby course!

The course finished using procs, blocks and lambdas which was interesting to learn however I feel that I won’t fully understand it all until I use them with regularity.  Also I learnt about modules and classes which was good to know how I should format my code.  I’ve decided to stick on the Ruby lines, following up with either the Ruby on Rails course on codeacademy.com or looking at another website for Ruby courses such as teamtreehouse.com or possibly freecodecamp.com.  I’ll also be ploughing into the Codewars.com katas to get my brain working and hopefully avoid some more moments of brain freeze.

Maybe they should rescind my degree…???

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s