this post was submitted on 13 Jul 2023
60 points (91.7% liked)

Programmer Humor

32356 readers
1021 users here now

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

Rules:

founded 5 years ago
MODERATORS
top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago (2 children)

And added

  • Shitty
    • Little
    • Indentations
[–] [email protected] 2 points 1 year ago (1 children)

And then you do the same in c with ; for better readability

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

Sometimes inline stuff is more readable.

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

We got that in python too!

your_mom = "the best" if i_got_icecream() else "just good"

Edit: on a more serious note, I'm not sure if python's syntax helps with readability, in the real world everyone indents or you won't really keep your job, and I've read some really shitty python code anyway, indented or not.

If a c/++/js/whatever file is unreadable, grab your favourite flavour of autoformatter and run it to read the thing, but shitty naming won't get fixed by that.

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

...and I am not sure which of both evil grind my gears more.

[–] [email protected] 0 points 1 year ago (1 children)

then use javascript :) it has neither

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

...guess what I do for a living 😜 But there, I dislike the typelessness.

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

I would really like to, but it is not supported on the target, sooo...

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

You know typescript is a language that is getting transpiled to plain js. ( Module, CommonJS, almost every version ). So it can not not fit in there XD

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

But you HAVE to have 4 tabs for the next line, though.

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

I dropped the ; and have never looked back, yo

[–] [email protected] 0 points 1 year ago (1 children)

Hi there! The links in your response are not clickable for Lemmy users, here are the clickable versions: [email protected]

[–] [email protected] 0 points 1 year ago (1 children)

@CommunityLinkFixer
It's not meant to be clickable. It's just meant to tag the community.

I can't do it differently than this in Friendica. The problem if I use ! is that the post will become private, which I don't want.

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

Thanks for the info, the bot now takes that into account!

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

@rikudou oh cool! thank you!

load more comments
view more: next ›