> For I once again have trouble installing Nokogiri. One could consider https://rubygems.org/gems/oga , as it doesn't have any installation problems. It's not actively maintained though (mostly because the author considers it to be complete). I do think the author is a bit of a weirdo though :)
An Ode to Ruby
41–50 of 204 posts
Re: An Ode to Ruby
#42A coworker of mine is leaving for a Ruby job, which caught me off guard, so I've had Ruby on the brain a bit lately. I was a big fan of Ruby for a few years back in 2004-2006 or thereabouts. Rails was the new hot thing, but I wasn't into web dev so I didn't pay all that much attention to it. I remember blindsiding my networking professor by using Ruby for an assignment when he expected but failed to specify Java or C…
Most of my Ruby work has been outside of web. Message brokers, cloud orchestration and assorted devops, a text editor (for my own use - it's replaced Emacs for me), financial simulations. And that means the majority of my work for the last 15 years.
Ruby has gotten more low key, but for those of us who never really liked Rails that's not really mattered much.
Re: An Ode to Ruby
#43Earlier quoted context omitted.
Ok, that's a nicer result (obviously I don't write Python lol) but still seems inconsistent to me (putting the function before the array) considering Python is an OO language and most people are going to be writing methods for classes where you call methods with dot. I just remember list comprehensions from Coffee-script and not going to lie, I hate them. It's like reading backwards.
Python is a multi-paradigm language, of which OO is one paradigm it supports.
Re: An Ode to Ruby
#44One of my goals for 2022 is to write my first real web app. I want to understand things like authentication, creating an API, and security. My initial impression is that the JS/Node world is miserable. Rails looks 1000 times more pleasant.
Having tried both Node and Rails, Rails was a horrible experience. I hated every minute of it and will ignore any job listings including it. Your whole project is in a billion files and everything works by "magic." There is so much complexity and different flies that it sucks to work with. Meanwhile with Node you can start with a simple index.js and work your way up.
Re: An Ode to Ruby
#45It's too bad Ruby isn't seen as 'cool' anymore, it's just so easy to be productive in it. And now MJIT, YJIT and TruffleRuby are making some very impressive performance gains. Rails is also better than ever and I still can't think of a better language for scripting.
"I still can't think of a better language for scripting." Python I find equally if not more simple. Would you agree?
Re: An Ode to Ruby
#46I used to joke about Nokogiri dependency troubles for many years, but to be honest the experience in macOS lately has been straightforward for me.
Re: An Ode to Ruby
#47Earlier quoted context omitted.
What was cool was Rails, IMHO, and Ruby was the surprise inside it. I've had my own personal Advent of Code these holidays, coding a small API for a personal need. Ruby (Sinatra) took one morning to full deployment in Heroku. Then I tried Crystal (Kemal) and it took me a couple of days to figure out how to map JSON to Crystal data structures. Then I rewrote it again in Rust (Rocket). Two weeks till I figured out, wel…
I also took a while to get used to the typing in Crystal but once you do get it, it's worth the effort IMO. I occasionally still fire up Ruby but if I have anything more to do than a quick command-line command, I use Crystal, so many less problems.
Surprisingly, Crystal seems to be much leaner in runtime size than Rust, with similar performance (although the use case is so simple that even good old Ruby is fast enough).
But then again, I feel you cannot beat Ruby in terms of dev productivity.
Re: An Ode to Ruby
#48One of my goals for 2022 is to write my first real web app. I want to understand things like authentication, creating an API, and security. My initial impression is that the JS/Node world is miserable. Rails looks 1000 times more pleasant.
Elixir with Phoenix and Liveview.
Re: An Ode to Ruby
#49I used to joke about Nokogiri dependency troubles for many years, but to be honest the experience in macOS lately has been straightforward for me.
Just curious, what's the issue with Nokogiri for some people? It always installs just fine for me...
Re: An Ode to Ruby
#50It's too bad Ruby isn't seen as 'cool' anymore, it's just so easy to be productive in it. And now MJIT, YJIT and TruffleRuby are making some very impressive performance gains. Rails is also better than ever and I still can't think of a better language for scripting.
"I still can't think of a better language for scripting." Python I find equally if not more simple. Would you agree?
e.g. https://gist.github.com/destiny-index/2a2e7e586bb9cd6e5c3000...