Roundup: requiring Ruby code, advent of code, the crypto-rich, and things I learnt in 2018
Neil van Beinum
Dec. 7, 2018
A different way to require ruby code - Murray S
include them in the page and hope there were no global clashes. This is
obviously bad so many libraries appeared providing solutions to the problem.
They fought it out in the proving ground of popular opinion, and eventually we got the ES6 module system and there was much rejoicing. In ruby, we have
load statements, but every file we use with these is parsed,
run, and it's constants exposed in the global namespace. This gem proposes an
alternative model that seems to me to be based on the ES6 module system. Who
knows if something like this would ever become part of ruby itself, but the
ability to require only small parts of a library without worrying about
namespace clashes sounds really good to me.
Advent of code 2018 - Elena T
Advent of code is live - one coding challenge every day until Christmas, if you're into that sort of thing.
Four days trapped at sea with crypto's nouveau riche - Elena T
How one person sets sail with the crypto-rich, a few hours after a bitcoin crash.
52 things I learned in 2018 - Elena T
Surprisingly interesting read.
Track of the Week - Lawrence R
I've been binge watching Toast of London and hence the theme tune is in my head. It's pretty good and the video's a bit of a tear jerker.