On the importance of syntax and semantics; How Ruby's power lies in its beauty
I was chatting to a colleague recently who expressed they didn’t really like Ruby’s excessive list of keywords.
I was chatting to a colleague recently who expressed they didn’t really like Ruby’s excessive list of keywords.
This post is part 3 of 3 describing how Semantic Version strings can be converted to sortable integers for easier and faster sorting.
This post is part 2 of 3 describing how Semantic Version strings can be converted to sortable integers for easier and faster sorting.
Sometimes we need to sort string values that aren’t lexicographically sortable. For example, a list of Semantic Version strings like 1.0.0-rc1, 1.2.4, 1.1.0-beta and 2.0.0.
In the pilot episode of my new “Cursed Code” series, I dive into the depths of Ruby code submissions to refactor and discuss best practices. This test-run episode tackles the age-old dilemma of naming abstract base classes. The Cursed Code The code in question features an abstract base class aptly...