programmer_humor

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

ExfilBravo, 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

The reason there are no comments in the code? Written by ChatGPT.

Octopus1348,

ChatGPT actually puts a lot of comments in, especially when minor modifications are needed to make something work.

brettvitaz,

It appears you haven’t used chat gpt for coding help.

Valmond, in cache

O(k) time to be pedantic, where k is the number of layers.

ILikeBoobies, in Bill is a pro grammer

Bill is not replaceable

Static_Rocket,
@Static_Rocket@lemmy.world avatar

I strive to replace bill. I only work on undocumented code from 3rd parties.

Sweetpeaches69,

I salute you.

thtroyer,

Bill is a liability.

docAvid,

But an irreplaceable liability.

docAvid,

But an irreplaceable liability.

javi,

hello

CJOtheReal, 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

Comment your code but only with numbers and then write a manual

Rinox,

Yeah, proper documentation is not done with comments in code, but it’s a project in and of itself. Proper documentation is also fucking hard and I have no idea how people (in open source projects) can do it. It’s so fucking boring and tedious, especially when there are a million interesting problems you could tackle instead. Mad respect for people writing documentation, seriously.

I also hate writing comments and prefer to just write out everything in code.

CJOtheReal,

I write the shit in the explanation before programming it, its a way to construct a code in human language and logic, with my manual you could program the exact same program in another programming language. (i cant show it because what i program is company secret, including the manual) and yes its kinda boring but everyone is grateful for it and for the things i do i need to make shure its never failing, so its checked by several different people, and such a manual helps a lot for everyone.

pkill,

yep. Good code is self-documenting and syntax highligting and having longer sections folded up may help more than having to process some greyed out text. But comments are still useful for generating proper autocompletion and avoiding having to skim through you '“self documenting code”. Also it helps greatly with TDD and maintaining good coding practices. For example if you need a numbered list to reliably sum up what some function does, it’s often a good sign that it should be broken into a couple smaller ones.

PunnyName, 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

Remembered*

Bill DID forget.

towerful,

Classic comments.

Code is spaghetti.
Comments describe what it used to do.
Comments are no longer relevant.

Comments should be about how/what a code block does something.
Not what a line of code does

AnUnusualRelic, in Walking Desk Is More Annoying Than A Standing Desk
@AnUnusualRelic@lemmy.world avatar

Isn’t this bad for the Ethernet cables?

Hazzia,

Just get a wireless ethernet adapter (which exists and I loathe the fact that it does)

Valmond,

If they are straightened out they might not be able to mingle/mix-up.

megaman, in isEven API

Funny as hell

onestop, in Bill is a pro grammer

code: return isPersonAStudent()

manager in code review: WHY NO DOCUMENTATION!!??

reverendsteveii,

manager in code review

theresYourProblem.jpg

spudwart, in Bill is a pro grammer
@spudwart@spudwart.com avatar

Make it deceptively easy to read.

It appears easy to read in a review of the code, but upon any further glance, to actually keep it up, the only one who can understand it is you.

RGB3x3,

That’s just job security

drolex, 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

Wow this job has massive amounts of unnecessary stress, I wonder what the cause can be.

The cause is me, 6 months ago.

(Written for comedic purposes only. Managers are my single source of stress)

agent_flounder,
@agent_flounder@lemmy.world avatar

Me: writes code^1, doesn’t comment

Me, six months later: what idiot wrote this shit?!

  1. Only developer on project
drolex,

Time to plan a 3-day workshop with yourself at the pub to get it together

Omega_Haxors, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

The more important a job is, the less paid the work is. Conversely, the more bullshit the job is, the more pay there is.

killeronthecorner, 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
@killeronthecorner@lemmy.world avatar

Bill never revisits his code.

Bill is a contractor smart.

Socsa,

Bill changes jobs every two years to outrun the crushing weight of institutional responsibility.

mp3,
@mp3@lemmy.ca avatar

A technical debt escapist.

Potatos_are_not_friends,

NGL that is one of the best parts about being a contractor.

So many hackjobs. Sorry maintainers.

killeronthecorner,
@killeronthecorner@lemmy.world avatar

We all envy you more than we hate you

rem26_art, in isEven API
@rem26_art@kbin.social avatar

im glad that people are out there building the web services we truly need.

MonkderZweite, in Bill is a pro grammer

Bill does not work with other people.

MystikIncarnate,

More like, other people won’t work with Bill.

Smoogs,

“Nobody wants to work anymore” -bad manager mating call.

4am, in isEven API

Incoming trademark lawsuit from iSeven, the API that tells you if a number is seven or not

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