sorry if i'm beating a dead horse with this topic but i really can't stand
the new json hashes in ruby.
the problem isn't the syntax (the syntax is great), it's just that it
breaks the consistency of the language to a degree i can't tolerate.
i picked up ruby 2 years ago (coming from PHP) and fell it love with it
because it was the only language that i found who actively promotes the
element of least surprises, which i whole heartedly love. PHP was going
through some major changes that i didn't really like at the time, mostly
their increasing infatuation with Java.
over the years as i get older and more experienced, i find that simplicity
is the biggest thing one should look for in a programming language. any
languages that aren't straightforward don't interest me anymore. but now
with ruby's new json hash syntax, it throws off the love i have about the
language. i continue to use and will always use the old rocket hash to make
my codes more consistent but i fear that i will create conflicts down the
line as more and more ruby devs turn to json hash 100%. i for one, think
the symbols should be presented as symbols (:), but in json hashes the
symbols don't necessary require (:), which bugs me a lot. i strive for
elegance and simplicity so as minute of an issue this is, it just irks the
heck out of me.
now, my question is, do you think it is okay for me to continue using the
rocket hash syntaxes and even evangelize about keeping it that way?
···
--
Kind Regards,
Jae