this post was submitted on 12 Mar 2024
8 points (100.0% liked)

Programmer Humor

35334 readers
28 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Please dont take this seriously guys its just a dumb meme I haven't written a single line of code in half of these languages

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Latex: Problem --> \def\please@#1#2#3#4{\e@kill#2#3{\me#1}#4@now} -->

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

C:

Problemreturn Solution;

C++:

Problem

const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) )
[–] [email protected] 1 points 1 year ago

But this doesn't return the Solution. You don't invoke the lambda.

(Or does C++ have implied returns now? Last I heard there was implied move)

[–] [email protected] 1 points 1 year ago

missing the stage of C where it's all incomprehensible bitfucking with comments like "this works, i do not know why it works, do not touch this"

[–] [email protected] 1 points 1 year ago

PHP: Problem -> real_solution_for_real_this_time() (real_solution_i_swear() is unsafe and deprecated)

[–] [email protected] 1 points 1 year ago

OK rust made me laugh