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.

psycho_driver , in Stop comparing programming languages

C is powerful. Javascript is a husky midwestern gal at a Chinese buffet.

TheRisingApe ,

C is the one you want to marry, but JavaScript answers all of your drunk texts.

drspod , in Stop comparing programming languages

ITT: Rust programmers rewriting the joke in Rust.

const_void , in Life is hard

Lol

witx , in Stop comparing programming languages

I was caught by surprise and for some reason this joke clicked so much that I laughed for a while. Kudos

mindbleach , in Stop comparing programming languages

C++ is all of those, provided you pick any 10% of it.

You’re not supposed to cast every spell in the evil grimoire.

BatmanAoD ,

Well, except “robust”, unless you have very strict code standards, review processes, and static analysis.

(And arguably it’s never elegant, though that’s almost purely a matter of taste.)

mindbleach ,

When the standard for “robust” is Java

BatmanAoD , (edited )

I see where you’re coming from, but no matter how many null pointer exceptions there are in Java code, you’re almost always protected from actually wrecking your system in an unrecoverable way; usually the program will just crash, and even provide a relatively helpful error message. The JVM is effectively a safety net, albeit an imperfect one. Whereas in C++, the closest thing you have to a safety net, i.e. something to guarantee that invalid memory usage crashes your program rather than corrupting its own or another process’s memory, is segfaults, which are merely a nicety provided by common hardware, not required by the language or provided by the compiler. Even then, with modern compiler implementations, undefined behavior can cause an effectively unlimited amount of “bad stuff” even on hardware that supports segfaults.

Additionally, most languages with managed runtimes that existed when Java was introduced didn’t actually have a static type system. In particular, Perl was very popular, and its type system is…uh…well, let’s just say it gives JavaScript some serious competition.

That said, despite this grain of truth in the statement, I think the perception that Java is comparatively robust is primarily due to Java’s intense marketing (particularly in its early years), which strongly pushed the idea that Java is an “enterprise” language, whatever that means.

ArbitraryValue , in Life is hard

I spent those years in dll hell.

jaybone ,

.so please, I use arch btw.

randompasta , in Life is hard

Meanwhile in France: Lunch time!

lockhart ,

can’t stop eating though

onion ,

Can’t stop eating dough

jaybone ,

Baguette du fromage

oce ,
@oce@jlai.lu avatar

For mage in pain:

user1234 , in Stop comparing programming languages

C++ EXISTS

tiredofsametab , in Stop comparing programming languages
  • Rust has safety and efficiency close to C
  • Perl is processing most of your healthcare records
  • Ada is doing space stuff
  • Go is going places
DacoTaco ,
@DacoTaco@lemmy.world avatar

Perl? Nah, in this country its vb6, C#, java, gupta/centura and javascript :')
Source: been working for multiple healthcare market leaders in this country for 5 years now

ikidd ,
@ikidd@lemmy.world avatar
mycelium_underground ,
@mycelium_underground@lemmy.world avatar

What happens if I run paint splatters through OCR? Hmmmmm that random output looks like Perl. Holy shit it is Perl!

This actually happening is one reason I love the internet.

NegativeLookBehind , in Life is hard
@NegativeLookBehind@lemmy.world avatar

And pain is immutable

henfredemars , (edited ) in Life is hard

Missing type or identifier.

A const what?

Also, I read that you have to assign a const when it is declared. Something doesn’t feel right about this statement.

hypertown OP ,

:any

Kaboom ,

Its javascript, itll just let you do that

vithigar ,

it’ll just let you do that

Pretty much sums up JavaScript’s entire philosophy.

Kaboom ,

Imo, its better for it. A tool shouldnt tell the user what to do

Ephera ,

I think, most of us consider it part of the job of a good tool, that it prevents us from using it wrongly. Allows us to use it much more recklessly.

Ziglin ,

But the CPU would be thoroughly confused in many cases. Like if you added a number with a string. This means low level tools have too and therefore people who do low level programming are confused and the generally carefree has rules can make it difficult to debug js.

Also I think rust making you write “safe” code unless you explicitly tell it otherwise is a great thing.

So I think that tools telling the user that they’re doing something wrong is great, tools telling the user to stick with physical limitations for better performance are completely valid but what js does seem really weird with having constants be reassignable, making them nothing but labels combined with HTML I find it even more annoying.

Justas ,
@Justas@sh.itjust.works avatar

[‘a’] + [‘b’] = ‘ab’

Gets me every time.

Ziglin ,

I’m always more confused by adding integers to strings or something being an empty object because something else was undefined and the console didn’t bother to tell me.

skulbuny ,
@skulbuny@sh.itjust.works avatar

You’re downvoted, but you’re 100% right. The web is designed to not break. Engineers who can’t accept that don’t get to complain

jaybone ,

Let me just coalesce these types for you.

pipe01 ,

Ackshually you don’t need a type qualifier in C

henfredemars ,

Really? TIL.

zaphod ,

Defaults to int if I’m not mistaken.

Static_Rocket ,
@Static_Rocket@lemmy.world avatar

Well, assuming you meant type specifier, at least not before C99. After that it is required. C23 explicitly states that a type specifier is required for all declarations.

If you actually meant type qualifier, then no. That was never required.

jaybone ,

Huh?

9point6 ,

void

S0UPernova ,

Maybe…


<span style="color:#323232;">const pain = Infinity
</span>
TurtleTourParty ,

const long pain = 1;

jaybone ,

1L

Steamymoomilk , in Stop comparing programming languages

There is another That you might say is a little rusty

jol ,

This meme only works if you don’t include any example that is better than others in every regard.

Excrubulent ,
@Excrubulent@slrpnk.net avatar

I keep seeing people talk about Rust, and to be honest I never thought much about it because I’ve never had a reason to use it.

But when so many people in a programmer meme sub are saying “actually no joke Rust is amazing” that makes me pay attention.

So I looked into it and found this: github.blog/2023-08-30-why-rust-is-the-most-admir…

jflorez , in Life is hard

If they move to Python they can just have pain without constant 😜

lugal ,

And if they learned French instead, they had bread but this is not how it works. We don’t always get what we want nor what we deserve

pelya , in Stop comparing programming languages

C++ is OVERWHELMINGLY SUPERIOR, if you ask any professional C++ developer.

BatmanAoD ,

I was a professional C++ developer for several years, and came to the conclusion that any professional C++ developers who don’t acknowledge its flaws have a form of Stockholm Syndrome.

eco ,

This is true of every language. If you can’t think of things you don’t like about the language you’re working in (and/or its tooling) you just don’t know the language very well or are in denial.

BatmanAoD ,

Ehhh, I mean this more strongly. I’ve never met people more in denial about language design problems than C++ adherents. (Though admittedly I haven’t spent much time talking to Lisp fans about language design.)

pelya ,

It’s made worse by the fact C++11 made a lot of solutions for the deep problems in the language. As the C++ tradition dictates, the problems themselves are carefully preserved for backward compatibility, the solutions are like a whole different language.

And Lisp is small - the first Google result provides a Lisp interpreter in 117 lines of Python code.

BatmanAoD , (edited )

C++11 also introduced new problems, such as the strange interaction between brace-initialization and initializer-lists (though that was partially fixed several years later), and the fairly arcane rules around move semantics with minimal compiler support (for example, it would be great if the standard required compilers to emit an error if a moved-from object were accessed).

I know Lisp is minimal, I’m just saying that I expect there are Lisp fans who won’t acknowledge (or would excuse) any shortcomings in the language, just as there are C++ fans who do the same for C++.

Chadus_Maximus ,

Can confirm. Chose to focus on C++ because it literally makes me superior to other people.

Kushan , in Stop comparing programming languages
@Kushan@lemmy.world avatar

C# is also here

go_go_gadget ,

Shhh don’t tell people they’ll ruin it.

jubilationtcornpone ,

I’m a [primarily] C# turned JavaScript dev. I miss C#.

douglasg14b ,
@douglasg14b@programming.dev avatar

The ecosystem is really it, C# as a language isn’t the best, objectively Typescript is a much more developer friendly and globally type safe (at design time) language. It’s far more versatile than C# in that regard, to the point where there is almost no comparison.

But holy hell the .Net ecosystem is light-years ahead, it’s so incredibly consistent across major versions, is extremely high quality, has consistent and well considered design advancements, and is absolutely bloody fast. Tie that in with first party frameworks that cover most of all major needs, and it all works together so smoothly, at least for web dev.

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