Spyke
programming.dev

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

55

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

5
mkwtreply
lemmy.world

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

3

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"

2
lemm.ee

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...

42

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.

11

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.

4

@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.

19
fedia.io

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

15
Valmondreply
lemmy.world

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

5
_stranger_reply
lemmy.world

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

I love python.

4

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

1
lemmy.ca

F tier meme.

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

11

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

20
programming.dev

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.

8

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.

2

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.

4
uuldikareply
lemmy.ml

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.)

2
lemmy.world

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.

8
Valmondreply
lemmy.world

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

2

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.

2

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.

1
lemmy.ml

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

8
Valmondreply
lemmy.world

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.

0
Kissakireply
programming.dev

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

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

1
Valmondreply
lemmy.world

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?

0
Kissakireply
programming.dev

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.

1
discuss.online

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

7
Kissakireply
programming.dev

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

5
feddit.uk

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

6
Scooptareply
programming.dev

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

3

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

0

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.

4
sh.itjust.works

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.

5
BorgDronereply
lemmy.one

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

2

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.

3
lemmy.world

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.

3

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)

1

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?

2
lemmy.world

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.

1

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)

2

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

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