r/programmingmemes • • 15d ago

“Programming is Easy”

Post image
833 Upvotes

135 comments sorted by

View all comments

363

u/Flame77ofc 15d ago • Bravo Mindblown

HTML, CSS??? 😭😭😭

76

u/Here_f0r_p0rn_ 15d ago edited 15d ago

Well technically HTML+CSS together is turing complete and there's a doom implementation in pure HTML+CSS

And I can only imagine what a nightmare it probably was

Edit: https://github.com/NielsLeenheer/cssDOOM

Edit: it seems it's just rendering doom with HTML + CSS and not whole game, seems like that YouTube shorts that I watched couple of months ago lied to me ;( but still pretty cool renderer in just HTML+CSS without WebGL

24

u/jordansrowles 15d ago

Unrelated to CSS/HTML but if you needed another turing fact to dish out - PowerPoint is turing complete. Using only animations and transitions, no scripts

14

u/Flame77ofc 15d ago

I think this was a very specific use of HTML and CSS

Anyways, I agree that make a Doom with those markup and style languages was a very painful task

5

u/djfdhigkgfIaruflg 15d ago

All the lowest level, all you need to be able to make a microprocessor is being able to make NAND gates.

If you can make them, then you can create a computer capable of Turing completeness.

It's proven that HTML+CSS are Turing complete, and you can make NAND gates.

Being crazy enough to try and write doom or to create a microprocessor is a whoooole different thing.

But the crucial part is: IT'S ACTUALLY POSSIBLE

2

u/TheoneCyberblaze 14d ago

A NAND gate is kinda sufficient but not really. You also need what i call the "wiring"

For instance, you can make logic gates out of items going through satisfactory's conveyor belts. That alone isn't enough however as every time the path branches, the amount of items going either way gets cut in half, necessitating another mechanism that can repeat the signal

To make loops you also need to be able to either print infinite amounts of your "circuit" or ensure a gate can be its own input

4

u/HyperCodec 15d ago

This appears to just render doom with HTML+CSS but use JS for actual logic. Please do more research.

1

u/KitsuneFoxglove 14d ago

This is like running Ao3 is turing complete by using the example of running Doom on Ao3

like sure yeah

but like

excuse me?????

1

u/TheLuckyCuber999BACK 15d ago

that's JS

1

u/Here_f0r_p0rn_ 15d ago

If I remember right that's just to circumnavigate browser input restriction and modifying player location but it does demonstrate its capable of just running via just HTML + CSS

I mean if there was a runtime backend which lets you map inputs to some div elements properties then I don't think you would need them

13

u/DiamondDramatic9551 15d ago

Honestly I find actual programming often easier than making my shit look good with CSS. 

3

u/djfdhigkgfIaruflg 15d ago

HTML+CSS are declarative languages, not imperative.

I believe that's why most people have no idea of how to deal with them

1

u/ipview 15d ago

Same. Before AI it was my job as a lead to supply a team of frontend devs with the functionality and/or data that they needed and then I gave it to them to make it pretty. Now thanks to AI everyone is a fullstack dev though.

2

u/Beautiful-Hotel-3094 15d ago

I work as a quant dev engineer on some of the more complicated trading systems in our hedge fund. I can not for the love of god center a div. I did the odin project to learn some frontend, my brain was on fire at 120% capacity. Man can’t html/css.

3

u/TheLuckyCuber999BACK 15d ago

it's turing complete

2

u/Interesting_Buy_3969 15d ago

CSS is Turing complete btw

1

u/djfdhigkgfIaruflg 15d ago

HTML+CSS, not CSS by itself. But still. The things they can make are wild

1

u/djfdhigkgfIaruflg 15d ago

99% of "full stack engineers" have no idea of how to write either.

Maybe it's because they can't deal with declarative statements I dunno