this post was submitted on 21 Mar 2025
1468 points (98.4% liked)

Programmer Humor

21809 readers
1842 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TedDallas@programming.dev 50 points 1 day ago (1 children)

#include "the_entire_fucking_internet.h"

[–] TeamAssimilation@infosec.pub 11 points 1 day ago (2 children)

You know we’ve reached peak bloat and stupidity when JavaScript web apps have a compilation step, and I don’t mean JIT.

[–] stetech@lemmy.world 11 points 1 day ago (1 children)

I’d rather take a compile step than having no type safety in JS, even as a user.

[–] NoSpotOfGround@lemmy.world 2 points 1 day ago (1 children)

Except... the compilation step doesn't add type safety to JS.

As an aside, type safety hasn't been something I truly miss in JS, despite how often it's mentioned.

[–] Lifter@discuss.tchncs.de 8 points 1 day ago (1 children)

I think they are talking about typescript which is compiled into javascript

[–] NoSpotOfGround@lemmy.world 2 points 19 hours ago

Ok, that could be true. I assumed they meant the "building" phase that some frameworks go through.

[–] SpaceCowboy@lemmy.ca 1 points 13 hours ago (1 children)

If the goal is to not have apps be too large, you probably don't want to send the full variable and function names and all of the comments over the wire every time someone loads a webpage. That would be a very inefficient use of bandwidth, wouldn't it?

[–] aeshna_cyanea@lemm.ee 2 points 12 hours ago (1 children)

Don't we have compression built into http already?

[–] bleistift2@sopuli.xyz 1 points 3 hours ago

I guess it’s easier and safer to make a string replace for each function name beforehand than hoping the compression algorithm will figure that out.

Also, as SpaceCowboy points out, comments are completely useless for the final web page. There’s no need to even compress them.