To be accurate, the title should be — don’t use NotImplementedError unless you write platform-specific low-level code.
Have you ever seen something similar to the following code?
raise NotImplementedError.new(“method should be implemented in concrete class”)
This code looks good and it even works most…
Ruby hashes are simple yet powerful data structures every Ruby-developer uses about ten times a day. Setting default values with the Hash.new constructor feels intuitive and makes developers’ lives even easier. But overusing this language feature can lead to some surprises down the line — lots of fun debugging.