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.

SquishyPandaDev , (edited ) in Exam Answer
@SquishyPandaDev@yiffit.net avatar

Good thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding

qaz ,

But does it count the null byte or not?

SquishyPandaDev ,
@SquishyPandaDev@yiffit.net avatar

In most languages, length method doesn’t count the null terminator. Might result in some fun memory errors

YoorWeb ,
un_aristocrate , in As someone not in tech, I have no idea how to refer to my tech friends' jobs

machine whisperer

slappy , in How IT People See Each Other

deleted_by_author

  • Loading...
  • dream_weasel ,

    OMG yes we need a customer addition and a security addition. It’s so hard to find a place to work with a competent AND reasonable ISSM

    mr_satan , in Someone needs to be reminded that anticompetitive practices are illegal
    @mr_satan@monyet.cc avatar

    They can prohibit whatever they want, but how enforceable is it? Does Nvidia intend to play whack a mole by checking for translation layers?

    bruhduh ,
    @bruhduh@lemmy.world avatar

    Nah, they’ll just pull “Nintendo move”

    unionagainstdhmo ,
    @unionagainstdhmo@aussie.zone avatar

    If AMD and/or Intel took leadership of the project the Nintendo move wouldn’t work and they’d have to actually test it in court

    jawa21 , in MySQL moment
    @jawa21@lemmy.sdf.org avatar

    This is fantastic and incredibly well made. Does anyone have the source?

    mac ,
    @mac@programming.dev avatar

    Tried looking. According to one of the users who posted it its by 0x00 whos the person who made floor 796. All things I can find relating to them are floor 796 related though and can’t find where this was originally posted

    Heres floor 796 though if anyones interested floor796.com

    Gork , in Java...

    Time to rotate the monitor 22° and enjoy that sweet optimized code placement on Linux.

    YaBoyMax , in Returns a sorted list in O(1) time

    Lossy sort

    cupcakezealot , in “It’s not that hard”
    @cupcakezealot@lemmy.blahaj.zone avatar

    starting to see why twitter breaks every day since elon bought it

    elon is basically chip morehead from the chipadmin episode of sales guy vs web dude

    jasondj ,

    There’s no “arrange-by-penis”.

    HiddenLayer5 ,

    He definitely wants a programming language where the array indicies start at 69 and end at 420.

    Maybe he’ll ask AI to make it for him.

    aes , in Manager: This task only takes 30 minutes. Why did it take you the whole day?

    Psst,

    git add -p

    Johanno ,

    What does this?

    foxymulder ,
    @foxymulder@lemmy.ml avatar

    “patch mode” - Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history.

    pomodoro_longbreak ,
    @pomodoro_longbreak@sh.itjust.works avatar

    Highly recommend throwing –patch on any git commands you’re used to using. You will have the prettiest, most atomic fkn commit, I’m serious people will love you for it.

    I mean many people won’t care, but the quality folk will notice and approve.

    oce ,
    @oce@jlai.lu avatar

    Or just use a good IDE that makes doing atomic commits pretty natural.

    pomodoro_longbreak ,
    @pomodoro_longbreak@sh.itjust.works avatar

    I’ve only tried the VS code hunk stager thing, and found it cumbersome compared to command line, but if you can make a GUI work for you ya go for it. I’ve never found it worth the trouble personally

    dukk ,

    Shout out to Lazygit for letting me stage individual lines

    pomodoro_longbreak ,
    @pomodoro_longbreak@sh.itjust.works avatar

    Looks pretty neat. I like that it shows the commands it’s issuing!

    oce ,
    @oce@jlai.lu avatar

    You should try the JetBrains IDEs, as the other said, you can pick changes line by line graphically, when you commit, when you do a diff with another branch or when you fix conflicts. It’s much more convenient than commands and terminal text editors.

    Johanno ,

    We make a singular commit per feature.

    pomodoro_longbreak ,
    @pomodoro_longbreak@sh.itjust.works avatar

    Trunk based, eh? Yeah, we do that on a couple teams where I’m at, too. I like the philosophy, but force pushing the same commit over and over as you’re incorporating review feedback is antisocial, especially when you’ve got devs trying to test your changes out on their machines.

    Omgpwnies ,

    eh, just squash and merge. Feature branch can be messy as long as main is clean

    Johanno ,

    Yep. You have to make sure your feature branch works.

    KairuByte ,
    @KairuByte@lemmy.dbzer0.com avatar

    I always find this hard to follow personally.

    AnarchistArtificer ,

    Yay, learning!

    dukk ,

    Better yet, git commit -p

    sip ,

    uuuuuuuu. and you could do -m to describe the commit.

    next they’ll add --push/-P.

    perhaps add -r for fetch/rebase then commit.

    one command to rule them all! 😈

    comrade_pibb , in Programmer tries to explain binary search to the police
    @comrade_pibb@hexbear.net avatar

    acab

    kirby ,

    all cops aren’t binary-searching

    cybersandwich , in I'll just be a quick 3h

    How many widgets have we transferred to acme this year?

    Simple enough question right?

    But then when you look at the data, each region works with acme’s local offices differently. Some transfer using one method, some offices mark the transfer in the system as “other firm”. Oh, and we don’t even get a data feed from the north west region because they still haven’t upgraded their shit so I can request a spreadsheet but it’s in a different format than everything else.

    Then inevitably Acme has a different number of widgets that have been transfered. Because if a transfer gets kicked back or cancelled, it’s easier to just create a new transfer rather than go fix an old one because that process is laborious and requires tons of approvals so they just create a new transfer and send it over.

    But yea, 20 minutes should be enough time to get you that before your meeting with Acme.

    Blackmist , in Merge then review

    Do we have a Linked In Lunatics sub on Lemmy?

    jozep ,
    Anders429 ,

    Wow, I’m really disappointed, it’s just full of posts from parody accounts with people in the comments not realizing it isn’t real.

    Donkter , in Implemented as requested

    Honestly a really cool art piece.

    bleistift2 , in Merge then review

    My old boss (at a sturtup with some ten ppl) loved to do this. When you’re done with your work, merge to master. Boss-man would then revert the commits if he didn’t like the result. Since the branches all were merged, no-one knew what was actually in prod. Fun times.

    ptz ,
    @ptz@dubvee.org avatar

    🫠

    Gecko , in A box of DevOps
    @Gecko@lemmy.world avatar

    YAML would such a nice language for config files but then it turns out that “no” is falsy and so a list of Scandinavian countries turns from

    • se
    • fi
    • no

    into

    • "se"
    • "fi"
    • False

    I wish there was like a JSON5 equivalent for YAML that just reduces its scope lol
    (and no, TOML also looks ugly :P)

    synae ,
    @synae@lemmy.sdf.org avatar

    This is definitely a failing of yaml. Though, I feel that generally it’s the sort of thing you learn once the hard way, then it sticks with you pretty well.

    Also I’m glad there are more anti-toml folks are out there, feels like I’m taking crazy pills when people say it is “simple” and “elegant”. IMO it’s uglier than old-school ini format - at least it’s more strictly defined but that doesn’t really sway me to convert

    ApexHunter ,

    If by simple you mean “can’t count from 1 to 10 in a loop” and by elegant you mean “easier to understand than a one line perl script” then sure…

    orangeboats ,

    TOML isn’t elegant at all but damn, it is really simple.

    AVincentInSpace ,

    Which is better for structured data?

    • elegant, human readable, indentation sensitive language that’s great for deep nesting but has some weird idiosyncrasies with some dynamically typed parsers being too smart for their own good
    • glorified ini

    The choice is clear

    Amaltheamannen ,

    You’re looking for StrictYaml

    Gecko ,
    @Gecko@lemmy.world avatar

    Looks interesting, I’ll check it out, thanks :D

    Kanda ,

    Norway is false and Finland isn’t in Scandinavia

    dafo ,

    S W E D E N

    S W E D E N

    S W E D E N

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