News for hackers. Stuff that matters.
Re:Introducing Ruvy by vidarh on Friday October 20, 2023 @03:12PM (#37960228)
My text editor is written in Ruby. My terminal is written in Ruby, including the truetype renderer and X library, and the syntax highlighting uses the Rouge Ruby-based highlighter, extended with some more Ruby to read GtkSourceView themes. My desktop manager is written in Ruby.

For me the compelling reason to choose Ruby is that I could hack those things together quickly on my own in a few thousand lines of code and have an enjoyable experience both writing those tools and using them (I've done all my editing in my own editor for the last 6+ years, including editing the editor itself). The rest is newer.

(The whole "stack" above takes up fewer lines of code than the "st" terminal emulator and less than 10% the size of xterm; the truetype renderer was a 1 day conversion from a small C renderer, and weighs in at about 500 lines of code - that is why I love Ruby)

I'm 48. I've been writing code for 43 of those. I have no intention of spending time on Python more than absolutely necessary, because where Ruby is enjoyable to me, Python is absolutely not. I frankly find the notion of talking about people "growing out of this" quite condescending. There's nothing unreasonable about having preferences and being prepared to prioritise happiness.

For my part I've easily been able to make my living in a mix of (mostly) Ruby and JS for the last 18 years without making any sacrifices for it (I've not avoided looking for jobs that requires other languages, including Python - I have experience with more than a dozen different languages so I'm not afraid of using far worse things than Python when I've had to).

I've been in my field long enough to have seen many languages vax and vane in popularity, and I stopped caring about whether a language was popular 20+ years ago. My happiness is far more important.

I'd say as a young developer being willing to at least pick up the basics may be worth putting aside the distaste. But soon enough you get to a career stage where it doesn't matter and where you have the flexibility to pick jobs where you can pick your tools.

Re:Introducing Ruvy by cactusplant7374 on Friday October 20, 2023 @04:17PM (#37961011)
You started writing code when you were five years old?
Re:Introducing Ruvy by simianpirate on Friday October 20, 2023 @05:57PM (#37961963)
I was 6 years old when I started with Apple Basic.
Re:Introducing Ruvy by seehafer on Friday October 20, 2023 @06:46PM (#37962318)
Same. I’m fact I suspect a large proportion of HN’s audience started around this age.
Re:Introducing Ruvy by wenc on Friday October 20, 2023 @07:09PM (#37962507)
In started at age 6. My brother started at age 5. Lots of us started on Apples and IBM PCs and back in the day Amigas etc.

We didn’t have a lot of entertainment back then.

Re:Introducing Ruvy by MenhirMike on Friday October 20, 2023 @07:57PM (#37962798)
One of the greatest things of 80s micros were built-in BASIC interpreters. Turn it on and program immediately. Combined with source code listings to type in from magazines, you almost had to resist picking up some programming skills. Even the command to load a game was a form of programming already, even though 6-year old me didn't "get" it until a bit later.

We have easy access to so much amazing technology for free in today's day and age, but we IMHO really lost a lot from the glorious days of "38911 Basic Bytes Free - Ready."

Re:Introducing Ruvy by BirAdam on Saturday October 21, 2023 @12:38AM (#37964132)
Same for me on not immediately “getting it.” I started with an Atari 800XL and wrote some small stuff but didn’t realize I was programming until a few years later. It was fun tho. I miss that simplicity.
Re:Introducing Ruvy by tomjakubowski on Friday October 20, 2023 @07:19PM (#37962567)
The shells on the Apple II and on Commodore PCs were BASIC interpreters. So it was really easy to get started programming even without knowing it.
Re:Introducing Ruvy by vidarh on Saturday October 21, 2023 @12:39PM (#37968329)
Yes. I started with BASIC on a VIC-20
Re:Introducing Ruvy by wenc on Friday October 20, 2023 @07:13PM (#37962528)
I like both Python and Ruby and aesthetically Ruby is better and I can see why people are happier writing on Ruby.

But to me happiness comes from achieving the ends — eg training a model, deploying code that impacts millions of people. I’ve done that with Python and I can honestly say I couldn’t have done the same with Ruby because the Ruby ecosystem and tooling didn’t support such impact size in my (and many similar) domains.

I don’t think it’s wrong to tell younger folks to see th big picture and focus on impact before personal preference. Everyone can choose their own path of course but I’ve generally found that focusing on impact has led me to take on more meaningful projects.

Re:Introducing Ruvy by chucke on Saturday October 21, 2023 @04:36AM (#37965119)
It sounds like programming is a "means to an end" and you don't cate that much about the plumbing as you do about the outcome, so you use python out of convenience and not out of taste? If that's so, fine, but you don't seem to have much "stake" in the discussion.

> I can honestly say I couldn’t have done the same with Ruby because the Ruby ecosystem and tooling didn’t support such impact size in my (and many similar) domains.

But did you give it an honest try, or is that an assumption? While no ecosystem I at python's level in the ML space, Ruby's contributions are not necessarily non-existent, and you'll find a few options when you actually look for it (sidenote: the pgvector extension for postgresql has been created by a prominent ruby ML developer)

Re:Introducing Ruvy by wenc on Saturday October 21, 2023 @10:36AM (#37967119)
I’m advocating for seeing the big picture. It’s not that I don’t care about programming, but I try to care for it in proportion to achieving impact, which I feel is the more important thing (most seniors and higher would agree).

I did give Ruby an honest shot, the maturity of the ecosystem around numerical computation and machine learning (my field) isn nowhere near Python’s. That is to say, it’s not that Ruby was bad, but that Python was so far ahead of everything else that to deviate from that would mean spending an inordinate amount of time reinventing the wheel. I’ve certain fallen into this trap in the past (which caused to me extend my graduate school a year because I wanted to use niche tech which was cool but ended up having to spend time working around corner cases, which were solved problems) but sometimes going with the mainstream means you get a lot solutions for free and can focus on your problem.

Programming language choice is partly aesthetic —- some languages are more elegant than others —- but if you want to be employed and want to create real impact in the world, it has to be tempered with hard nosed pragmatism as well. You’re paid to deliver solutions to problems, not to optimize your preferences. Sometimes you can do both, but when you can’t, solving the problem must take precedence.

Re:Introducing Ruvy by vidarh on Saturday October 21, 2023 @12:37PM (#37968302)
Machine learning is one area where it takes a bit more imagination to do it in Ruby, but you can easily wrap both compiled code and Python for that matter and still do your own work in Ruby if that's what you want to do.

I'd strongly argue that irrespective of your preferred language (ok, almost, before someone brings up Intercal or something) if you in any domain think it doesn't support what you want to do, what it actually means is that you don't understand how to achieve it with that tool. That's fine, and maybe it's not the right tool for you, but it's not the fault of your tools

And if you're not happy with what you're working on, you're unlikely to stick with it long enough to have any impact. And even you do, if the result is being miserable it's not worth it.