There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

whiskers , in Oops

Happened yesterday for about 15 mins

MurdoMaclachlan , in More the merrier
@MurdoMaclachlan@lemmy.world avatar

Image Transcription: Meme


Junior devs writing comments:

[A photograph of a road signpost in front of a metal fence with a low, long building in the distance. The post has two signs on it. At the top is an octagonal sign, filled red with a white outline, reading “STOP”. Beneath it is a rectangular sign with an arrow pointing up to the stop sign, and text reading “THIS IS A STOP SIGN”.]


I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.

sgtlighttree ,

I was wondering where these comments went. Keep up the good work, mate!

MurdoMaclachlan ,
@MurdoMaclachlan@lemmy.world avatar

Thanks! Not sure if there’s been other people doing any or not, but for my part I just do them when I find the time, which unfortunately isn’t all that often.

nuez_jr ,

Good bot.

lugal ,

You mean good human.

I did this over on r*ddit for a while and I’m glad to see that that community exists here too

pythonoob ,

This also works quite well as a meta comment about junior dev commenting practices.

teamonkey , in Would you agree?

I don’t see anyone outside so it checks out.

MrSlicer ,

They are all learning how to use the terminal.

Agent641 ,

They are inside trying to compile the software thst opens the automatic doors.

CanadaPlus ,

They will die there, because they need a slightly older version of some minor library for compatibility, and nobody cared enough to continue hosting it.

MrSlicer ,

Sudo apt install sliding-doors if that doesn’t work check the snap store, best I can do 🤣

sharkfucker420 ,

Real

ISometimesAdmin , in Error 502:
@ISometimesAdmin@the.coolest.zone avatar

I kinda want to set this up now, ngl

Naia , in More the merrier

A lot of this comes from professors wanting comments in assinments and grade on arbitrary levels of if it exists.

I had one class where the instructor would give a vuage “not enough comments” that I did comments like this on every fuction and loop out of spite.

coloredgrayscale ,

“too many comments”.

Anticorp ,

“Pointless comments”

rem26_art , in Error 502:
@rem26_art@kbin.social avatar

thats an ancient version of nginx lol

Untitled_Pribor ,

OP should follow this guide

WorldieBoi , in Error 502:

programmer_dad_jokes

turbodrooler ,

Seriously! Another one for the repertoire

veloxization , in Oops
@veloxization@yiffit.net avatar

Or in the case of some languages:

“Oh. I forgot a return statement.”

NotAViciousCyborg ,

deleted_by_author

  • Loading...
  • noproblemmy ,

    The kind bullshit that makes me extract a value from a cache I just calculated just to make sure it is working.

    BorgDrone , in Int and bool walk into a bar

    Thermostatic shower mixers are not a thing where you live?

    NikkiNikkiNikki ,

    Not common in the US I believe, or at least I haven't heard or seen one of them.

    You just gotta "guess" what's correct and then feel the water coming out

    BorgDrone ,

    Weird, they are super common here in the Netherlands. Not expensive either. You just set it to a temperature and it’ll keep it constant.

    NikkiNikkiNikki ,

    now I want one

    Haus ,
    @Haus@kbin.social avatar

    If I'm thinking of the same device, the one I used in Sweden and Norway, it's fantastic. It's in the shower itself, so you don't have to contend with 30m of cold pipes between a less effective water heater and the nozzle.

    BorgDrone ,

    I can highly recommend it. Get a good name-brand one, like Grohe. Example.

    mercano ,
    @mercano@lemmy.world avatar

    In the house I grew up in, you’d also have to hope no one flushed the downstairs toilet. If so, the cold water pressure would suddenly drop, leaving a lot more hot water coming out of the shower head.

    totallynotarobot ,
    PipedLinkBot ,

    Here is an alternative Piped link(s): piped.video/rcNAf_Tx4Tk

    Piped is a privacy-respecting open-source alternative frontend to YouTube.

    I’m open-source, check me out at GitHub.

    mustardman ,

    I knew this was going to be the link and was imagining the Mozart part at the end

    radix ,
    @radix@lemm.ee avatar

    Beethoven’s Fifth Symphony, not Mozart.

    No ill intent, I just like classical music :)

    mustardman ,

    And here I was thinking I was cultured.

    BorgDrone ,

    Also not a problem with a thermostatic mixer. The temperature stays the same, you just get less water pressure for a while.

    noobnarski ,

    Yeah, I havent had a problem setting the shower temperature since I live in a house that has one.

    Its great.

    BravoVictor , in More the merrier
    @BravoVictor@programming.dev avatar

    I mean… you gotta have them start the habit somehow

    bear_with_a_hammer ,

    I do neither, yes I do comment, but don’t apply it to easy code.

    The thing is I also make easy comments about hard stuff in the code, it’s like giving a cancerous puppy a reason to live :D

    Gallardo994 ,

    Let’s face it, such comments usually cause more problems than do good. If someone changes the code and forgets to modify the comment, the reader might favor one or another at random. “Stop sign” example isn’t the best but you get my point.

    Comments at best should explain some non-obvious logic, or some sort of reasons for implementing one way or another. For SDKs and packages overall, public APIs should also be commented. The rest imo should be readable from code.

    spader312 ,

    A form of “self documentation” I like to do is create variables for conditions before using it in an if statement. If you break down a funky conditional into easy to read variables it becomes a lot more clear what it’s trying to do.

    Idk how to write code on sync:

    
    <span style="color:#323232;">const isHumid = xxxx;
    </span><span style="color:#323232;">const isHot = yyyy;
    </span><span style="color:#323232;">const isSunny = zzzzz;
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">If (isHot &amp;&amp; isHumid &amp;&amp; isSunny) {
    </span><span style="color:#323232;">    ...
    </span><span style="color:#323232;">}
    </span>
    
    coloredgrayscale ,

    If someone changes the code and forgets to modify the comment, the reader might favor one or another at random.

    Hence why you should comment why, not how/what.

    // slow down traffic before crossing busy main road

    Now you can change the stop sign to a yield without touching the comment. Or judge that the comment can be removed if it’s clear the main road does no longer exist.

    _danny ,

    Bad/wrong documentation is worse than no documentation.

    “Practice makes perfect” is only true if you’re practicing the right stuff. Otherwise you’re just reinforcing bad habits.

    elouboub , in More the merrier
    @elouboub@kbin.social avatar

    Also "selfdocumenting code" writers who are forced to document their code.

    ImpossibleRubiksCube ,

    Calling code self documenting is like saying that we eat animals because they’re made out of meat.

    elouboub ,
    @elouboub@kbin.social avatar

    Defo. It's bogus

    MattTheProgrammer ,
    @MattTheProgrammer@kbin.social avatar

    You don't want to over-comment though, otherwise people will just start ignoring all of them.

    JoYo ,
    @JoYo@lemmy.ml avatar

    in my experience all comments are ignored.

    kassuro , in More the merrier

    Or the good old:

    
    <span style="color:#323232;">// Todo link to unrelated ticket which is marked as done and nobody knows the meaning of this commet 
    </span>
    
    MattTheProgrammer ,
    @MattTheProgrammer@kbin.social avatar

    Just @ me next time, I guess haha

    mojo , in Int and bool walk into a bar

    Shouldn’t it be a float that goes between 0 and 1 instead of an int. In this situation they’d be the same thing, considering 1 would be max lol.

    MaggiWuerze ,

    So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?

    sup4rawr ,

    but degrees aren’t integers, you can definitely also shower at 40,5°C

    jcg ,

    Not to overdissect a meme, but it really should be an unsigned byte since that’s what the digitiser would probably have as an input or output.

    mojo ,

    The temperature handle is either off or maxed out in this scenario. Not the temperature.

    MaggiWuerze ,

    Yeah, that’s why it says “supposed to work”

    wieli99 ,

    You’re getting down voted, but you’re right lol

    MaggiWuerze ,

    Yeah, don’t know why people would describe temperature on a 0-1 scale

    yum13241 , in Int and bool walk into a bar

    Where I live, I have to spend 500 years to either get volcano-like water, or Ice Age water. Moving it one atom completely changes the temperature.

    cynar ,

    If yours uses a thermal sensing element (not just mixing blind),I’ve found running it through its full temperature range helps a lot. I suspect limescale and other crap build up on the thermal element. It adds several years on to the life of the mixer. Descaling it would likely also work, but involves removing it from the pipes, to get the cleaner in.

    NatoBoram , in Golang be like

    And I fucking love it. Thank you Go!

    stebo02 ,
    @stebo02@lemmy.dbzer0.com avatar

    lol what’s wrong with you

    NatoBoram ,

    “Other people” are what’s wrong with me. People don’t use linters/formatters/type annotations when it’s optional and produce dogshite code as a result. Having the compiler itself enforce some level of human decency is a godsend.

    stebo02 ,
    @stebo02@lemmy.dbzer0.com avatar

    sure but unused variables are no biggie

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines