this post was submitted on 15 Nov 2023
788 points (96.1% liked)

Programmer Humor

19648 readers
2651 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
788
Yes (programming.dev)
submitted 1 year ago by mac to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[–] agilob 121 points 1 year ago (17 children)

Before nginx was a thing, I worked with a guy who forked apache httpd and wrote this blog in C, like, literally embedded html and css inside the server, so when he made a tpyo or was adding another post he had to recompile the source code. The performance was out of this world.

[–] [email protected] 1 points 1 year ago (2 children)

Nothing good old cache can't solve. Compile JS and CSS. Bundle CSS with main HTML file and send it in batches since HTTP2 supports chunkifying your output. HTTP prefers one big stream over multiple smaller anyway. So that guy was only inviting trouble for himself.

[–] agilob 7 points 1 year ago* (last edited 1 year ago) (1 children)

You're telling me about compiling JS, to my story that is so old... I had to check. and yes, JS existed back then. HTTP2? Wasn't even planned. This was still when IRC communities weren't sure if LAMP is Perl or PHP because both were equally popular ;)

[–] [email protected] 2 points 1 year ago

Am just saying including source code into Apache is an overkill. But I guess if Apache was so old that doing so wasn't much of a chore, sure thing. Still think apache module would have been simpler.

load more comments (14 replies)