this post was submitted on 30 Oct 2023
989 points (96.1% liked)

Programmer Humor

32343 readers
1285 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] jagoan@lemmy.world 150 points 1 year ago (14 children)

Isn't Wordpress powering like 40% of the internet? PHP isn't going anywhere anytime soon.

For me the weirder part of that meme is Python in 2022?

[–] Zeppo@sh.itjust.works 59 points 1 year ago* (last edited 1 year ago)

12 years after we learned Flask. 19 years after Django, which also was apparently hot 2 years before it was released.

[–] Tubbles@lemmy.world 15 points 1 year ago

Its like the C of web, it'll be a hundred years to kill it

[–] otter@lemmy.ca 15 points 1 year ago

Maybe all the AI stuff?

[–] EnderMB@lemmy.world 14 points 1 year ago* (last edited 1 year ago) (1 children)

IMO, Ruby is a better Python than Python. It's simpler, has a cleaner syntax, and if you want to do funky stuff metaprogramming can allow you to do cool, and sometimes unspeakable things. Python has great library support, and slowness and Rails did make Ruby unpopular for a bit, but I would love to see a Ruby resurgence that wasn't to do with Rails, because it is truly a lovely language to use.

Hell, I would say that in 2023, it's easier/faster to get something set up and working in Rails than it is with frameworks like Symfony, Express, ASP.NET, etc.

load more comments (10 replies)
[–] vsis@feddit.cl 80 points 1 year ago

There are two kind of programming languages:

  1. The ones everyone complaints about
  2. The ones nobody uses.
[–] pixxelkick@lemmy.world 64 points 1 year ago (6 children)

It's hard to justify using anything other than JS or if you wanna be fancy, Web Assbly, for the FE.

Any other front end language involves generating Javascript from your language, which inevitably ends up with you making a weird Frankenstein project that mixes the two.

I'd rather just use stuff like Webpack or Vite to compile my JS front-end out of JS (or TS) from the start. It always ends up being a cleaner result.

My backend though can be whatever the fuck I want it to be.

But if you ever think dynamically compiling/transpiling a JS front end on the fly on demand is a good idea, instead of simply just delivering static pre-compiled/transpiled pages, you're part of the problem for why the web is so slow and bloated.

It's wild how crazy of projects people will build that take 3 entire seconds to just deliver a 500kb static form that doesn't even need angular to do anything. They turn a couple hundred kb into several mb for no useful reason, it's wild.

[–] MyNameIsIgglePiggle@sh.itjust.works 17 points 1 year ago (1 children)

On that last bit. I agree with you, but people are getting paid to produce, and since they probably just know angular, they use angular everywhere.

[–] pixxelkick@lemmy.world 17 points 1 year ago (1 children)

I prefer html personally :x

But yeah, I mostly blame the project managers that encourage this behavior, it's wild how much overengineering goes into basic stuff like making mostly static websites.

[–] derpgon@programming.dev 7 points 1 year ago

Same, plain old HTML, and if I need some reactivity then Stimulus. And if need even more reactivity, then VueJS / Alpine. If the form can't be submitted via a regular submit button, it infuriates me.

[–] savedbythezsh@sh.itjust.works 7 points 1 year ago (1 children)

To my understanding, you can't really use WebAssembly for the frontend - it doesn't support manipulating the DOM, so you still need to offload a lot of the work to JS. It's an uncontested language when it comes to web frontend.

[–] r1veRRR@feddit.de 11 points 1 year ago

It does support it, it's just slower than JS. WA is faster in other aspects though, so frameworks that compile to WA (like the Rust framework Leptos) still end up being faster than a lot of JS ones.

load more comments (4 replies)
[–] lankybiker@lemmy.world 64 points 1 year ago (8 children)

PHP is amazing

If you're thinking of PHP version less than 8 you need to have another look

Totally stateless. Uncached server side rendered response times in double digit milliseconds.

Types

Extremely battle, highly tested frameworks.

Excellent tooling for tdd, bdd, static analysis, automated browser testing, coding standards and auto fixing. Even fully automated refactoring for things like package upgrades (Rector)

Regular, solid, releases bringing updates and fixes

Arguably one of the best package management systems, Composer. And only one, none of this constantly changing tooling that some other ecosystems seem to do

Properly open source platforms to power all kinds of web projects from e-commerce, CRM, social, scraping, analytics, monitoring, API, CMS, blogging

Basically if your target is server side web stuff then it's really good

Or, you can continue to demonstrate how out of touch you are by continuing with the old "PHP bad" jokes if you want!

[–] 342345@feddit.de 20 points 1 year ago (7 children)

Uncached server side rendered response times in double digit milliseconds.

Thirst thought, that sounds slow. But for the use case of delivering html over the Internet it is fast enough.

[–] moriquende@lemmy.world 16 points 1 year ago

Get this man some water.

load more comments (6 replies)
load more comments (7 replies)
[–] XTL@sopuli.xyz 58 points 1 year ago

PHP isn't dead. It's just smelled that way for decades.

[–] breakfastburrito@sh.itjust.works 43 points 1 year ago* (last edited 1 year ago) (1 children)

This was nearly a decade ago. I worked at a small app company (5-10 developers) for a bit that used Ruby on Rails for our product. The product was in active development, but was available to customers so it was “done”. We were hiring a senior level dev to oversee the team and we interviewed this guy (maybe in his 40s?, a but older than most people in tech) and he said his first order of business if hired would be to refactor the entire code base to php. I don’t think he was joking. I’m not sure why he interviewed.

[–] TCB13@lemmy.world 7 points 1 year ago (5 children)

Is there anything serious still running on a Ruby codebase nowadays? In PHP however...

[–] antimidas@sopuli.xyz 9 points 1 year ago (2 children)

GitLab is Ruby at least, I don't immediately remember any others but there probably are some

load more comments (2 replies)
[–] darkpanda@lemmy.ca 7 points 1 year ago
  • GitHub
  • Gitlab
  • Airbnb
  • Shopify
  • Hulu
  • Zendesk
  • Basecamp, obviously

I know of a bunch of less famous ones, but those are a few of the bigger ones that I’m aware of.

load more comments (3 replies)
[–] cypherpunks@lemmy.ml 42 points 1 year ago* (last edited 1 year ago) (2 children)

This is an irritating meme.

Were people saying PHP was dead in 1995, the year it was released? I guess maybe?

But who was suggesting abandoning PHP for Django in 2003, two years before the latter was publicly released? I suppose the person who made this must've read that Django development started in 2003 and gone with that; most of these years correspond with when the respective project started.

So, the reason Perl (which remained more popular for web development than PHP or any of these things into the early 2000s) isn't on the list must be because it actually predates PHP.

But then what is up with Python in 2022?

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

I also appreciate that you're supposed to learn Django 19 years before you learn Python.

load more comments (1 replies)
load more comments (1 replies)
[–] thisfro@slrpnk.net 36 points 1 year ago (13 children)

I'm sure there are a lot of reasons why PHP is better than Python for the backend, but I created an app wirh Symfony 5 and then an app with Django 4.

Symfony is so weird compared to Django. With Django I can just sit down and get things done. Symfony always seems to have some quirks which are mostly due to PHP (and me not knowing how to program in PHP).

That said, PHP hosting is so much easier and cheaper, this probably is important for smaller projects.

[–] Anticorp@lemmy.ml 12 points 1 year ago (4 children)

You don't need a framework for PHP. That's the beauty of it, you don't need anything. You cannot build a website with Python without a framework.

[–] _stranger_@lemmy.world 16 points 1 year ago

I know this answer is flippant and dickish, but:

python3 -m http.server 80
load more comments (3 replies)
[–] PlexSheep@feddit.de 10 points 1 year ago

Django is pretty nice, yeah. We also have good compiled webapps, with go and rust. Gitea for example uses go.

load more comments (11 replies)
[–] effward@lemmy.world 34 points 1 year ago

I like how 3 of them, across almost 20 years, boil down to "learn Python". When's that dude gonna die??

[–] Gallardo994@sh.itjust.works 29 points 1 year ago* (last edited 1 year ago) (1 children)

2022: learn python

Who said that, exactly?

[–] ElectricMoose@lemmy.world 30 points 1 year ago (1 children)

The dude trying to push Django in 2003

[–] Moc@lemmy.world 10 points 1 year ago (1 children)

This year is finally the year of Python, I can feel it!

load more comments (1 replies)
[–] elxeno@lemm.ee 23 points 1 year ago
[–] cupcakezealot@lemmy.blahaj.zone 19 points 1 year ago

2023 is the year qbasic comes back i can feel it

[–] original_reader@lemm.ee 18 points 1 year ago* (last edited 1 year ago)

Symfony, Laravel & other PHP based frameworks are going strong. PHP isn't going away anytime soon.

[–] nucawysi@lemmy.world 14 points 1 year ago* (last edited 1 year ago)

django and flask are python btw and people wanted to learn python or perl from like 15 years ago, the popularity of python 2 and its "Issues" led to robust dev on python 3, not to mention it being a default for many linux distros since a long time ago

[–] flamingo_pinyata@sopuli.xyz 13 points 1 year ago

What is dead may never die

[–] dinckelman@lemmy.world 13 points 1 year ago

The PHP I've once used is probably not even remotely close to the PHP people use today. The issue is, once you lose the trust and confidence, it's hard to gain it back. All the people who consistently shit on PHP have also probably not tried it in a very considerable amount of time

[–] Presi300@lemmy.world 13 points 1 year ago

PHP is dead, learn javascr... no

[–] navitux@lemmy.world 7 points 1 year ago* (last edited 1 year ago) (2 children)

I used to think the same about Perl, PHP is not dead because it needs someone to kill it, but I think it won't gonna happen

load more comments (2 replies)
[–] Annoyed_Crabby@monyet.cc 5 points 1 year ago

Who is PHP?

load more comments
view more: next ›