206 points

was python ever irrelevant?

permalink
report
reply
111 points

Nope. This cartoon is horseshit.

permalink
report
parent
reply
15 points

Yeah. Look at any dev job listing and it’s all “Python, C++, or Java experience preferred”

permalink
report
parent
reply
42 points

Perhaps as the new hotness to web devs, but Python was a mainstay in science way before Django.

permalink
report
parent
reply
40 points

For about the first five years of its life, it was eclipsed by Perl. That’s about it. I don’t think anything will ever unseat Python as too many people’s first and last language.

permalink
report
parent
reply
8 points

Surely not in the immediate future, but there will surely be a day when Python dies. Remember that BASIC filled that role for far too long.

permalink
report
parent
reply
18 points

BASIC was meant as a teaching language. Python is a real language that’s simple enough to be a teaching language. It also runs the same dialect on every machine, which BASIC never did.

Being the second best language at everything, it gets used for everything because people don’t want to learn the first best in any given niche. Python isn’t the best choice for numeric applications, but with NumPy, it’s adequate, so why bother learning R? Even if you knew R already, you’re going to run into a lot of Python code for that domain from other people. You’ll be swimming against the current, and why bother?

Python will die when the sun does.

permalink
report
parent
reply
6 points

Python is the language of choice for most test automation

permalink
report
parent
reply
5 points

If I can’t do it as a Bash one-liner, I’m using Python

permalink
report
parent
reply
3 points
*

subprocess.Popen(["bash one-liner"], stdout=PIPE, stderr-PIPE, text=True)

permalink
report
parent
reply
1 point

I use perl, but everyone hates me and would rather rewrite my little scripts in python than bother changing a single line

permalink
report
parent
reply
0 points

Grug use go because it easier, faster, and compiles to share with friends of Grug

permalink
report
parent
reply
2 points

Depends entirely what tests you’re automating. Java codebase? Probably Java tests too. Anything web? Tests will be JS too, etc.

permalink
report
parent
reply
2 points

Web testing is also done in python. Selenium has support in all major Python test frameworks. I’ve done SE-only tests in Robot, hybrid SE/Python using BDD with Behave, etc.

Unless I’m testing a language-specific API, I’m probably going to use Python…

permalink
report
parent
reply
-4 points

Maybe when 3.0 was new and created all sorts of incompatibilities with 2.x

permalink
report
parent
reply
17 points

Nah, Python 2.7 got way more support than it ever deserved because people just refused to switch to 3. Hell, people were starting new python projects on 2 after 3 came out.

permalink
report
parent
reply
122 points

Yesterday I would have argued that with the rails framework Ruby is a great way to rapidly develop a scalable application. Today I started having an intermittent failure in one of my API instances and when searching about it the only thing I could find was one obscure blogpost that boiled down to “yeah sometimes Ruby Ave active record just screws up the character set off a string” exact same string, different results. Excuse me Ruby? How the fuck can you sometimes screw up a character set? There should be no sometimes to any thing here.

permalink
report
reply
87 points

I like Ruby most of the time, but honestly, I’m not surprised at “sometimes” behavior from the language created by someone who, when asked for the formal definition of something in the language, said he’s “not really a formal kind of guy.”

permalink
report
parent
reply
9 points

Haven’t Spring Boot in Kotlin with jib and cloud integration caught upto this in terms of development speed?

permalink
report
parent
reply
5 points

I mean I’ve been using ActiveRecord for the last 20 ish years and I’ve never encountered or even heard of this bug. Sounds like you came across an especially obscure one.

permalink
report
parent
reply
2 points

I spent a few years with Ruby, and my experience is that Ruby and Rails couldn’t be more different in terms of programming approach, philosophy, and nature. I don’t trust Rails fully, but I do trust Ruby.

permalink
report
parent
reply
97 points

Mastodon is written in Ruby. Nowhere near as big as Facebook or the ML field, but hey, it’s important to a couple of us at least :)

@programming @nifty

permalink
report
reply
39 points

and therefore scales terribly ;;

permalink
report
parent
reply
11 points
*

It probably wasn’t a big deal when it was a niche project until Twitter imploded. Then all the public instances got overloaded with new users and the limits became obvious.

A better design is Lemmy which is written in Rust so it has far more scalability. It’s compiled and because it’s tokio / actix based, it can also do a lot more stuff asynchronously so it’s not spawning thousands of threads to cope with concurrent requests.

permalink
report
parent
reply
4 points

@pkill Yeah seems that way, judging by their scaling up documentation: https://docs.joinmastodon.org/admin/scaling/

Although hey, it all depends on a whole bunch of stuff written in super optimised (and kinda scary) C !

@programmer_humor

permalink
report
parent
reply
3 points

Those docs look pretty easy to scale mastodon. What am i missing?

permalink
report
parent
reply
17 points

Hi there! Your text contains links to other Lemmy communities, here are correct links for Lemmy users: !programming@programming.dev

permalink
report
parent
reply
-4 points

Mastodon is written in Ruby. Nowhere near as big as Facebook or the ML field yet

FTFY ;)

permalink
report
parent
reply
79 points

As a Rails engineer with 14 years experience, I can say the place that should be in the 3rd panel is Shopify. They employ so many ruby and rails core committers and directly fund a good many rails gems, and ruby community infrastructure it’s insane. They’re also directly funding the development of things like the YJIT and speed enhancements to MRI itself.

Then there’s all the other places I know or worked at built on Ruby where my other long tenured ruby friends work.

  • Gusto
  • Airbnb
  • Clearbit
  • Stripe
  • Github
  • Gitlab
  • Bold Penguin
permalink
report
reply
13 points

Ruby was recommended to me by my comparative programming languages professor. I haven’t picked it up, but there were memes that this professor was so good at programming he was secretly built by the university in C++ to teach students how to write better code.

permalink
report
parent
reply
3 points

It’s worth learning Ruby to understand some of the tricks you can do in programming languages.

Did your prof also recommend others like Lisp?

permalink
report
parent
reply
6 points

Aha asks for Ruby on rails experience in their job listings, so they must be using it as well

permalink
report
parent
reply
5 points

Basecamp

permalink
report
parent
reply
46 points

One of the most known programming tool is built on Ruby, Github.

permalink
report
reply
38 points

GitLab also uses Ruby on Rails

permalink
report
parent
reply
7 points

And it’s a pile of shit.

git is great. GitHub blows chunks. The only reason it’s still big is that it sucks less than any other single platform.

permalink
report
parent
reply
6 points

@SpaceNoodle I’ll always be sad how GitHub helped popularise centralised workflows. Such an amazing opportunity for a big cultural shift, but it didn’t go anyway as far as it could have.

@programmer_humor

permalink
report
parent
reply
2 points

Git owes a lot of its popularity to github. Without it, there’s a good chance that mercurial would have taken over. In addition, the centralized workflow was what made both git and github popular. It simplified git usage enough to let a lot of novices get started.

I’m in no way a fan of centralization that github represents. But I think a decentralized workflow using git was a lost opportunity. People complain a lot about the git-email workflow. But I see no reason why it couldn’t have become as easy as using github if the effort spent on github was spent on git-email tools and user experience.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.2K

    Monthly active users

  • 954

    Posts

  • 37K

    Comments