47
top 9 comments
sorted by: hot top new old
[-] spartanatreyu@programming.dev 37 points 2 months ago

border: 10px solid hotpink;

This should be: outline: 10px solid hotpink;.

Borders are calculated as part of the layout, so adding or changing a border also means potentially changing the layout. So just by trying to debug something, you're potentially making the problem worse. It's a heisenbug.

On the other hand, outline doesn't change the layout, it's drawn around the element. Also, you can usually see what the border was on the element which makes it easier to debug all that nested div slop that bootstrap/tailwind vibecoders like to produce. And, you can also offset the outline if you need to also see the borders of elements touching the one you're trying to debug.

[-] 0ops@piefed.zip 9 points 2 months ago

I'm a fill: #ff000066; kinda guy personally

[-] spartanatreyu@programming.dev 4 points 2 months ago* (last edited 2 months ago)

Did you mean something else? fill is only for svgs.

But my personal variants are: outline: 3px solid red; and outline: 3px solid #F0F; just because they are such obvious debug/programmer-art colours

[-] 0ops@piefed.zip 3 points 2 months ago

Ope you're right, I meant background-color. In my defense I was working with svg styling more recently than html. What can I say, I'm nothing without my linter haha

[-] ZoteTheMighty@lemmy.zip 11 points 2 months ago
[-] AstroLightz@lemmy.world 5 points 2 months ago

print("Hello World")

The only line that truly changes your world (For better || !better)

[-] treadful@lemmy.zip 2 points 2 months ago
[-] karlhungus@lemmy.ca 6 points 2 months ago

Its totally stolen from a presentation given by Gary bernhardt (https://www.destroyallsoftware.com/screencasts).

He's generally a great presenter

I believe its in this presentation https://www.destroyallsoftware.com/talks/wat

I can't find a joke talk he gave called "using your types good" but it was very funny

[-] TehPers@beehaw.org 1 points 2 months ago

The article links to it, but yeah, it's from wat. Also, every programmer should watch that presentation. It's short, but it's so good.

this post was submitted on 27 Sep 2026
47 points (85.1% liked)

Programming

29423 readers
468 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS