this post was submitted on 13 Jul 2023
172 points (92.6% liked)

Programmer Humor

32479 readers
282 users here now

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

Rules:

founded 5 years ago
MODERATORS
top 25 comments
sorted by: hot top controversial new old
[–] Rooki@lemmy.world 20 points 1 year ago (2 children)

And added

  • Shitty
    • Little
    • Indentations
[–] BigBon@lemmy.fmhy.ml 7 points 1 year ago (1 children)

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

[–] TwilightKiddy@programming.dev 3 points 1 year ago (1 children)

Sometimes inline stuff is more readable.

[–] fushuan@lemm.ee 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.

[–] FUsername@feddit.de 1 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] Rooki@lemmy.world 0 points 1 year ago (1 children)

then use javascript :) it has neither

[–] FUsername@feddit.de 2 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] Rooki@lemmy.world 2 points 1 year ago (1 children)
[–] FUsername@feddit.de 0 points 1 year ago (1 children)

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

[–] Rooki@lemmy.world 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

[–] ripcord@kbin.social 7 points 1 year ago

I dropped the ; and have never looked back, yo

[–] CommunityLinkFixer@lemmings.world 4 points 1 year ago (1 children)

Hi there! The links in your response are not clickable for Lemmy users, here are the clickable versions: !programmerhumor@lemmy.ml

[–] anders@rytter.me 2 points 1 year ago (3 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.

[–] anders@rytter.me 2 points 1 year ago (2 children)
[–] CIA_chatbot@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

So. What do you have against bots? Racist

[–] anders@rytter.me 3 points 1 year ago (1 children)
[–] CIA_chatbot@lemmy.world 4 points 1 year ago

That’s better, bots are people too!

[–] maegul@lemmy.ml 3 points 1 year ago

Don't worry ... it was adorably understandable. Like ... "let him get it out, he needs to say this".

[–] rikudou@lemmings.world 2 points 1 year ago (1 children)

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

[–] anders@rytter.me 1 points 1 year ago

@rikudou oh cool! thank you!

[–] astropenguin5@lemmy.world 1 points 1 year ago (1 children)

It actually is clickable and works properly for me, using voyager + Firefox + android funnily enough

[–] anders@rytter.me 0 points 1 year ago (1 children)

@astropenguin5
What is voyager?

And yes it is clickable but the problem is, it sends people to lemmy.ml which is where the community is hosted. That might be a problem for people who aren't registered on this instance.

[–] astropenguin5@lemmy.world 0 points 1 year ago (1 children)

Just to confirm, it's the @programminghumor link right? When I tap it it sends me to the community in the app, not opening a website. I'll check how it behaves on my laptop too in the normal website

And Voyager is what was formerly wefwef.app, the url is the same still I think but the name has changed. It's a PWA for mobile

[–] anders@rytter.me 0 points 1 year ago (1 children)
[–] astropenguin5@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Yeah i really like it. i just tried it on my laptop in normal browser, and it does behave poorly. even in voyager/wefwef on my laptop it is weird using this link but on my phone it acts like this

Edit: maybe it's because on my phone I'm signed in to lemmy.world and it auto-fixes the link?

load more comments
view more: next ›