this post was submitted on 11 Sep 2023
1157 points (97.1% liked)

Programmer Humor

32472 readers
880 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] smileyhead@discuss.tchncs.de 51 points 1 year ago (2 children)

World Wide Web was not intended to be an app framework.

[–] blkpws@lemmy.ml 32 points 1 year ago (2 children)

Internet was not intended to be worldwide, it was for military purposes. Still, we all evolve.

[–] smileyhead@discuss.tchncs.de 13 points 1 year ago (1 children)

Yet Internet just scaled up to handle worldwide traffic, while WWW evolved into mess noone is able to implement anymore.

[–] blkpws@lemmy.ml 1 points 1 year ago (1 children)

Sorry, what's the issue with the WWW mess? I don't get it.

[–] smileyhead@discuss.tchncs.de 6 points 1 year ago (2 children)

Inspect any major website, you'll see boilerplate of <div><div><div><div> and unreadable pile of JavaScript programs your browser need to run to build the website. Sites should be done in a way that is still readable after you disable one element (for example disable CSS function, scripts or HTML specific tag).

Internet is modular, based on stacked protocols. Want to fit Tor between TCP and HTTP? No problem. Web is also like that, build of semi-independent formats, in theory. But in practice devs are using frameworks that assume Chrome, Firefox and Safari are and would ever be the only things existing. Now if you want to develop new browser you not only need to display HTML and add other things later. You need to get all specifications of all standards working right away or sites would spectacularly break.

[–] TehPers@beehaw.org 5 points 1 year ago (1 children)

It's a bit of a shame that HTML went from describing documents to describing UIs. I do miss the days of simple websites, although I'm not old enough to remember the old old internet.

[–] JackbyDev@programming.dev 1 points 1 year ago (2 children)

What's the alternative? Or an alternative I guess I should say. I agree though, I wish folks would use HTML for all documents. Like why the hell am I downloading a PDF of a thing I'm never printing? (PDFs are still acceptable for printing though.)

[–] TehPers@beehaw.org 1 points 1 year ago

I don't think there's anything wrong with using HTML/XML-ish format for describing a UI (although having a standardized presentation format that all "viewers/browsers" follow exactly the same way would be nice), I'm just sad that websites have become described as UIs rather than as well-structured documents.

[–] blkpws@lemmy.ml 1 points 1 year ago

PDF is a way to make sure everyone can read the document in the same way (like font type, spaces, special characters...) while HTML can cause multiple issues if you don't do it properly. And for documentation I would prefer some Markdown as I can edit it with a fancy IDE or feel lazy and do it with terminal editor or plain text editor.

[–] blkpws@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

But that sounds like a problem with developers and languages or frameworks they are using. WWW is all good.

EDIT: I mean, I don't like YouTube frontend, so I use Invidious, there are always apps better made, just depends on the developers, if they want to track users with monitoring + ads, the web app will generate a spaghetti code with many frameworks, tracking, requests, etc.

[–] TWeaK@lemm.ee 1 points 1 year ago (1 children)

Yes, the issue is with web developers not following standards. However, because all of them fail to do this, the problem ends up being with the browser that doesn't support everyone's non-standard developments.

I just want my text in the centre of the page (not with rows stretched across a widescreen monitor) and for things to not jump about as they load. Figure out where things should go, then display it.

[–] ICastFist@programming.dev 2 points 1 year ago

Web standards? You talk funny, funny man

https://xkcd.com/927/

[–] Taringano@lemm.ee 10 points 1 year ago

Still, we all evolve

Speak for yourself,nerd

[–] Blackmist@feddit.uk 12 points 1 year ago (2 children)

What else works across as many platforms and screen sizes as well as the combination of HTML/CSS/JS?

Most attempts to build that just lead to a worse version of it.

I'll be the first to admit it's bloated to all hell after 25 years of people stacking crap on top of more crap, and it's perilously close to being completely controlled by Google, but it is what it is.

[–] ICastFist@programming.dev 21 points 1 year ago (2 children)

What else works across as many platforms and screen sizes as well as the combination of HTML/CSS/JS?

Doom. It runs on every-fucking-thing

[–] blkpws@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)
[–] ICastFist@programming.dev 2 points 1 year ago

New Doom speedrun category: controlling with a Porsche

[–] Asymptote@lemmy.dbzer0.com 1 points 1 year ago

Commodore fucking 64

(Undergirded ever so slightly by a Raspberry Pi but don't mention it)

[–] smileyhead@discuss.tchncs.de 9 points 1 year ago* (last edited 1 year ago) (1 children)

Maybe I do not specify clearly what I mean.

Why to order taxi, access bank, register a domain name do we have to have apps on all platforms and then to fix this problem we bloat the web by creating webapps. Why not just plain simple HTML website beautified with CSS instead?

Real cross-platform apps are those written in, for example QT. Then came Android and iOS forcing everyone to use their toolkits so we started to abuse poor web.

[–] Blackmist@feddit.uk 8 points 1 year ago (1 children)

Well I'm in agreement there.

The only reason they want everything as an app is so they can push notifications and do any tracking they can legally get away with (and some they can't but who's gonna know?)

Dominos have locked all their deals that actually make a pizza a normal price that humans would willingly pay for a pizza behind their app. There's no reason for them to do this. Surely their business model is selling pizza? So now I go to a little family run pizza shop, pay less and get decent pizza.

[–] Dubious_Fart@lemmy.ml 5 points 1 year ago

Yep.

Your standard web browser has to many privacy protections for you and your data.

Its why they want to push you to an app, that asks for WAY to many permissions to do what it needs to do. Cause it doesnt need that access to function. It needs that access to monitize you. Cause they make more off stealing your information, than they do off you being a customer, Which is why you get so many discounts for using apps.