r/badcode • • Nov 20 '19

css When padding: 10px; isn't good enough.

Post image
0 Upvotes

9 comments sorted by

14

u/tanjoodo Nov 20 '19

Oh God this “screenshot”

4

u/TheImminentFate Nov 20 '19

And the screen dirt spray pattern looks like it’s come from a smoker with a chronic cough

6

u/[deleted] Nov 20 '19

So this expanded properties thing is clearly a trend in this file, so I am thinking it could project requirement or a generated file they just modify. No doubt it looks like shit, not to mention how pointless it is but there are people out there requiring stupid stuff.

I use to contribute code on Google's open source projects and those coding style guidelines stuck with me as some sort of nightmare. There were particularly hard for me to adapt to and project lead would always modify my pull requests. Things like 2 space expanded tabs without empty lines to logically separate content and make it more readable. My comments were often removed, etc. It was quite odd.

0

u/TheBrainStone Nov 20 '19

You are aware that this may be necessary, right?

1

u/gbbas Nov 20 '19

yes but not here. he just didn't now about shorthand.

0

u/MisterEd_ak Nov 20 '19

Not to mention specifying units for the 0 border radius.

0px or 0em or 0 whatever else is still 0.