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.

Xylight , (edited ) in Stop comparing programming languages
@Xylight@lemdro.id avatar
  • Python is NameError: name ‘term_to_describe_python’ is not defined
  • JavaScript is [object Object]
  • Ruby is TypeError: Int can’t be coerced into String
  • C is segmentation fault
  • C++
  • Java is

<span style="color:#323232;">Exception in thread "main" java.lang.NullPointerException: Cannot read the termToDescribeJava because is null at ThrowNullExcep.main(ThrowNullExcep.java:7)
</span><span style="color:#323232;">Exec.main(ThrowNullExcep.java:7) 
</span>
  • CSS j ust # sucks
  • <HTML />
  • Kotlin is type inference failed. The value of the type parameter K should be mentioned in input types
  • Go is unused variable
  • Rust is Compiling term v0.1.0 (/home/james/projects/Term)
schnurrito ,

If you’re naming variables like that in Java you should definitely switch to C.

Xylight ,
@Xylight@lemdro.id avatar

fixed ive using rust for a while

xigoi ,
@xigoi@lemmy.sdf.org avatar

Rust is downloading 1546 dependencies

LordKitsuna ,

I’ll happily download 63928 depends so long as it continues to work. And it does, unlike python projects that also download 2352 depends but in the process brick every other python program on your system

xigoi ,
@xigoi@lemmy.sdf.org avatar

Good for you. Not all of us have terabytes of free space on our computers.

lastweakness ,

If you’re not using a venv for python development, that’s kind of on you

SatouKazuma ,

Venv is the way

lastweakness ,

Crates aren’t exactly runtime dependencies, so i think that’s fine as long as the 1500+ dependencies actually help prevent reinventing the wheel 1500+ times

sus ,

C++ is std::__cxx11::list<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0>, std::allocator<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0> > >::erase(std::_List_const_iterator<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0> >) /usr/include/c++/12/bits/list.tcc:158

Zacryon ,

The only reason to use AI in programming is to simplify C++ error messages.

LANIK2000 ,

I once forgot to put curly braces around the thing I was adding into a hashmap. If I remember correctly it was like ~300 lines of error code, non of which said “Wrong shit inside the function call ma dude”.

umbrella , in Start ups when that VC funding kicks in
@umbrella@lemmy.ml avatar

everything except pay me a decent wage and let me have free time.

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

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