this post was submitted on 28 Sep 2024
1208 points (99.1% liked)

Programmer Humor

32479 readers
285 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 128 points 1 month ago* (last edited 1 month ago) (2 children)
/**
 * Gets the user
 **/
fun getUser() {
    return this.user;
}
[–] [email protected] 33 points 1 month ago (1 children)

I'm sorry, I don't think I understand what's happening here…

[–] [email protected] 29 points 1 month ago (1 children)

Let me find the sequence diagram...

[–] [email protected] 12 points 1 month ago (1 children)

You need the requirements doc from marketing. Then it will all totally make sense for sure. No cap.

[–] [email protected] 8 points 1 month ago* (last edited 1 month ago) (1 children)

Okay now I get the joke.
I hate these kind of people.

By the way, your ``` both need to be on their own, separate line

[–] [email protected] 3 points 1 month ago (1 children)

It renders correctly in my client (Sync), what are you using? I'll edit it anyway.

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

It renders correctly on the web as well for me.

But the ``` being on their own line is how to write it properly, as stated this website among many others.

This way, you can put the intended programming language on the same line as the first ```, ensuring proper colour coding!

Ex.

echo "Hello $name\n";
echo "Hello $name\n";

EDIT I checked on mobile, it rendered odd on Jerboa for me:

Screenshot of essteeyou@lemmy.world their comment in the Jerboa client before the edit

Now it is fixed:

Screenshot of essteeyou@lemmy.world their comment in the Jerboa client after the edit

[–] [email protected] 2 points 1 month ago (1 children)

Yep, I know, but my code isn't in a real language.

[–] [email protected] 1 points 1 month ago (1 children)

You can also not do it, it was just an additional comment!

[–] [email protected] 2 points 1 month ago

Thanks for your code review. :-D