1514
Why indeed (lemmy.ml)
submitted 2 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 2 months ago

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?

[-] [email protected] 2 points 2 months ago

Don't we have compression built into http already?

[-] [email protected] 1 points 2 months 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.

this post was submitted on 21 Mar 2025
1514 points (98.3% liked)

Programmer Humor

23563 readers
3058 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