There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

tiredofsametab , in Every language has its niche

Lots of stuff in Japan still runs Ruby/RoR, though I think it is slowly being replaced

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Ruby runs on faxes?

uis ,

No, but it runs on telegraphs

haui_lemmy , in If Architects had to work like Programmers

My life flashed before my eyes.

XTL , in STOP USING GITHUB
SidewaysHighways ,

Will things like setting up a “stack” in portainer on docker be able to use the github alternatives like codeberg? or will those kinds of things need to be rebuilt?

gnutrino ,

They should™ work with any git repo hosted by any method right down to running git-http-backend as a CGI script I would have thought.

SidewaysHighways ,

Noice, noice!

Thanks for your response, cousin!

peak_dunning_krueger ,

Anyone got a commmand line tool change all my stuff? Because if I have to do change all the remotes all the time, for dozens of projects I’m going to lose my mind.

Also the migration on gitlab/codeberg looked like an amount of effort that doesn’t round down to zero.

Aatube ,
@Aatube@kbin.social avatar

(note, the GitLab Enterprise Edition, which is provided to the public on gitlab.com, is (like GitHub) trade-secret, proprietary, vendor-lock-in software)

Isn't EE source-available but proprietary? Plus if you just use the free tier you're not using any enterprise features

Droggelbecher , in Every language has its niche

I had to learn Fortran for my thesis because it’s the industry standard in particle physics

geogle ,
@geogle@lemmy.world avatar

Physics changes with retirements. FORTRAN should received it’s gold watch and shown the door about 20 years ago now.

Droggelbecher ,

There’s no distinct generations of either physicists or codes that all retire at the same time

pbbananaman ,

How long ago? ROOT (and other frameworks like GEANT) using C++ has been the standard for over 15 years, but probably longer. I think my advisor was of the last generation that had to write in Fortran.

Droggelbecher ,

Currently lmao. I’m using those tools as well but some specific event generators I’m using are in Fortran still

JohnDoe ,

thank you for your service 🫡

CodexArcanum ,

the last generation to write FORTRAN

runs to look out window

My God is the sun turning into a red giant?!

Oh no, whew, that’s a relief! Guess the FORTRAN programmers will be relevant for a little longer too then.

(As a .NET dev, I wish some languages (or versions of languages) would die but i really think once code has been written it never goes away!)

CosmicCleric ,
@CosmicCleric@lemmy.world avatar

[COBOL has entered the chat.]

Capitalism will never let a programming language die, if it’s still less expensive than an alternative.

CosmicCleric ,
@CosmicCleric@lemmy.world avatar

A lot of COBOL programs are still running to this day.

umbrella , in Every language has its niche
@umbrella@lemmy.ml avatar

was python ever irrelevant?

SpaceNoodle ,

Nope. This cartoon is horseshit.

RGB3x3 ,

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

EnderMB ,

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

ICastFist ,
@ICastFist@programming.dev avatar

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

zalgotext ,

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.

frezik ,

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.

SpaceNoodle ,

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.

frezik ,

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.

SpaceNoodle ,

You have absolutely no idea how much business code has been written in VB.

frezik ,

I do know, but that’s off to the side of BASIC in general. In fact, VB syntax is barely recognizable as BASIC.

CosmicCleric ,
@CosmicCleric@lemmy.world avatar

Or COBOL.

No language truly dies, while Capitalism exists.

technom ,

Python is one of my primary languages (the other one being Rust). But it honestly isn’t the easiest language to teach - I’m saying this from experience. There are so many concepts at play - name binding, iterators, generators, exception chains, context managers, decorators, … . I could go on and on. Teaching becomes hard because any basic question could become a journey into the rabbit hole of python semantics.

Python is, however, a good first language for self learners. (Note: teaching vs learning). Python behaves intuitively. It’s designed in such a way that if you guess something about the language, you’ll probably be right.

Hector_McG ,

Being the second tenth best language at everything

FTFY

Omgpwnies ,

Python is the language of choice for most test automation

SpaceNoodle ,

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

Omgpwnies ,

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

SpaceNoodle ,

<span style="color:#323232;">["bash", "one-liner"]
</span>
Shareni ,

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

fluxion ,

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

SpaceNoodle ,

You’re right, everyone hates you.

fluxion ,

😔

SpaceNoodle ,

The good news is that you can stop using Perl at any time.

fluxion ,

For quick data parsing you’ll have to pry it from my cold dead hands im afraid

SpaceNoodle ,

That could be arranged. I could bash you over the head with a python.

fluxion ,

It’s a kind offer, but my head is far too hard

smeg ,

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

Omgpwnies ,

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…

smeg ,

I’m guessing that’s because you’re a python developer though. If you’re a frontend developer who knows JS then why wouldn’t you use that for your tests? (Apart from the fact that JS is horrible, but you’ve already accepted that suffering by becoming a web dev)

Omgpwnies ,

I’m a test automation developer, I’m not necessarily bound by the platform that the application is written in unless I’m writing white-box tests.

somas , (edited ) in Every language has its niche
@somas@kbin.social avatar

@nifty I have nothing against Ruby and think it’s a nice flexible language. At the peak of RoR though, all the asshats were all over Ruby.

My problem with Ruby wasn’t even RoR, it was with the way the asshats valued creativity “cleverness” which seemed to mean writing code in the most cryptic ways possible. These folks took what should be an expressive language and wrote scripts that rivaled Perl’s worst “read once and never again” scripts.

wim ,

I never did Rails but I used Ruby for many personal projects in the 2000s.

When showing stuff to my coworkers or friends, I often joked how I tried to make my code look like it was already gzipped.

corsicanguppy ,

This wasn’t “creativity over code” so much as it was the tail end of y2k and all the greybeards were canned so none could teach the shiny whiz kid how to code like an adult.

Without the linus-like code review sessions, they never learned why and how to improve.

Now their kludge-bro mentality has raised a whole new generation.

And that’s why people don’t know not to flatpak or npm themselves into a solarwinds sploit.

tvbusy , in Every language has its niche

RoR is too much magic for me. Getting started with any new code base is such a pain that I never want to do again. As a manager, I’ll avoid any job post that mentions Ruby. I have maintained projects written in Delphi, Centura, Java, C#, PHP and none of them even come close to the pain of RoR. Java and C# are notorious for ceremonial interfaces but that’s nothing compared to trying to figure out RoR automagics.

FMT99 ,

Maybe in enterprises settings what you say makes sense, but for the small to medium startups I usually work for, RoR is great. It’s super easy to prototype and switch lanes. If I had to do what I do in Java I’d go insane. As for Delphi…

The RoR “magic” being obtuse is extremely exaggerated most of the time and more meme than reality. If you think PHP is better, by which I guess you mean Laravel, how on earth is that less “magical”? React? Next? I’ll take Ruby any day.

ICastFist ,
@ICastFist@programming.dev avatar

React can go fuck itself with a pineapple, fuck that piece of shit. Every project I’ve had to deal with that used React was an absurdly bloated mess because it imported fuckloads of React plugins and addons.

corsicanguppy ,

Sh. I didn’t know react had its own supply-chain sploit risk. T-I-L

arc ,

There is a lot of magic in Java. Try Spring Boot for example, and things magically connect together with annotations, or somehow methods get injected onto interface on the fly, or an http interface maps onto a function with parameters because the runtime is doing it. This is most evident when you set a break point in some class and there might be 4 or 5 mystery functions it passed through between it and where you thought it was calling from. Sl4j, Lombok, Hibernate are doing the same kind of thing.

linux2647 , in Every language has its niche

Shopify is built on Ruby on Rails

SpaceNoodle ,

That explains a lot

idunnololz ,
@idunnololz@lemmy.world avatar

So is square IIRC

naught , (edited )

Yeah but Shopify also runs on GraphQL and Remix which are way more modern. This is like saying Twitter is RoR

edit: no it’s not

caleb ,

I worked at Shopify up until a year ago. github.com/shopify/shopify repo powers almost every inch of Shopify’s infrastructure and is entirely a rails monolith. It is not the same as saying Twitter is still rails.

naught , (edited )

Thanks for the insight! I’ve seen so many gql queries in the UI and remix is blowing up so I figured it was at least similar.

Edit: Shopify engineering publishes some neat articles, particularly on scaling rails + other systems. E.g shopify.engineering/horizontally-scaling-the-rail…

MonsiuerPatEBrown , in Every language has its niche

the perl monks have hidden away the monastic order safely until they are needed to fight the ai demons

anton ,
borf , in Every language has its niche

I miss Chef

heartfelthumburger , in Every language has its niche
@heartfelthumburger@sopuli.xyz avatar

I like ruby. Use it for a bunch of things at work.

otl , in Every language has its niche
@otl@hachyderm.io avatar

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

CommunityLinkFixer Bot ,

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

pkill ,

and therefore scales terribly ;;

otl ,
@otl@hachyderm.io avatar

@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

towerful ,

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

otl ,
@otl@hachyderm.io avatar

@towerful I mainly program in Go, so when I see all that extra software I notice how much easier it is when I get to just rely on the Go runtime. It does a lot of the heavy lifting done here, but the resulting code is not as clean. Actually just today I read through Mastodon’s code to track down a bug in my in-progress ActivityPub service (in Go) and found the Ruby really easy to navigate!

@programmer_humor

arc ,

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.

homoludens ,

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

FTFY ;)

SpeakinTelnet , in Every language has its niche
@SpeakinTelnet@sh.itjust.works avatar

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

MilderRichter ,

GitLab also uses Ruby on Rails

SpaceNoodle ,

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.

otl ,
@otl@hachyderm.io avatar

@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

technom ,

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.

TheBananaKing , in Every language has its niche

I really like ruby :(

EnderMB ,

Even in 2024, I say that Ruby is one of the best common languages available. While there are some weird syntax choices, and a lot of rope to hang yourself with when it comes to subjects like metaprogramming, it is a better Python than Python, in that it has a clean way to approach problems, and a simple structure to make coding clean and easy. The best part of Ruby is that its tooling is great at pushing best practices, like concise methods, good naming conventions, tests with single/aligned assertions, etc. I’ve taken many lessons from Ruby into other languages I use.

Rails, on the other hand, is totally different. Today, Zed Shaw’s essay on Rails is as accurate as ever, in that many Rails shops have just ignored years of best practices on the web, and opt to do things their way because it’s “better”.

Aatube , in Every language has its niche
@Aatube@kbin.social avatar

Homebrew

tsonfeir ,
@tsonfeir@lemm.ee avatar

… is a package manager…

paraphrand ,

… just run this bash script straight from the internet, it’ll be fine …

emptiestplace ,

ok that sounds like what i need

emptiestplace ,

hey can u tell me how

Aatube ,
@Aatube@kbin.social avatar

People make formulas (packages) and extensions in Ruby for it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines