On the left, red switch with a 1 on top, a 0 on the bottom, and turned to the 1 position + on the right a coaxial selector with the input on the bottom, an A and B position of top, and the central nob set to the A position

💭 Mental model for Booleans vs Enumerates

In programming, Booleans and Enumerates are common data types to represent the concept of “choice”. When there are several things to choose from, the Enumerate is the only one to support it, so that’s clear. But what about when you have two things to choose from? There might be some confusion between both data types since either of them supports handling binary choices. The confusion arrises in particular when you want to add the choice of a new behaviour, on top of an existing one....

May 15, 2023 · 2 min · 352 words

💭 PHP shenanigans

Pop quiz about PHP and something we’ve stumbled upon last week, while working on a client’s codebase. ...

April 15, 2019 · 2 min · 294 words

💭 Scala Enumerations Summary

Comparison between different ways of doing enumerates, with scala.Enumeration, case object and Java’s Enum.

May 14, 2017 · 9 min · 1882 words

🔗 Learn Ruby with the Neo Ruby Koans

Learn Ruby with the Neo Ruby Koans Great way to lean Ruby by fixing errors in set of well thought of unit tests.

May 13, 2015 · 1 min · 23 words

🏞 HSL Color

With practice, this new mental map of color will become instinctive: you’ll likely find that it is much easier to create and manipulate color specified in HSL in your stylesheet code than hex or RGB. See also Three Ways You Should Be Using HSL Color In Your Site Today.

January 2, 2015 · 1 min · 49 words

🔗 Learn X in Y Minutes: Scenic Programming Language Tours

Learn X in Y Minutes: Scenic Programming Language Tours Learn X in Y minutes : Take a whirlwind tour of your next favorite language. Community-driven!

October 24, 2014 · 1 min · 25 words

📜 for each desired change, make the change easy (warning: this may be

for each desired change, make the change easy (warning: this may be hard), then make the easy change. Kent Beck

July 3, 2014 · 1 min · 20 words

🏞 (image)

(via What’s wrong with this picture? | Code.org ) Computer science is a top paying college degree and computer programming jobs are growing at 2x the national average . Less than 2.4% of college students graduate with a degree in computer science. And the numbers have dropped since last decade. See also Promote Computer Science | Code.org

March 27, 2014 · 1 min · 57 words

🔗 Type-System Criteria · ongoing by Tim Bray

Type-System Criteria · ongoing by Tim Bray Cri­te­ria Let’s call them the Bánffy-Bray cri­te­ria for se­lect­ing be­tween sta­tic and dy­namic type sys­tems. Sta­tic typ­ing’s at­trac­tive­ness is a di­rect func­tion (and dy­namic typ­ing’s an in­verse func­tion) of API sur­face size. Dy­namic typ­ing’s at­trac­tive­ness is a di­rect func­tion (and sta­tic typ­ing’s an in­verse func­tion) of unit test­ing work­a­bil­ity.

January 24, 2014 · 1 min · 56 words

📋 Learn to Code

Online interactive resources to learn programming: Learn | Code.org — Beginners (concepts), HTML/CSS, JavaScript, Python, Codecademy — HTML/CSS, JavaScript, jQuery, PHP, Python, Ruby Learn Code The Hard Way — Python, Ruby, C, SQL, Regex, CLI Try Ruby: learn the basics of the Ruby language in your browser

January 16, 2014 · 1 min · 47 words