js is in the "pure embodiment of hell" category along with vb.net and php

134 points · 92 comments · view on lemmy.world

92 Comments

sudo@programming.dev · 55 pts · 1y (4 replies)

At no point should C++ be considered "lawful" or "good". Haskell would be the best.

rtxn@lemmy.world · 24 pts · 1y (1 reply)

Haskell is where hope and sanity go to die.

sudo@programming.dev · 5 pts · 1y

That's when you have to comply with decades of backwards compatibility.

dosuser123456@lemmy.sdf.org · 7 pts · 1y (1 reply)

Haskell would be the best.

lisp wants some words with you about that

sudo@programming.dev · 6 pts · 1y

I wouldn't call lisp "lawful".

Sonotsugipaa@lemmy.dbzer0.com · 53 pts · 1y (10 replies)

C++, lawful good

dosuser123456@lemmy.sdf.org · 10 pts · 1y (2 replies)

tbh i didnt even make this meme, it was my dad, i just posted it here

twice_hatch@midwest.social · 2 pts · 1y

Hi ops Dad

lena@gregtech.eu · 1 pts · 1y

That seems like a great dad

mkwt@lemmy.world · 3 pts · 1y (1 reply)

Someday the concepts will come and fix all of this. It has been foretold.

Sonotsugipaa@lemmy.dbzer0.com · 2 pts · 1y

Concepts are already here - (as of now) they fix a subset of this, and errors messages can still be extremely long.
They're less like "here's every single template parameter of the involved types" and more like "this template thingy has many specializations with different constraints, here's a list of all of them and why none of them are satisfied with your parameters"

Valmond@lemmy.world · 3 pts · 1y (1 reply)

Ah, template code.

Kissaki@programming.dev · 4 pts · 1y

Template-C++ is not C++ after all /s

Boomkop3@reddthat.com · 2 pts · 1y (2 replies)

That I'll call chaotic evil

Sonotsugipaa@lemmy.dbzer0.com · 1 pts · 1y (1 reply)

Not evil by itself, but if you want to obfuscate C++20 code you can get REALLY creative...

Boomkop3@reddthat.com · 2 pts · 1y

Depends on how much you hate yourself

rockSlayer@lemmy.blahaj.zone · 52 pts · 1y (1 reply)

Some of those color choices were chaotic evil too

dosuser123456@lemmy.sdf.org · 6 pts · 1y

i didnt make the template

mmddmm@lemm.ee · 42 pts · 1y (2 replies)

No way Bash is lawful, or Malbolge is chaotic... And no way C++ is lawful either.

Did you just throw the languages around at random? At least Perl fell on the right place...

backgroundcow@lemmy.world · 11 pts · 1y

ADA should be the lawful good.

Bash is chaotic neutral.

Java is lawful neutral.

Javascript fits ok as chaotic evil.

Move ASM to neutral evil.

And maybe f77 as lawful evil.

MonkderVierte@lemmy.ml · 4 pts · 1y

Right? I do like Shell but scripts over 200 loc get quickly confusing, no matter how well you organize them. Not to start with Batch, they get confusing at 10 loc.

lmmarsano@lemmynsfw.com · 19 pts · 1y

@sabrinaesaquino

Stop comparing programming languages

Python is VERSATILE

JavaScript is POWERFUL

Ruby is ELEGANT

C is ESSENTIAL

C++

Java is ROBUST

Out of all the programming languages, C++ is definitely one of them.

pewpew@feddit.it · 19 pts · 1y

C++ is chaotic goodl, C is lawful good in my opinion

BlueKey@fedia.io · 15 pts · 1y (5 replies)

Python should be one of the chaotics.
You can even dynamically create global variables in there.

Valmond@lemmy.world · 5 pts · 1y (3 replies)

Or stick a new variable onto the instance of a class 🤯

_stranger_@lemmy.world · 4 pts · 1y (2 replies)

or return values for properties that don't exist, and only get created on access!

I love python.

ulterno@programming.dev · 1 pts · 1y

It's like having a PHP webserver inside a class

BlueKey@fedia.io · 1 pts · 1y

Or have variables inside a loop hoisted up in the function. Fun when you capture them with lambdas.

masterspace@lemmy.ca · 2 pts · 1y

Most overrated language imho.

Im_old@lemmy.world · 12 pts · 1y

I would have put assembly as true neutral

masterspace@lemmy.ca · 11 pts · 1y (6 replies)

F tier meme.

"Haha JavaScript sucks'" is the easiest way to spot someone who spends more time on programming subreddits then they do programming.

Shanmugha@lemmy.world · 20 pts · 1y

Well, JS does suck. It doesn't matter how much time I spend programming, this truth will stand

SatouKazuma@programming.dev · 8 pts · 1y (1 reply)

JS is just insane. Learning it took far more of my time than any other language, and honestly, I'm tempted to say it's not even a single language because of all the frameworks and non-standard libraries.

masterspace@lemmy.ca · 2 pts · 1y

I'm tempted to say it's not even a single language because of all the frameworks and non-standard libraries.

Or you know, you could be tempted to say it has multiple frameworks you can choose from.

One is more accurate than the other, but if languages are only allowed to have a single framework in your mind, then do you.

Quik@infosec.pub · 4 pts · 1y

This but with PHP, kinda. It isn't my favorite language/really good, and at some point in time it deserved the hate, but it has come a long way.

uuldika@lemmy.ml · 2 pts · 1y (1 reply)

JS isn't even on here though. and whoever made this meme knew enough to include two Esolangs (though I'm insulted they included nary a single 'funge.)

masterspace@lemmy.ca · 2 pts · 1y

It's in the title

twice_hatch@midwest.social · 9 pts · 1y (2 replies)

C++ good? Shiggity diggity

trolololol@lemmy.world · 6 pts · 1y (1 reply)

Tell me op never did c++ without telling me op never did c++

Valmond@lemmy.world · 1 pts · 1y

C++ is the wizard, the nitroglycerin glass vial type.

ThirdConsul@lemmy.ml · 8 pts · 1y (9 replies)

PHP has got a lot of new features in the language that makes it a little bit like c# now, so it's not that bad anymore :P

Valmond@lemmy.world · 0 pts · 1y (8 replies)

C# is crap though. Well IMO anyways.

Kissaki@programming.dev · 2 pts · 1y (7 replies)

C# is pretty much my fav

Valmond@lemmy.world · 0 pts · 1y (6 replies)

If you're doing almost any language for a while it vecomes easy and smooth. In your opinion.

C# is not horrendous but it lacks so many things like header files.

Kissaki@programming.dev · 1 pts · 1y (5 replies)

I would hate to have header files with separate / duplicate declarations.

If I want an interface I'll create an interface type.

Valmond@lemmy.world · 0 pts · 1y (4 replies)

What about:

Class A{ /* declarations */ };

A a; <= doesn't instantiate a class!

And just put a "a.cs" file somewhere and it'll pollute the global namespace magically.

And on and on.

A FOSS language would have evolved, microsoft just doesn't care.

But I guess it's your fav language so you won't take any criticism right?

Kissaki@programming.dev · 1 pts · 1y (3 replies)

But I guess it’s your fav language so you won’t take any criticism right?

If that's your take I'll just leave it at that.

Valmond@lemmy.world · 0 pts · 1y

Busted 😁

PieMePlenty@lemmy.world · 8 pts · 1y (4 replies)

I haven't used PHP in a while (10+years) but I didn't think it was that frustrating as its reputation seems to imply today. I remember their docs all had examples and I found that pretty useful.

Valmond@lemmy.world · 2 pts · 1y (1 reply)

For what I remember, it was just a normal interpreted language but you had to put "$" everywhere.

Kissaki@programming.dev · 2 pts · 1y

🤑

Matty_r@programming.dev · 2 pts · 1y

It can be pretty frustrating when dealing with old code bases. However its introducing a lot of really great features, so if you've got the time to either start a new project or rewrite with the more modern features you'll be fine.

masterspace@lemmy.ca · 1 pts · 1y

The literal entirety of Facebook / Instagram / Whatsapp's backend is built on PHP.

I'm not saying that was a good choice, but it does guarantee a lot of resources flowing to it's development.

OmegaLemmy@discuss.online · 7 pts · 1y (3 replies)

PHP has weird decisions but in the end it's a good back end

Kissaki@programming.dev · 5 pts · 1y (2 replies)

I think the front and back end of PHP are pretty similar. They are both the same letter P after all.

Colloidal@programming.dev · 1 pts · 1y

Ba-dum-ts!

OmegaLemmy@discuss.online · 1 pts · 1y

i needed to switch devices to get this joke, and man, shut up haha

weissbinder@feddit.org · 6 pts · 1y

Where is lisp?

TootSweet@lemmy.world · 6 pts · 1y (3 replies)

Someone woke up this morning and chose violence.

Kissaki@programming.dev · 2 pts · 1y (2 replies)

Where can I find this language called violence?

TootSweet@lemmy.world · 2 pts · 1y (1 reply)

Damn. You're tempting me to make a novelty language.

Kissaki@programming.dev · 2 pts · 1y

Other languages have terminology like throw and break. We're not too far off.

i_am_not_a_robot@feddit.uk · 6 pts · 1y (2 replies)

I would have put Perl as lawful evil, Brainfuck as Chaotic Evil and maybe ASM should have been Neutral Evil

Scoopta@programming.dev · 3 pts · 1y (1 reply)

I feel like malbolge is a much better fit for chaotic evil than brain fuck is but I agree with the rest

i_am_not_a_robot@feddit.uk · 0 pts · 1y

To be fair I'd not heard of Malbolge so whatever.

MonkderVierte@lemmy.ml · 6 pts · 1y (2 replies)

Whats DIS?

uuldika@lemmy.ml · 4 pts · 1y

It appears to be Dis thing right here.

Apparently it's a nerfed variant of Malbolge. Malbolge is literally cryptographically difficult to program in, while Dis is merely migraine-inducing.

dosuser123456@lemmy.sdf.org · 2 pts · 1y

esolangs.org/wiki/Dis

tldr: malbolge wimpmode

Grandwolf319@sh.itjust.works · 5 pts · 1y (2 replies)

Given how python tries to be as readable as possible with its controversial stance on using indentation, is it really neutral?

Idk if moral alignment makes sense for languages, at least not as much as weapon metaphors.

BorgDrone@lemmy.one · 2 pts · 1y (1 reply)

The lack of braces in python code makes it quite difficult to read for someone who’s used to languages that use braces.

Grandwolf319@sh.itjust.works · 3 pts · 1y

I agree, I was very careful to say tries to ಠᴗಠ

MonkderVierte@lemmy.ml · 5 pts · 1y (1 reply)

Replace maybe C++ with Haskell.

SatouKazuma@programming.dev · 6 pts · 1y

Or Rust

einlander@lemmy.world · 4 pts · 1y (3 replies)

Vb.net us fun. It's like c# but with alternate words.

dosuser123456@lemmy.sdf.org · 2 pts · 1y (2 replies)

i still hate both and all of .net framework yeah, even vscode

masterspace@lemmy.ca · 3 pts · 1y

VSCode was literally the IDE Microsoft created for working on everything but .NET framework, and it is built on Electron, it has nothing to do with .NET.

Kissaki@programming.dev · 1 pts · 1y

You mean specifically net framework or net >= 6 as well?

dejected_warp_core@lemmy.world · 2 pts · 1y (3 replies)

ASM is much closer to true neutral. There are no high-level language rules/laws, no other man-made constructs on top of the silicon. We are speaking the language of machines, forever moving bytes between registers and addresses. Nothing more.

Edit: to be clear, the meme is great as-is. But I'm left wondering if this observation would also fit the format?

dosuser123456@lemmy.sdf.org · 1 pts · 1y (2 replies)

i already said i did not make this one

dejected_warp_core@lemmy.world · 1 pts · 1y (1 reply)

It's all good man. If that came across as a sharp criticism of this work, I apologize. Usually, folks stir up debate on these things without any of it directed at the author. My text doesn't convey this sentiment at all, so I left it open for interpretation. Rest assured, I got a good chuckle from this meme and simply want to express a personal opinion on what I would have done differently (had I not been too lazy to make a meme myself). I'll go clean up my comment to help make all this clear to others. Thanks for understanding.

dosuser123456@lemmy.sdf.org · 2 pts · 1y

no problem, tbh if it wrere me to write it id also have put asm as true newutral. i actually did asm a few times. sadly only know mips (lol)

pixeltree@lemmy.blahaj.zone · 2 pts · 1y (4 replies)

Pythons chaotic evil

ReluctantMuskrat@lemmy.world · 3 pts · 1y (1 reply)

I'd put it in the lawful category. 4 space indentation and other strict formatting requirements chaffs me to no end, just like a hard-ass teacher requiring name and student number in some specific and strict format at the top of a page.

pixeltree@lemmy.blahaj.zone · 1 pts · 1y

Hard for me to categorize any loosely typed language as lawful personally. You are right though, semantic whitespace is definitely more lawful (and imo definitely fucking evil)

OmegaLemmy@discuss.online · 2 pts · 1y (1 reply)

No, true neutral

pixeltree@lemmy.blahaj.zone · 1 pts · 1y

Loosely typed with semantic whitespace definitely falls under evil in my book

harsh3466@lemmy.ml · 2 pts · 1y

Guess I'm lawful neutral.

Boomkop3@reddthat.com · 2 pts · 1y

PHP may be a little similar to perl

jia_tan@lemmy.blahaj.zone · 2 pts · 1y

JDSL

pelya@lemmy.world · 1 pts · 1y

I was forced to code in Perl one time, there's no way it could be good.