this post was submitted on 28 Aug 2023
167 points (85.8% liked)

Programmer Humor

31800 readers
468 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 44 comments
sorted by: hot top controversial new old
[–] [email protected] 78 points 1 year ago (1 children)

Hyper Text Markup formally known as Twitter?

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

That looks pretty cool tbh

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

I just read it, sounds pretty cool to me. I shifted to the right on the curve I guess.

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

You and I are off the fucking scale. In which direction? Nobody can sa... It's the left side. I am on the left side.

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

Actual element

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

Why do I feel this is just a dumb marketing attempt?

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

Some frontend guy said this best. It was something along the lines of:

"JS frameworks went real hard in client side rendering and branding server-side rendering old and archaic. But that they hit performance issues and began re-adopting server side features and trying to make it look cool again after shitting on it for a decade."

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

I’ve got nothing against SSR, never have, but CSR or even better SSR+CSR side steps a metric shit ton of issues. I’ve written untold lines of code to render something out in PHP then needed to add jQuery logic to the frontend for UX/UI reasons and then I’ve had to duplicate UI generation in JS/jQuery to match what PHP spits back (think: add a new row to an interface after an Ajax call finishes). It’s hell, you have to keep the two in sync and it’s a bug minefield.

Compare that to CSR where all the DOM is generated though a single codepath. Now take CSR to the next level with SSR+CSR and you’ve got a winning combo. Fast initial render and SEO gains (if you even need that) and only 1 DOM generation pathway.

People want to sound all smug “Oh, back to SSR are we?”, “Uh yeah, we had to CSR first to get to SSR+CSR which is VASTLY superior to SSR alone”.

Tech is circular in that way. See also mainframes, to personal computers, to cloud or any other similar cycle.

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

When you shit on php long enough and you end up reinventing php

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

kinda feels like they're trying to emulate server-side templating with shit like django and thymeleaf

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

Went real hard frfr on god 💀

[–] pastermil 38 points 1 year ago

Me: what is HTMX?

[–] [email protected] 21 points 1 year ago (3 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.

[–] [email protected] 25 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)

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] 5 points 1 year ago (1 children)

When will JQuery make its return?

[–] [email protected] 11 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.

[–] [email protected] 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/

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

no where near PHP

Correct, Python is not nearly the clusterfuck that PHP is

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

Ah found the inexperienced developer

[–] [email protected] 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] 8 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.

[–] [email protected] 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.

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

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

[–] [email protected] 1 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).

[–] [email protected] 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.

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

When the wheel is due for another reinvention.

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

laughts in vanilla stack

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

XHTML or what?

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

How is this different to react, angular, vue, etc.?

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

It’s not client-side anymore. You need a backend to produce the HTMX.

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

Client side logic is contained in markup, no custom JavaScript. Need server-side-rendering logic to return new markup to update a chunk of the page.

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

How does something like this compare against something like Blazor?

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

Like Blazor, it’s another way to do SSR.

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

Blazor isn't ssr tho. Well you can use it on the server with signalR but most people would chose blazor wasm