-
Golang nil returns suck ლ(ಠ益ಠლ)
Trying to make sense of nil return values in golang, coming from Ruby and C.
-
TIL https en wikipedia org wiki Billion laughs…
TIL https://en.wikipedia.org/wiki/Billion_laughs_attack Looks like Nokogiri is too simplistic (by default) to be affected, but the Psych parser in Ruby isn’t so lucky (if you expand to ruby objects, of course… it parses to a Psych object just fine.)
-
Factory Pattern in Ruby
A discussion came up today discussing how the factory pattern looks in certain languages, and I found myself thinking about how it might look in Ruby. A quick Google resulted in an example that seemed to violate part of the reason for the Factory Pattern in the first place (there was a distinct factory for…