r/ProgrammerHumor • • Jul 20 '17

What people think coding is...

Post image
35.4k Upvotes

811 comments sorted by

View all comments

Show parent comments

93

u/CanvassingThoughts Jul 20 '17

I hate css for that reason.

CHANGE THE BACKGROUND COLOR! WTF?! It's one thing. One god damned thing. Everything says this should fix it, but it does nothing.

Programmer suicides

44

u/lukee910 Jul 20 '17

CSS is at least easy to embed in a page. Global resource dictionaries of WPF are an entirely different beast.

My take on CSS and Regex is pretty much the same: It has no structure and can be awful to read, but it's not as bad as you might first expect when you use it often enough.

Also, regexr.com and chrome's dev tools. I'd be dead without either of them.

16

u/CanvassingThoughts Jul 20 '17

Regex is manageable and has been consistent for me. CSS is a defiant mule. I'll check out Chrome's dev tools, thanks!

11

u/CptPoo Jul 21 '17

Also, regexr.com and chrome's dev tools. I'd be dead without either of them.

I just came to the realization that people used to write regex without some sort of simple tool showing them what their queries do. I can't even imagine that world.

3

u/Murica4Eva Jul 21 '17

It was annoying.

Every time I have to use regex, it's like learning it for the first time.

1

u/lukee910 Jul 21 '17

Anything programming has become a lot easier these days, the available tools are awesome and usually even free.

1

u/-fno-stack-protector Jul 21 '17

that's how i write regex. didn't know that was rare? but then i use it constantly, love my regex

1

u/Ran4 Jul 21 '17

If you're careful and write good tests, you can usually do fine without tools.

But regexp tools like regex101 definitely helps with more complicated stuff.

But as with all tools, there's always the risk that you're learning the tool, not the underlying software, so you might end up being too reliant on it.

7

u/marcosdumay Jul 20 '17

I surely hope your regexes are much smaller than your CSSes.

2

u/lukee910 Jul 21 '17

Yeah, they're definetly different sizes, however they are similarly readable.

10

u/micheal65536 Green security clearance Jul 20 '17

Make that regex101.com and firefox's dev tools for me.

4

u/lukee910 Jul 20 '17

I was a long time FF user (switched away a short while ago), but the dev tools never could win me over. Both regex101 and the FF dev tools are solid, but regexr and Chrome just had that extra bit to win me over.

→ More replies (12)

3

u/oupablo Jul 21 '17

And then you test in IE and have to attempt to debug the weird thing it's doing in their dumpster fire of a dev tool

1

u/lukee910 Jul 21 '17

Don't remind me. Edge ist the same mess as IE, both with features support and dev tools.

2

u/Ran4 Jul 21 '17

regex makes sense and you can typically reduce a problem until it's small enough to be solveable. With css... you're just fucked at times.

1

u/GaianNeuron Jul 21 '17

Also, RegexBuddy for when you're writing non-JS-flavored regexes.

→ More replies (1)

0

u/[deleted] Jul 20 '17

[deleted]

4

u/IndianapolisResident Jul 21 '17

If you have to use !important than something is coded improperly.

*proceeds to use it anyways as it's somebody else's problem to figure out.

1

u/NoInkling Jul 21 '17

something is coded improperly

That something is the CSS library I'm using #notmyfault

To elaborate, Semantic-UI uses !important itself in various places, so the only way to override those is with more !important.

1

u/BlackDeath3 Jul 21 '17

!important is probably what got you into that mess in the first place!

3

u/unicorntrash Jul 20 '17

Dev tools? Seriously i cant remember the last time such a issue wasnt simply solved by picking the right elements and CTRL+F to the right place in the CSS file(s)

2

u/mrstinkyfingers Jul 21 '17

It's the weird browser bugs that always get me.

1

u/Bamboo_the_plant Jul 21 '17

Give me a background colour adjustment any day. Centre an element inside another element? Make a rounded-edged table? No thank you.