this post was submitted on 14 Jun 2024
659 points (93.0% liked)

Programmer Humor

19623 readers
84 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Stop comparing programming languages

  • Python is versatile
  • JavaScript is powerful
  • Ruby is elegant
  • C is essential
  • C++
  • Java is robust
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 93 points 5 months ago* (last edited 5 months ago) (3 children)
  • 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

Exception in thread "main" java.lang.NullPointerException: Cannot read the termToDescribeJava because is null at ThrowNullExcep.main(ThrowNullExcep.java:7)
Exec.main(ThrowNullExcep.java:7) 
  • CSS j ust # sucks
  • 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)
[–] [email protected] 23 points 5 months ago* (last edited 5 months ago) (2 children)

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

[–] LANIK2000 6 points 5 months ago

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

[–] [email protected] 4 points 5 months ago

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

[–] [email protected] 12 points 5 months ago (2 children)

Rust is downloading 1546 dependencies

[–] lastweakness 4 points 5 months ago

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

[–] LordKitsuna 3 points 5 months ago (2 children)

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

[–] lastweakness 8 points 5 months ago (1 children)

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

[–] [email protected] 1 points 5 months ago

Venv is the way

[–] [email protected] -1 points 5 months ago

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

[–] [email protected] 5 points 5 months ago (1 children)

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

[–] [email protected] 8 points 5 months ago

fixed ive using rust for a while