4 ms·
I had to learn Ruby when I got a job as a full stack dev. Before then I mostly used Python and Java. To date I have not found a language that I love more than R
by kendallpark 9y ago
I had to learn Ruby when I got a job as a full stack dev. Before then I mostly used Python and Java. To date I have not found a language that I love more than Ruby. It's a delight to use. I truely enjoy coding in Ruby, whereas I'm usually some flavor of neutral with most other languages (except PHP... blah). Perhaps there are some people that are on the same wavelength as Matz. One thing I found interesting is that when surveying whitespace of Github repos, 100% of Ruby repos surveyed had 2 spaces for indentation. Looking down that list, I wonder why some languages have more conformity of indentation style (other than frameworks helping enforce styles). Perhaps certain languages attract certain types of developers or help foster a particular culture?
https://ukupat.github.io/tabs-or-spaces/ https://ukupat.github.io/tabs-or-spaces/
- forgot-my-pw 9y agoWish all languages comes with a fmt tool that will end all stylistic guide debates. We use linters at work, but even setting linter rules will cause a lot of arguments.
- goatlover 9y agoWell, you don't need one for Python.
- RussianCow 9y agoYou do when your lines get too long. :)
- AcerbicZero 9y agoI came to Ruby from a different direction, working on Puppet/Chef and VMware/NSX, but I came to a similar conclusion. I'd always assumed the reason I liked it so much was because I wasn't a programmer. The language operates generally as expected (to someone without a real coding background) as well as being so much more flexible and powerful than the other options available. Since then I've done a little rails work, learned enough Python to be moderately useful, and stumbled through a few other languages. I still try to be impartial, and to use the best tool for the job, but it's always a joy when I find a chance to use Ruby again.
- cutler 9y agoThere's only one language more elegantly designed than Ruby and that's Clojure. Ruby for scripting and Clojure[script] for everything else is as good as it gets.
- bhaak 9y agoWow, what horrible persons use 3 spaces indentation in C? As someone who started writing in Ruby with tabs indentation, I switched over to 2 spaces as most other projects were using it. After a short period of getting accustomed to it, I can't imagine doing it any other way (but only in Ruby!). It just feels more natural in Ruby than any other indentation style. I'm not sure why, maybe the language keywords are different enough and the length of line is just so that 2 spaces hit a sweet spot?