r/ProgrammerHumor • Spanish is turing complete • Dec 16 '18

The pains of CSS

Post image
58.0k Upvotes

582 comments sorted by

2.9k

u/RedZaturn Dec 16 '18

Sure you have tried to use CSS but have you ever designed a website in Microsoft word?

111

u/[deleted] Dec 16 '18

If you're writing emails that have to display correctly in Outlook it can be very useful to open them in Word. They both use the same (very non-standard) HTML renderer.

132

u/gyroda Dec 16 '18

I found this out a week or so ago.

Turns out that outlook movedfrom IE to Word. I never thought I'd be wanting for IE over anything else.

Bonus fun fact: in Outlook when you press "display in browser" it'll open the email in IE11, in IE7 compatibility mode. This sounds terrible, but only gets worse when you realise it's legitimately an improvement over outlook.

→ More replies (7)

10

u/SpideyIRL Dec 16 '18

I generally style it in Outlook, then send it to myself and view the (hideous) source. Leaving placeholders so I can easily add my template loops and variables.

→ More replies (1)

339

u/CSThr0waway123 Dec 16 '18

I design my websites in Notepad

255

u/[deleted] Dec 16 '18

I design my websites in Google Search Bar

158

u/CSThr0waway123 Dec 16 '18

Yeah? Well i design my websites on paper.

→ More replies (29)
→ More replies (1)

21

u/GhengopelALPHA Dec 16 '18

At least then you can be sure your newlines are newlines.

→ More replies (2)

14

u/incindia Dec 17 '18

Notepad++ is a godsend. Same thing but colors tags and such

→ More replies (7)

10

u/TheflamingcircleofTK Dec 16 '18

I design my websites in pornhub , so it’s got loads of holes in it.

→ More replies (2)
→ More replies (6)

32

u/FieelChannel Dec 16 '18

I guess this was supposed to be a joke but a shitload of places do, though. Especially paired with powerpoint and shit for mockups.

my programming illiterate coworkers will always create some powerpoint mockup to give me feedback for parts of the website i'm working on, ofc on purpose from a non-programmer colleague point of view of course.

38

u/I_Lost_My_Socks Dec 16 '18

I can at least see how PowerPoint can be used for graphical mockups. It's a lot simpler to use than Photoshop/gimp (to the average user anyway) and is quite powerful if you're experienced with it. Nothing wrong with that. But Outlook/Word for designing emails... lmao

→ More replies (10)

19

u/[deleted] Dec 16 '18

Check out my website “www.creedthoughts.gov.www\creedthoughts”

→ More replies (1)

18

u/hacker_fedor Dec 16 '18

cool challenge! I'll try)

6

u/Hypersapien Dec 16 '18

May god have mercy on your poor damned soul.

→ More replies (1)
→ More replies (1)

8

u/TheSmokingLamp Dec 16 '18

Sure have..

//www.creedthoughts.gov.www\creedthoughts//

12

u/Bimpnottin Dec 16 '18

I have a friend who graduated with me in bioinformatics who's now pursuing a PhD in the same field, and he does everything in fucking Word. Take quick notes? Word. Design a poster? Word. Make a website? Word. Write a paper? Word. It drives me insane because he's such a smart guy yet all he knows is Word. I swear he would code in Word if he could

30

u/[deleted] Dec 16 '18

Having a PhD means you know a lot about one (often very) specific thing.

My grandfather had a PhD in education, taught a whole generation of teachers, wrote books on the subject read by many in the field.

My dad doesn't have a PhD, but a JD and is an accomplished attorney, with constitutional precedent setting wins in the highest court.

Put the two together though and they decided a rock was the best way to get the film door open on my mom's really nice SLR. They broke it.

So yea, PhDs can be very smart, but its usually restricted to a specific domain.

14

u/Getriebesand247 Dec 16 '18

Make sure he doesn't find out VBA exists then.

→ More replies (1)
→ More replies (3)

5

u/Aemony Dec 16 '18 edited Nov 30 '24

icky gold bake bike skirt flag deserted absorbed numerous practice

→ More replies (2)

3

u/Polzemanden Dec 16 '18

This has honestly been my experience trying to work with TKInter in Python.. I just started learning to program this year and kinda just learning as I go, so it looked.. very weird at times.

→ More replies (19)

714

u/Ree-yo Dec 16 '18

Looks like the nose was set to absolute positioning

→ More replies (7)

371

u/Slavadir Dec 16 '18

Aww he looks kinda happy now

509

u/mythriz Dec 16 '18
Closed: It's a feature, not a bug.

15

u/[deleted] Dec 17 '18

-Bethesda, probably.

→ More replies (1)

72

u/Telvanis Dec 16 '18

*my word document when insertig an image*

304

u/RockleyBob Dec 16 '18

My initial intuition about what any given line of CSS will do is dead wrong. 100% of the time.

114

u/TheRealJonSnuh Dec 16 '18

display: flex

Dies.

30

u/[deleted] Dec 16 '18

*{ box-sizing: border-box; }

15

u/Peechez Dec 17 '18

html { box-sizing: border-box; }

*, *::before, *::after { box-sizing: inherit; }

if we're gonna go there

→ More replies (2)

100

u/AndrewIsANerd Dec 16 '18

W3schools knows what they all do, so therefore I do too if someone asks

36

u/koffix Dec 16 '18

But never when I code.

→ More replies (2)

21

u/Zmodem Dec 16 '18

You'll really love how DOM reordering occurs when a parent's opacity is changed and the children fall behind elements, even if their z-index and relative parent are properly set.

→ More replies (1)

42

u/[deleted] Dec 16 '18

It only gets slightly better.

39

u/break_rusty_run_cage Dec 16 '18

My initial intuition about what any given line of CSS will do is dead wrong. 100% Auto of the time.

FTFY

(Don't kill me. I'm no programmer)

→ More replies (1)

37

u/[deleted] Dec 16 '18

body {

 background-color: white;

}

Entire website gets shrunk into the corner, and the background color is somehow not even white

39

u/RockleyBob Dec 17 '18

In the distance, sirens.

23

u/chowchowthedog Dec 16 '18

modern day black magic fuckery

→ More replies (1)

593

u/T4O2M0 Dec 16 '18

css

r/programmerhumor

Gatekeeping aside I did chuckle at this.

64

u/kerohazel Dec 16 '18

It's ok if you don't consider CSS a programming language. I don't. But a lot of real programmers still have to deal with it.

→ More replies (16)

81

u/Adawesome_ Dec 16 '18

Curious, how is this gatekeeping?

114

u/MrHandsomePixel Dec 16 '18

There is this running joke around the community that CSS isn't a programming langugage.

Although HTML and CSS can technically be turing complete (quick google search, didn't even know), the main function of CSS is in its name: Cascading Style Sheets To add style to stuff

27

u/bobo9234502 Dec 16 '18

How can HTML be Turing complete? Honest question.

→ More replies (2)

27

u/SandyDelights Dec 16 '18

Just to be bit-picky, neither HTML nor CSS are Turing complete – using both HTML5 and CSS3 together can be considered Turing complete, though. Neither is a Turing complete language on its own.

→ More replies (2)
→ More replies (3)

213

u/ArcaneYoyo Dec 16 '18

CSS doesn't really have logic, it's purpose is just to structure things and style them.

37

u/aloofloofah Dec 16 '18

SQL isn't Turing complete either but nobody thinks that Bobby Tables doesn't belong here.

→ More replies (5)

196

u/abbott_costello Dec 16 '18

Its still programming adjacent, most programmers know what CSS is while most non-programmers don’t know what CSS is. Saying it doesn’t belong on the sub is just pedantic

→ More replies (12)
→ More replies (21)

56

u/warm_sock Dec 16 '18

CSS isn't a programming language.

→ More replies (3)
→ More replies (4)

136

u/[deleted] Dec 16 '18 edited Dec 16 '18

The sub is programmerhumor, not programminghumor, not serversidehumor.

Never underestimate a STEM nerd to not be an elitist fuckass.

15

u/[deleted] Dec 16 '18

It was tongue-in-cheek

→ More replies (129)
→ More replies (10)

18

u/Tashre Dec 16 '18

"Huh. It works on my machine."

→ More replies (1)

11

u/BeigeGnat Dec 16 '18

Ahh makes me cry on the inside and laugh on the outside

11

u/MaximooseMine Dec 16 '18

No, the website usually is more messed up than that.

10

u/[deleted] Dec 16 '18 edited Dec 17 '18

I wonder if it's because no one really tries to learn CSS properly. At least in my experience I picked up enough html/css to get started but only really focused on getting better at JS and CSS is mostly an after thought. Most of the time I'm dealing with a framework like Bootstrap or Materialize and just edit those.

So I wonder if it's actually a pain in the ass or i just haven't learned it properly. Probably both.

EDIT: I take it back, I just remembered IE. Fuck CSS. At least JS had jQuery were I didn't have to write too much browser specific code.

EDIT2: It's probably more IE's fault than CSS, I'm sorry CSS.

12

u/[deleted] Dec 16 '18

I see this way too much. A lot of people don’t know CSS well. They either think it’s completely broken or it’s not “programming” and don’t bother to really look into it. CSS positioning is not that complicated. Yes, it’s weird to wrap your head around at first but after reading up about it and playing around with it, you should know how it works. Not to mention Flex has made everything easier.

It does become a pain in the ass when you have to make it responsive on all browsers and devices. A lot of tweaks to be done. And of course, if you want to do really fancy frontend stuff, you will have to put more effort in.

→ More replies (4)

2

u/SuperSatanOverdrive Dec 16 '18

I don’t think it’s that much of a pain (usually). Especially since there’s many great frameworks to get you started. And while you before had to have a framework to get stuff like responsive grids, now you can use native functionality like flex to achieve the same result.

The pain comes if you’re forced to implement something which really should be in the standard. Like, for instance statically positioned headings in a table that has an auto width.

→ More replies (2)

9

u/crsuperman34 Dec 17 '18

Am CSS/SCSS/Front-End dev, I've been wanting to build an entire site only using pseudo selectors...
and then paying a professional shop to do some work on it. Just to get the reaction.

2

u/DarkJarris Dec 17 '18

calm down, satan

8

u/weirdpanorama Dec 16 '18

When you move an image in a Word Document

36

u/Cresneta Dec 16 '18

So this is what happens when programmers try to use CSS, lol.

39

u/don_py Dec 16 '18

Read the title. Rolled my eyes

Seen the picture actually laughed. Nice lol

7

u/[deleted] Dec 16 '18

why is web design so bad compared to things like autolayout on ios?

→ More replies (1)

8

u/fuck_the_mods Dec 16 '18

Last week I added overflow: auto to an element and it broke z-index on iOS. W T F

https://stackoverflow.com/questions/37696746/ios-not-respecting-z-index-with-webkit-overflow-scrolling

2

u/killm_good Dec 16 '18

Chrome on Android interprets hex colors with <FF alpha to be fully transparent. rgba() is fine though.

2

u/Omega192 Dec 17 '18

Somehow mobile Safari has bugs desktop Safari doesn't. It's up there with IE in terms of causing me immense frustration.

→ More replies (1)

4

u/Chucklay Dec 16 '18

Is this King Crimson?

→ More replies (1)

4

u/[deleted] Dec 17 '18

laughs in computer illiterate

→ More replies (1)

3

u/gawalls Dec 16 '18

Try less or sass, much easier

3

u/PM_ME_DAT_ASS_BABY Dec 16 '18

Is it pikachu with a nose or with a chin?

3

u/Theolaa Dec 16 '18

Then you revert the change but it's still screwey.

3

u/yourteam Dec 16 '18

Who made top: 0; position: relative; into a position: fixed? Who did it?

3

u/LimpFox Dec 16 '18

It's almost as if that one change of style on the sheet cascaded.

3

u/[deleted] Dec 17 '18

So true..there should be multiple versions of that Pikachu image depicting different browsers, too

3

u/Dag3n Dec 17 '18

See, this is how you use the pikachu meme right 10/10

10

u/Andy_B_Goode Dec 16 '18

I have never understood why CSS has remained so popular as a way of positioning things in a browser viewport. It's bizarre to me that in this day-and-age, after years of single-page web apps, browsers haven't implemented some alternative to CSS that better suits app-like websites instead of page-like websites. I know there are workarounds, but they basically amount to writing code that then gets transformed into CSS for browser consumption. Why can't we have a native alternative? Why do I keep having to use a system that's essentially meant for aligning chapter headings on a page, when what I'm really doing is positioning a popup dialog relative to where the user clicked?

→ More replies (4)

5

u/[deleted] Dec 16 '18

weird flex but ok

2

u/MasonXD Dec 16 '18

As someone who just made a Pokémon themed website for University this is very literal to me

2

u/Delta_Ryu Dec 16 '18

it really do be like that

also, i will never not save CSS memes

2

u/[deleted] Dec 16 '18

Is the programming job market so flooded that this sub reaches the front page everyday?

→ More replies (4)

2

u/C96Borchartno2000 Dec 17 '18

Put your finger over the nose. Itll make the energy 100%.

2

u/VoldemortsHorcrux Dec 17 '18

My go to way of modifying css after 3 years is still make some changes in chrome dev tools and see what changed. And after 10 minutes of that google it. All the specifics never stuck with me.

2

u/ow2330 Dec 18 '18

It’s not just painful with css, it’s fucking hell with css when you include animation, transition and transformation

2

u/tlouman Dec 16 '18

This is amazing

1

u/[deleted] Dec 16 '18

Happy Pikachu

1

u/[deleted] Dec 16 '18

The meme is sponsored by square space!

1

u/Aaalibabab Dec 16 '18

It looks like togepi like that

1

u/blackerblernkid Dec 16 '18

Fuck you for making me laugh this hard

1

u/CaptainJishi Dec 16 '18

@Steve_Tech

1

u/Coconut_Biscuits Dec 16 '18

Random guy from /r/all here. What does CSS stand for? I know it's a programming language but whenever I see it, I read it as Counter Strike Source

5

u/[deleted] Dec 16 '18

It’s Cascading Style Sheets. The reason for why everything on a website looks nice and right on the screen. Without CSS, it would look a random text file.

→ More replies (2)

1

u/craftsmany Dec 16 '18

Psst Can I tell you something creepy?

Horizontal and vertical centering

→ More replies (1)

1

u/iapetus-11 Dec 16 '18

Yess, at first when I was coding I thought you had to put it in every page every time instead of in one .css file

1

u/Codephluegl Dec 16 '18

A line of CSS that saved my ass countless of times, when trying to debug weird issues with floats:

* { outline: 1px solid red !important; }
→ More replies (1)

1

u/Deathdar1577 Dec 16 '18

Lol, I so feel your pain!! Thanks for the laugh tho, it’s just so true!!

1

u/[deleted] Dec 16 '18

So fucking true.

1

u/[deleted] Dec 17 '18

1

u/[deleted] Dec 17 '18

Surprise feature

1

u/dmanww Dec 17 '18

PeterWindowBlinds.gif

1

u/TherpDerp Dec 17 '18

this one cuts deep.

1

u/crsuperman34 Dec 17 '18 edited Dec 17 '18
  1. on your <body> tag put style="{ box-sizing: content-box!important;}"
    then in the first line of your css put:
    body { box-sizing: border-box }
    body > * { display:inline }

  2. design your site so it looks ok,

  3. send it to your dev friend, ask them to fix something.

  4. watch them cry.

1

u/YesterEve Dec 17 '18

Put your finger over the nose and you get yellow kerby

1

u/JEveryman Dec 17 '18

CSS grid is amazing.

1

u/trialander Dec 17 '18

Doing a school project, trying to put images as the asides. It ends up EXACTLY like this, lmao.

1

u/aceofhearts1996 Dec 17 '18

Bus CSS isn't a programming language

1

u/waldodabz Dec 17 '18

I got this one!

1

u/yuryserg Dec 17 '18

It really do be like that every fucking time

1

u/tolojo Dec 17 '18

bg-pikachu

1

u/[deleted] Dec 17 '18

SCP funds this hilarious thanks

1

u/Matt097 Dec 17 '18

CTRL F5

1

u/[deleted] Dec 17 '18

This is why I’m not going into web development.

1

u/Gogglebeanz Dec 17 '18

I jus see his mouth higher and a flavor savor

1

u/griffiscs Dec 17 '18

Css is ez I get aces all the time, noobs

1

u/veggietrooper Dec 17 '18

Can someone explain this meme to me?

1

u/GER_PalOne Dec 17 '18

And this is why I mention to enjoy CSS.

It's not even a lie.

1

u/BecomingLoL Dec 17 '18

Someone cut off Goatee Pikachu's arms! He in pain someone help him

1

u/andudud Dec 17 '18

No pain if you know how to use it.

→ More replies (1)

1

u/shadow31802 Dec 17 '18

We found the immortal meme

1

u/SupremeRedditBot Dec 17 '18

Congrats for reaching r/all/top/ (of the day, top 25) with your post!  


I am a bot, probably quite annoying, I mean no harm ^though

Message me to add your account or subreddit to my ^blacklist

1

u/BIASETTI14 Dec 17 '18

Just wrap it in another div I say to myself while crying

1

u/[deleted] Dec 17 '18

Relatable

1

u/Egan109 Dec 17 '18

Do your css in the chrome console. It's a life saver

1

u/LinAGKar Dec 18 '18

I designed a web page recently and it wasn't so bad. Though I'm not sure how I would have done it without flexbox.

1

u/BlackAccipiter Dec 20 '18

Well... That's fucked up. Let me fix this! (And goes to make more codes in CSS and adds JS codes)

(Gets more fucked up) NOOOOOO

1

u/vorikus Apr 01 '19

Fucking Article13...

1

u/Julian_JmK Apr 30 '19

Just use flexbox

1

u/Piece_Of_Mind1983 Nov 25 '21

As someone with about an hour’s worth of experience with css this is far too accurate.

0

u/[deleted] Dec 16 '18

[deleted]

193

u/RVA_101 Dec 16 '18

Gesundheit.

37

u/[deleted] Dec 16 '18

I don't think I've heard of that Pokemon before. What type is it?

68

u/filledwithgonorrhea CSE 101 graduate Dec 16 '18

German

29

u/[deleted] Dec 16 '18

What is it weak to?

→ More replies (6)

6

u/AckmanDESU Dec 17 '18

Nice name.

3

u/seadoggie01 Dec 16 '18

Bless you!

0

u/[deleted] Dec 16 '18

[deleted]

58

u/[deleted] Dec 16 '18

A lot of frontend developers feel the same way about backend.

4

u/VoldemortsHorcrux Dec 17 '18

Im a frontend developer and still feel sorry for myself and any other person that has to mess with css. I honestly never bothered to really learn how to do stuff and just google anything when positioning crap comes up

14

u/[deleted] Dec 17 '18

People typically dislike what they don't understand.

I hated CSS until I spent enough time to understand it. Now it does exactly what I expect 99% of the time and the other 1% is user error.

2

u/is_that_my_butt Dec 17 '18

I feel like the better part of frontend developers feel the same way about frontend, too.

7

u/[deleted] Dec 17 '18

Any programmer feels that way about a clusterfuck codebase. I've taken over projects from horseshit Java and Rails developers that made me want to shoot myself in the face. All the frontend devs I know enjoy frontend. If they didn't enjoy it, they wouldn't do it.

→ More replies (4)

27

u/SuperSatanOverdrive Dec 16 '18 edited Dec 17 '18

I really like working as a frontend developer. Specifically with node.js, graphql, modern javascript and react.

I sort of get the same feeling as you when I have to look at the Java backend with the never-ending boilerplate and all the undocumented spring/spring-boot magic that’s going on, and having to deal with SQL.

Edit: that being said, I think Kotlin looks like a pretty cool development in the java world

6

u/hackel Dec 17 '18

But Node JS is backend...

→ More replies (1)

11

u/Omega192 Dec 17 '18

As a frontend I'm very much okay with this being a dominant sentiment cause it just means job security for me 😉

But you can have cluster fucks on all ends. When you finally get to work with a well designed frontend it's a whole new world.

5

u/DigitalCrazy Dec 17 '18

My feelings exactly. I'm just sitting here in joy because I have almost absolutely no problems with CSS, it does everything I want it to.

Gets even better when you use a preprocessor.

36

u/M1A8 Dec 16 '18

CS major here, had to learn Html + CSS for a mandatory communications course.

I was nearly finished designing a digital poster project with Html/CSS and I noticed I had an incomplete div section with no closing div bracket. I figured "Hey that's weird, everything still looks completely fine without it. Wouldn't hurt to add the closing div anyway."

Big mistake.

Every fucking image gets shifted down into the depths of hell, the page length expands thirty miles, the text is absolutely nowhere to be seen.

REEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

6

u/metavurt Dec 17 '18

It's actually not, anymore. What may look like clusterfuck is probably due to not using best tools for what's wanted. All modern browsers are quite aligned these days - CSS grid and CSS flexbox work across the board. If it's a clusterfuck, it's probably a js dev trying to bend css to their will, or it's a css dev, trying to do js like css.

In the past two years the most issues I have is with upgrading a teams' knowledge about what they can and cannot do without touching or needing a framework of any kind. I get a lot of "what?! you can do that?!" because there just hasn't been a pause in the frontend sector, and given everyone a chance to catch up and recognize which tools are best for which tasks. A lot of headache could be saved at the front side of a project, if better assessments are made.

Sorry to babble on - it's 2018, and I am having the same conversations I had in 1998. Didn't think I would be here. Again.

9

u/Erlandal Dec 16 '18

I thought JS was also heavily used for backend stuff. I'm thinking about Node.js, Express, React, etc.

6

u/wootangAlpha Dec 17 '18

Frontend dev here. For newer web apps, sure. Most of the software world is still using java and C# for backend. Some companies have a fear for bleeding edge stuff like React which it must be said has so much tooling that it's maintenance should be a job on it's own.

→ More replies (2)

2

u/LOOKITSADAM Dec 16 '18

There was a big trend/push for it a while ago, but that seems to have cooled down once people realized how horrible it is. The places I see it most now are when user-defined functionality snippets need to be executed (like AWS lambda) and when a company's engineering department is like 75% front end engineers by background.

14

u/[deleted] Dec 16 '18

This is just not remotely true. There are NodeJS/React/Vue/Angular jobs all over the place.

10

u/SuperSatanOverdrive Dec 16 '18

It’s not horrible. Node.js is great as a web app server. It can run on really limited resources.

→ More replies (4)

0

u/[deleted] Dec 16 '18

[deleted]

3

u/Erlandal Dec 16 '18

Aren't most websites nowadays made through either MERN or MEAN though?

→ More replies (1)

5

u/SuperSatanOverdrive Dec 16 '18

How can you say it is niche? What are you basing this on?

Here’s some sites/companies that use node.js for their backends:

  • Netflix

  • Linkedin

  • Trello

  • Uber

  • Paypal

  • Medium

  • eBay

  • NASA

  • Yahoo

  • Zendesk

  • Walmart

  • Groupon

  • Shutterstock

→ More replies (3)
→ More replies (1)

2

u/[deleted] Dec 16 '18

I really don't understand this. HTML/CSS is pretty straightforward, and is way easier than programming actual logic. Basically all you're doing is making boxes then defining the size and location. All the other CSS stuff comes down to repetition, memory, and Google, just like normal programming.

4

u/[deleted] Dec 16 '18

Try making everything look the same on different browsers especially IE, bud.

→ More replies (4)

4

u/[deleted] Dec 16 '18

People fear what they don't understand.

1

u/calm_down_meow Dec 17 '18

In my experience it's because it takes longer than you want it to take (longer than 5 minutes). To get that view to look great it could take multiple attempts/iterations, and most programmers just simply don't care that much about it. It really does matter though, and a poor enough design will make users question your entire website.

→ More replies (1)

1

u/[deleted] Dec 16 '18

That’s how I feel about backend too lol I think Frontend can be annoying but also fun to do especially with modern JavaScript frameworks.

1

u/gawalls Dec 16 '18

Same here, I know enough to get by on front end but glad I'm not a front end developer.

0

u/[deleted] Dec 16 '18

[deleted]

1

u/imguralbumbot Dec 16 '18

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/8f93Vo5.jpg

Source | Why? | Creator | ignoreme | deletthis

3

u/[deleted] Dec 16 '18

[removed] — view removed comment

1

u/wootangAlpha Dec 17 '18

True story I still do mockups on PowerPoint before coding it. Makes it easy to get something out of my head in two minutes.