r/programminghorror • • May 23 '18

This Less mixin

Post image
0 Upvotes

8 comments sorted by

39

u/[deleted] May 23 '18

I envy your peaceful life if this is what you'd call horror.

12

u/RobinHoudini May 23 '18

First world coding problems.

28

u/[deleted] May 23 '18

What about it?

12

u/djcraze May 23 '18

It's redundant and uses more characters than the underlying expansion.

width: 100%;
.width(100%);
padding: 35px 0px 35px 0px;
.padding(35px, 0px, 35px, 0px);

24

u/Wooshception May 23 '18

You could even shorten that to padding: 35px 0

13

u/MattBlumTheNuProject May 23 '18

I mean horror though?

10

u/[deleted] May 23 '18

Over-engineering at its finest.

1

u/jamesmh_ May 23 '18

Well said. Well said.