353
Code comments (sh.itjust.works)
top 15 comments
sorted by: hot top controversial new old
[-] Omega_Jimes@lemmy.ca 45 points 7 months ago

My professor once asked me about a comment that said "// This is awful and you should feel awful, change this before handing it in. " I had no excuse, I just told him time makes fools of us all.

[-] voracitude@lemmy.world 40 points 7 months ago

I had no excuse, I just told him time makes fools of us all.

For that quip, they should've just christened you a developer and handed over your diploma right there.

[-] tigeruppercut@lemmy.zip 8 points 7 months ago

Possibly with some yogurt

[-] qarbone@lemmy.world 20 points 7 months ago

Should always slap a TODO on the front. IDEs like Jetbrain will catch those for you, so you can willfully ignore them next time(s).

[-] AA5B@lemmy.world 2 points 7 months ago

Ideally with a ticket number, so you have some place with all the details and it can be prioritized and scheduled later, or never

[-] surewhynotlem@lemmy.world 4 points 7 months ago

//TODO go through my comments and add the TODO flag

[-] AA5B@lemmy.world 3 points 7 months ago

//TODO ABC-1234 properly record tech debt

[-] elephantium@lemmy.world 2 points 7 months ago

willfully ignore them next time(s).

That's a mood.

[-] four@lemmy.zip 12 points 7 months ago

This is the difference between academia and actual experience. Senior engineer wouldn't bat an eye for such comment

[-] Omega_Jimes@lemmy.ca 15 points 7 months ago

That's basically what I was told. It worked, I explained the algorithm I was having trouble with, and that I just ran out of time. He didn't deduct any marks or anything, he just said I should make an effort to make comments less self-deprecating.

[-] edgemaster72@lemmy.world 7 points 7 months ago

I should make an effort to make comments less self-deprecating.

Weird, that's what my therapist keeps telling me too. j/k, I can't afford it or be bothered to go

[-] Mastema@infosec.pub 40 points 7 months ago

There is nothing honorable here. This code is best avoided. We are not proud of what we have done.

[-] MonkderVierte@lemmy.ml 17 points 7 months ago* (last edited 7 months ago)

Over at invisible-island.net:

Part of why xterm's internals are so horrifying is that it was originally intended that a single process be able to drive multiple VS100 displays. Don't hold this against Mark; it isn't his fault.

And startx:

# This is just a sample implementation of a slightly less primitive interface than xinit.
# …
# Site administrators are STRONGLY urged to write nicer versions.
[-] Simulation6@sopuli.xyz 5 points 7 months ago

Found deep in the Linux networking code years ago: // this code is too ugly to live, but I don’t have time right now

[-] t_chalco@lemmy.world 7 points 7 months ago
this post was submitted on 24 Nov 2024
353 points (100.0% liked)

Microblog Memes

8493 readers
2589 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS