this post was submitted on 03 Feb 2024
490 points (94.2% liked)

Programmer Humor

32380 readers
1277 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
[–] [email protected] 70 points 9 months ago (2 children)

These things are true if you build a SPA wrong. Believe it or not there are lots of ways to build server side rendered pages wrong too.

[–] [email protected] 8 points 9 months ago (2 children)

Yeah this meme and the OP have no idea how to build an SPA.

[–] [email protected] 29 points 9 months ago

I don't know what the hell you're interpreting into this 15-word-meme, but I do. I'm not saying all SPAs are shit, I'm saying far too many are. And "far too many" being more than one that I can think of. Even the Lemmy webpage breaks history caching.

[–] [email protected] 2 points 9 months ago

I know what an SPA is, but I would be laughing so hard at this thread if I didn’t know what it meant.

“Yeah man. Dude doesn’t know his SPAs!”

Reminds me of that Saturday Night Live skit with the woodworkers comparing everything to working on the lathe.

[–] [email protected] -4 points 9 months ago (2 children)

> implying there's a "right way" to build an SPA.

[–] [email protected] 13 points 9 months ago (1 children)

There are a lot of standard practices like… using a router to load the content of your SPA according to the url.

[–] [email protected] -1 points 9 months ago* (last edited 9 months ago) (1 children)

What I'm saying is, there's no right way to build a thing that is inherently wrong.

[–] [email protected] 6 points 9 months ago* (last edited 9 months ago) (1 children)

You could build it with no input sanitation. That’s wrong.

[–] [email protected] -4 points 9 months ago (1 children)

Even a perfectly-built SPA is a thing that should've been a different kind of program (a native app or even something like Java Web Start) instead.

[–] [email protected] 15 points 9 months ago (1 children)

I strongly disagree, but I respect your opinion which was no doubt formed by different experiences with web technologies than I’ve had.

[–] [email protected] 1 points 9 months ago (1 children)

Not that it’s inherently good or bad, but the heavier web apps get the more a browser represents a sort of virtualization environment that only runs one stack. I think that’s interesting.

[–] [email protected] 1 points 9 months ago

What do you mean only runs one stack? Like front end framework? That would be the point. But it can communicate with any backend.

[–] [email protected] 4 points 9 months ago

There's no one right way. Saying there are wrong ways doesn't imply the existence of one right way, though.