this post was submitted on 28 Aug 2023
162 points (85.2% liked)

Programmer Humor

32396 readers
589 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] 21 points 1 year ago (4 children)

Are web servers that serve real HTML responses still a thing? Honest question. I thought JSON+client side rendering were the default by now.

[–] MrPoopyButthole 28 points 1 year ago (2 children)

You're a couple years behind the SSR craze. We're back to what they were doing with PHP in the 00s except it's now done with Next, Nuxt etc.

[–] [email protected] 15 points 1 year ago* (last edited 1 year ago) (2 children)

Give it a year or two and we will be back to PHP. A lot of people are seeing the massive changes PHP has done and realizing it's just not as bad as it used to be. 7.x was a huge change, and 8.x is also doing great things. And so no one rages about my opinions, there's some sarcasm about "going back to PHP". Obviously the industry will stick to JS/TS for the most part.

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (1 children)

PHP has been “not bad” for a decade. The problem is that it isn’t good and I can’t think of a reason to choose it for a new project when there are so many better, established languages.

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

I'd argue PHP didn't really "get good" until 7, but my own bias.

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

When will JQuery make its return?

[–] Potatos_are_not_friends 12 points 1 year ago

Probably never because JS finally had a glow up and added/adapted the many features jQuery had and made it native.

[–] lung 4 points 1 year ago

Yaaay I love running node.js as my backend even though nobody thinks it's efficient

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

Yeah, PHP is extremely common and python frameworks like Flask and Django are getting more popular, but of course no where near PHP.

https://w3techs.com/technologies/details/pl-php

Just one huge example of a Django user is Instagram: https://engineering.fb.com/2023/08/15/developer-tools/immortal-objects-for-python-instagram-meta/

[–] SpaceNoodle -2 points 1 year ago (3 children)

no where near PHP

Correct, Python is not nearly the clusterfuck that PHP is

[–] Potatos_are_not_friends 10 points 1 year ago (1 children)

Ah found the inexperienced developer

[–] SpaceNoodle 2 points 1 year ago

🙄

I'll admit that it's been quite a while since I've touched PHP, but that was never my main focus.

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

Coming from C-like syntax, Python looks horrible to me. PHP has come a long way with 7 and 8.

[–] Tenshi 3 points 1 year ago (1 children)

I heard a lot of complaints about Python, but it's looks weren't any of them. It's the sexiest language out there.

Since I moved to python I wish all languages would just drop brackets, they're dirt.

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

I hear it a lot from almost all my engineer friends, so I guess it just depends on your field.

[–] SpaceNoodle 0 points 1 year ago

All the cool engineers use Python to get shit done soon, and C to get it done right.

[–] SpaceNoodle 2 points 1 year ago

I've got a C background as well, and I find Python o br considerably cleaner (and the code isn't 50% dollar signs).

[–] Ddhuud 3 points 1 year ago

Aw shit is it 2010 again?

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

https://turbo.hotwired.dev/

While it's a new trend, it's not that new.

[–] MajorHavoc 1 points 1 year ago

Yes. Much like https://xkcd.com/224/ the Internet is ostensibly all clever JavaScript frameworks, but actually leans heavily in out-of-sight places on big piles of plain old HTML.

Much like SQL, there's a million tools that will generate HTML, until we need a really specific output. Then we just cram the exact output we need into a text file and call it a day.