this post was submitted on 16 Jun 2023
84 points (96.7% liked)

Programmer Humor

32560 readers
1118 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 27 comments
sorted by: hot top controversial new old
[–] Otome-chan@kbin.social 7 points 1 year ago (2 children)

I'm just gonna go out on a limb and ruffle some feathers and say it's node.js

[–] pkulak@beehaw.org 1 points 1 year ago (1 children)

Well, that’s a runtime. But yes, JavaScript.

[–] Otome-chan@kbin.social 0 points 1 year ago (1 children)

regular javascript is actually okay in my book. It's just node.js that I despise because of all it's weirdness. Javascript should just be able to be opened in a browser and run with no fuss.

[–] Freesoftwareenjoyer@lemmy.world 0 points 1 year ago (1 children)

Javascript should just be able to be opened in a browser and run with no fuss

It can be. But if you want to have modules you need to use something to compile them into a single file.

[–] Serdan@lemm.ee 0 points 1 year ago (1 children)

There are native modules, no?

Yes, but then the browser will fetch them with separate HTTP requests. You might not want to wait for 10 requests to finish before your web app can load.

Also if you want to use the features of TypeScript or SASS (many people do), you will need to turn that code into something the browser will understand.

[–] megahbite@dataterm.digital 1 points 1 year ago

I’m glad I got out of webdev when node.js started taking off.

[–] TenorTheHusky@kbin.social 6 points 1 year ago

PHP has more $s in it than spez's eyes

[–] decavolt@kbin.social 5 points 1 year ago (5 children)

People sure like to dunk on PHP. I'll take whatever flak for this, but this is the kind of meme a .NET fanboy or Ruby on Rails bro would make when they haven't touched any languages other then their prescious, and don't know wtf they're talking about.

PHP, after all these years, is STILL running 78% of all sites. That's not because it's garbage or the worst. It's solid, reliable, mature and very well documented. And I say this as someone who has gladly moved to Python, but also work in in others.

[–] Worthstream@lemmy.one 3 points 1 year ago (1 children)

Most of the hate for php was born back in version 3 or 4, when it was a mess. Also a lot of people who where in college in those years learned php as a first language.

Combine a language that does not enforce good coding practices and a lot of people making their first website, and you get some pretty horrible codebases.

As part of my job is to maintain legacy php websites, I've seen lovercraftian nightmares. I love modern php, but I get where all this hate is coming from.

[–] VerifiablyMrWonka@kbin.social 0 points 1 year ago (1 children)

I've seen lovercraftian nightmares

I love this.

[–] Worthstream@lemmy.one 1 points 1 year ago

Once I had to fix a website with everything in the same script. Every page, every bit of html with inlne CSS and Javascript, was there in a gigantic sequence of else if, with functions (with embedded business logic) to output the common bits.

I mean, the streets of R'yleh were more navigable than... that.

People who say those things usually don't know the language very well or haven't used it at all. I see the same with JavaScript. I don't get why some programmers are so ignorant.

[–] firelizzard@programming.dev 1 points 1 year ago

PHP was the first language I did any significant coding in. I will never use it again if I can at all avoid it.

[–] axtualdave@lemmy.world 1 points 1 year ago

Popularity doesn't necessarily imply good. For example, we used to put lead in all the gasoline.

[–] retiolus@lemmy.cat 1 points 1 year ago

I'm a Python guy ✌️, this is a meme

[–] NightAuthor@beehaw.org 3 points 1 year ago (1 children)
[–] cowvin@kbin.social 1 points 1 year ago

LOL yeah, I checked out the source repo for kbin because I was curious what it was written in and I saw a lot of PHP. I'm not a web dev so I don't know PHP myself.

[–] Haus@kbin.social 2 points 1 year ago

I came into this thread ready to defend the honor of Lisp.

[–] rackmountrambo@kbin.social 2 points 1 year ago (1 children)

WordPress has made me the Python developer I am today.

[–] VerifiablyMrWonka@kbin.social 2 points 1 year ago* (last edited 1 year ago)

Yes, but WordPress !== PHP. It's one of the worst examples of what PHP can look like and they resolutely refuse to adopt modern standards or improve in any way. They still use SVN too. Bunch of backwards troglodytes.

[–] ForbiddenRoot@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

I feel like I should make a "10 Best Programming Languages" one and put 10 versions of Rust in.

Wait, is there a RustJerk over on Lemmy? We need a RustJerk.

[–] bigkahuna1986@lemmy.ml 0 points 1 year ago (1 children)

Pretty sure brain fuck should be on this list.

[–] fubo@lemmy.world 3 points 1 year ago (2 children)

The point of "esoteric" programming languages like Brainfuck or Befunge is to be a source of puzzles for people who enjoy that kind of puzzle. They're not "bad programming languages" any more than an escape room is a "bad apartment".

[–] nightauthor@kbin.social 1 points 1 year ago

Solid analogy

[–] Cainisdelta@lemmy.world 1 points 1 year ago

Oh yeah. Well if it's not a bad apartment then how come everytime I try to get freaky in one they kick me out. Litterally leasing a room from someone and I can't even enjoy the privacy of my new home? It's like they have cameras in the rooms too. How could it be a good apartment if there's cameras in there. Clearly a bad apartment.

[–] CoderKat@kbin.social -1 points 1 year ago

While I'm no fan of PHP, I feel like it gets a disproportionate amount of hate when there's some clearly worse languages out there. Where's the hate for Perl, Bash, Visual Basic, or Matlab (never mind specialty languages like Spice).

Or how about some controversial ones, to add some spice? C is often popular for it's simplicity, but it's arguably a terribly designed language. Undefined behavior is terrible. Pretty much no modern language makes the mistakes C made, so it's pretty clear we've universally agreed it was bad design.

Or for another one, Lisp family languages are popular in academic circles, but does anyone truly think all those parentheses made for a practical language? I think the near absence of any modern software being built with Lisp family languages speaks for itself.

load more comments
view more: next ›