programmer_humor

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

jtk, in Happy New Year Coders.
@jtk@lemmy.sdf.org avatar

Happy Yesterday++ Day!

lseif,

so every day ?

jtk,
@jtk@lemmy.sdf.org avatar
1984, in Happy New Year Coders.
@1984@lemmy.today avatar

At least we know how to make fun of ourselves.

Can’t get dates, but we have humor. :)

YoorWeb,
LetterboxPancake, in Happy New Year Coders.

I spent the last day refactoring code for a (private) project. But I drank coffee. This isn’t accurate at all!

zqwzzle, (edited ) in The Holy Trinity of JavaScript

=== is just == with extra steps

kamenlady,
@kamenlady@lemmy.world avatar

It’s to be REALLY sure

thanks_shakey_snake,

It’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.

lseif, (edited ) in GitHub Desktop or Git CLI?

using LazyGit in tmux has changed my workflow.

instead of: git add . git commit -m ‘foo’ fg

i just: g ac foo q

and it displays everything neatly

Edit: apparently greater/less than symbols dont render properly on lemmy. so imagine a few (CR)'s and (C-b)'s sprinkled in

alphabetsheep,

Are you able to fall back to normal git commands if you don’t know the shortcuts? This sounds awesome until I can’t remember the syntax to do something I don’t do everyday.

lseif,

you can run shell commands with :, and there may be a nicer way for git-specific commands which i dont know about.

each ‘pane’ (such as ‘changed/staged files’, ‘commit log’, etc) has its own keybinds, which you can see with ?

CarbonScored, in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@CarbonScored@hexbear.net avatar

Forward three hours, me using thesaurus.com to try fit the whole gist of my change into the first line.

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

That’s in any bloody workplace! Especially if there is o synergy between different teams.

syd, in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@syd@lemy.lol avatar

I’m using Copilot for it right now. It works on half of the cases.

mdurell,

That’s about 300% better than my average!

fl42v, in git commit -m "hotfix"

Yeah, I believe that won’t work. The tape is supposed to be blue

fruitycoder, in Need a rust version too.

You have rust, you decide to rewrite the C plan but the only library that supports it uses unsafe code so you go back and rewrite it. Wait what were you working on?

CannotSleep420, in isEven API

What the fuck is a modulo? Is it some kind of npm package?

lud,

Yes

generic, (edited )
@generic@iusearchlinux.fyi avatar

Just Monika Modulo

56_,
@56_@lemmy.ml avatar

return (n % d + d) % d;

?

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

Garcia From Criminal Minds: consider it done 😂

reverendsteveii,

Enhance

nintendiator,

Hang on, what’s that? Click on the ip_address column!

pkill, in 10 months later bill revisits his spaghetti code. forgets absolutely everything and refuses to elaborate. this wouldn't have happened if Bill forgot to comment on his code

This is Bill.

Bill doesn’t need to minify his code, he names things using a single character even in compiled languages.

Bill is a heckin chad who can guess what the code does merely by looking at types and control flow.

Be like Bill

ChickenLadyLovesLife,

I started coding with TurboBasic. My favorite thing about TB was that you could have variable names of any length but the compiler only used the first two letters - and case insensitive at that. So “Douchebag” and “doorknocker” looked like different variables but were actually the same thing.

Zagorath,
@Zagorath@aussie.zone avatar

Is the Greek question mark a legal identifier for variable names?

ShitOnABrick, (edited )
@ShitOnABrick@lemmy.world avatar

I’m no heckin chad like bill ima soyjak :(

GissaMittJobb, in the myth of type safety

It’s all bits in registers at the end of the day, and they all have the only type a bit can have

IndustryStandard, in Infinite Loop

Some intern writing spaghetti which a company is going to be based off

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #