Learning Ruby - Day 1
Things that annoy me (when coding it’s all in the syntax):
- elsif is missing an e
- resuce should be called catch or except or anything else but rescue
- there are five dozen ways to say if x then y
- :symbols
- @@globals
- case/when isn’t switch/case
- parens to functions are optional
The combination of the above leads to things that are nigh unparsable:
begin @@master = case @slave when :dude: “dud” when :man: “chicken” else “rub” end if eyes.poke_out? elsif puts “Go learn python” resuce me