this post was submitted on 24 Sep 2024
491 points (100.0% liked)

Programmer Humor

428 readers
6 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 21 comments
sorted by: hot top controversial new old
[–] joshcodes@programming.dev 39 points 5 months ago

Run it in your head, find the edge cases yourself, fix the bug... weakling.

Or do what I do in real life which is patch in new bugs and even a security flaw or two.

[–] xep@fedia.io 27 points 5 months ago (1 children)

Real programmers test in production.

[–] Andromxda@lemmy.dbzer0.com 49 points 5 months ago (1 children)
[–] Boxscape@lemmy.sdf.org 12 points 5 months ago* (last edited 5 months ago) (1 children)

You mean like this?

Or like this?

What does that mean, 'To play us out'?

[–] Andromxda@lemmy.dbzer0.com 4 points 5 months ago (1 children)
[–] onlinepersona@programming.dev 3 points 5 months ago (1 children)
[–] Andromxda@lemmy.dbzer0.com 2 points 5 months ago

AMERICA 🇺🇲🇺🇲🇺🇲🇺🇲🦅🦅🦅🦅❗❕❕🗣️🗣️🗣️🗣️🗣️🔊🔊🔊🔊🇺🇲🦅🦅🇺🇲🦅🇺🇲🦅🍔🍔🍔🍔🍔🍔 FREEDOM 🗣️🗣️🗣️🗣️🔊🔊🔊🔊🔥🔥🔥🔥🥶🥶🥶🥶🥵🥵🥵🥵🦅🦅🦅🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🦅🦅🇺🇲❗🇺🇲🇺🇲❗🦅❗🦅❗❕❗❕❕❗❕❕❗🇺🇲🇺🇲🇺🇲🇺🇲🗣️🗣️🗣️🔊🔊🔊🔥🔥🔥🔥 DELIVERING DEMOCRACY TO THE DESERT 🦅🦅🦅🦅❗🔊❗❗❗🔥🇺🇲🇺🇲🔥❗❕🔊✈️✈️✈️✈️✈️💣💣💣💣💣💣💣💣💣☢️☢️☢️☢️☢️💥💥💥💥💥🦅🇺🇲🦅🇺🇲🔥🔥🔥🥶🥶🥶🥵🥵🥵🦅🦅🦅🇺🇲🇺🇲

[–] schnurrito@discuss.tchncs.de 17 points 5 months ago

tests are for confirming your code STILL works if someone ever changes something

[–] Phen@lemmy.eco.br 15 points 5 months ago

Oh I trust my code, but I don't trust my coworkers not to break something on the very next commit.

[–] hollyberries@programming.dev 10 points 5 months ago (1 children)
[–] Kissaki@programming.dev 3 points 5 months ago* (last edited 5 months ago) (2 children)

It baffles me when people use flex layout when it's clearly visually a grid layout. Nothing here is flexing with varying element sizes and auto-fill-wrap-break of items.

A colleague of mine prefers flex too. But to me, grid is so much more intuitive and simple.

https://css-tricks.com/quick-whats-the-difference-between-flexbox-and-grid/

[–] hollyberries@programming.dev 2 points 5 months ago (1 children)

Tbh I'm not a web person (more of a backend person) and don't know the recommended practices. display: grid; is a good friend of mine xD

[–] Kissaki@programming.dev 2 points 5 months ago

I think using display: grid; as your default is the better default, so you're all set. :)

[–] morrowind@lemmy.ml 2 points 5 months ago (1 children)

Why do you need either? Just throw the both in the html

[–] tiredofsametab@fedia.io 2 points 5 months ago (1 children)

People can pull from my cold, dead hands.

(though I'm usually only using it to display some status just for me and not for external consumption; the UI side can have a JSON if it ever comes to that).

I used to be a full-stack dev, but I've been pure backend for so long now, everything I knew is outdated or deprecated.

[–] kjaeselrek@lemmy.ml 2 points 5 months ago

everything I knew is outdated or deprecated

Given the way the frontend world seems to work, this means you’ve been backend-only for at least a week lol

[–] tiredofsametab@fedia.io 9 points 5 months ago

I physically reacted to this post with a combination of disgust, anger, and fear. Do tests. All of the tests. Randomize the order in which your tests run. Cover all branches.

[–] jjjalljs@ttrpg.network 7 points 5 months ago (1 children)

I get a small amount of joy from clicking the "request changes" button and blocking some doofus from merging lazy untested code.

[–] shasta@lemm.ee 3 points 5 months ago

I love going into a PR with 3 approvals already and shitting all over it

[–] velvetThunder@lemmy.zip 4 points 5 months ago

You can't trust others to not break your wonderful code. Write tests for the regression.

[–] off_brand_ 2 points 5 months ago

Just wow bug free code y'all smh