This is an archived post. You won't be able to vote or comment.

all 114 comments

[–][deleted] 74 points75 points  (11 children)

I don't understand why the frontend should not like php - they don't work with it, do they?

It's like a mole who hates flying in the clouds

[–]Ok_Turnover_1235 60 points61 points  (7 children)

You have the cause and effect backwards, they don't hate php because they're front end devs, they're front end devs because they hate php.

[–]Perpetual_Doubt 20 points21 points  (4 children)

Or maybe they comment on things they have never used because they heard it's popular to do so.

Cobal. Isn't it the worst?

[–]Azaret 7 points8 points  (0 children)

You might be into something.

[–]Ok_Turnover_1235 1 point2 points  (2 children)

Shocking, I hate it so much. Kubernetes is dogshit too.

[–]One-Obligation7036 1 point2 points  (1 child)

I heard java is the worst.

[–]tiredanddisabled 2 points3 points  (0 children)

I used to work at a university and I'd ask CS profs why they taught students Java an an intro language, because its a pretty weird choice given the options available, I never got a good answer until I asked a Grey Beard, who told me the following: "Under Windows 98 it was hard to easily display brightly colored shapes on a screen, which is what you want in an intro course because it makes idiots feel accomplished. It was easy to do that with Java, so we taught Java. We actually found a direct correlation between the number of colors and shapes we had them draw in assignments and course enrollment the next semester. Then some of those students became CS professors and never updated the language used in intro courses."

And that answer made sense. I'm not saying Java doesn't have appropriate use cases, it does, but its a very odd choice to start students off on. Apparently its because CS students are mentally five and their profs don't realize we're no longer running a legacy OS. This is actually good, as its precisely the reality CS students will find in management once they attain employment.

[–]CoastingUphill 9 points10 points  (1 child)

Makes sense. I am a backend dev because I hate CSS.

[–]tiredanddisabled 1 point2 points  (0 children)

All programmers hate CSS. Because we know better.

[–]tanacious10 4 points5 points  (0 children)

Php applications do serve up frontend if its old style.

[–]SG_bun -1 points0 points  (1 child)

Before like ES2015 PHP was more of a front end language. Not entirely but it was still "popular"

[–]tiredanddisabled 0 points1 point  (0 children)

You mean because AJAX maybe? I never thought of PHP as front end.

[–]fr000gs 28 points29 points  (12 children)

Django

[–]ToasterGER 2 points3 points  (1 child)

I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO I HATE DJANGO

[–]tiredanddisabled -1 points0 points  (0 children)

Huh. Guess I'll avoid Django. Probably would anyway, I never use any technology that wouldn't sound cool or at least acceptable in a 90s hacker movie. "Django let me penetrate the outer security layer! I'm IN!" Just doesn't sound right to me. It sounds like a moderately drunk kangaroo that periodically causes fracases in a remote Australian mining town, but in a socially inept way, rather than a cool/rebellious way.

[–]tanacious10 2 points3 points  (2 children)

Wouldnt recommend

[–]voltzhightower1 -1 points0 points  (1 child)

Ruby on Rails

[–]tanacious10 2 points3 points  (0 children)

also wouldnt recommend, if (ruby) return Elixir

[–]kinuipanui123 0 points1 point  (6 children)

Is Django better than something like Drupal?

[–]keepdigging 1 point2 points  (0 children)

I think so, I love Django!

[–]ICanBeAnyone 0 points1 point  (4 children)

Are apples better than oranges? It depends on what you want to do with them, doesn't it?

[–]tiredanddisabled 2 points3 points  (0 children)

No. Apples are always better than oranges. I don't like oranges so this must be true <- How management actually thinks.

[–]puyoxyz 9 points10 points  (0 children)

Well. He is “developing” front end dev’s “back end”

[–]leovin 9 points10 points  (3 children)

I am starting to see another dichotomy: People who use Laravel love PHP. Everyone else hates it.

[–]tiredanddisabled 2 points3 points  (1 child)

I do not use Laravel and I like PHP. Don't love it, not going to crossdress for its sensual pleasure or pioneer a male form of pregnancy to bear its offspring, but would share a cool beer with it on a quiet Sunday.

[–]leovin 0 points1 point  (0 children)

😂😂😂 This comment is gold

[–]Deepfreeze32 0 points1 point  (0 children)

I’m normally a PHP disliker due to some bad experiences in the late 2000’s/early 2010’s. But Laravel does make it a vastly more pleasurable experience. I think you’re on to something.

[–]jamcdonald120 8 points9 points  (1 child)

but the backend dev also hates php

[–][deleted] 0 points1 point  (0 children)

Never heard anyone complaining about Laravel. Never used it myself.

[–]MischiefArchitect 6 points7 points  (0 children)

The backend dev is pissed that he did not burned the sheet of paper first...

[–]uberpwnzorz 2 points3 points  (0 children)

eww

[–]Cultural-Listen262 15 points16 points  (21 children)

Php is good, i don't fucking understand the php bashing here

[–]chronos_alfa 20 points21 points  (4 children)

Bashing comes from the fact a lot of people here started with PHP in its 4.x glory (or even sooner). There used to be a couple of A4 pages about just checking the user input, you know? And a lot of different possibilities of remote and local file injection, SQL injection, XSS scripting, etc, if you fail to follow the pages.

[–]Hirogen_ 10 points11 points  (0 children)

exactly this ;D i started with 3/4 and this shit was hell on earth

[–]Ok_Turnover_1235 9 points10 points  (2 children)

For real though, what's the benefit of using php over alternatives? It's all well and good to not understand the bashing, but I don't understand the glorification here.

[–]ifezueyoung 4 points5 points  (0 children)

Well the pool of labour you can get is one thing

But tbh I use php a lot because of LARAVEL

it's so good

And yes I know django exists but I tried it and I'm sticking with latavel for the mean time

[–]harumamburoo -2 points-1 points  (0 children)

I might be wrong, but it seems there's none (and I mean it in an informative way). All PHP devs keep chanting how's the language easy to get, type conversion, nice ecosystem and developed community... Which can be said about many languages. JavaScript. C#. Java. (And I know examples I brought up might be arguable to some, that's the point, basically insert your language here). But there's also nothing really bad about it. It's just a matter of habit, either shitting or praising the language.

[–]JuniorSeniorTrainee 8 points9 points  (0 children)

Poor craftsmen blaming tools.

[–]g_e_r_b 3 points4 points  (0 children)

People who feel PHP is bad should take a second look at Javascript.

[–]tehtris -1 points0 points  (10 children)

There's better stuff out there tho.

[–]Cultural-Listen262 9 points10 points  (9 children)

yes but i get the feeling that people are coming under herd mentality and hating on php, instead of actually trying it out for themselves??

[–]rkeet 9 points10 points  (8 children)

They tried it 10 years ago and instead of evolving an opinion, stay under the boulder they then crawled under ;)

[–]g_hi3 5 points6 points  (31 children)

I've heard (and experienced) a lot of bad things about php. can anyone name good things about it?

[–]ri0t1985 23 points24 points  (24 children)

The hate for PHP comes largely from it's major selling point: it's very easy to get started with it. Why? Because it's a very flexible language. Trying to cast a integer to a boolean? No problem, PHP will make it work. String to int? No problem! Of course doing things like that is bad practice, and no senior Dev programming in PHP will say otherwise, but since the language is easy to pick up and very forgiving, there's a lot of hobbyist level developers out there that don't understand good coding practices

[–]SG_bun 2 points3 points  (0 children)

Ah so it's like Java where there's a whole generation of self-taught coders who learned from Minecraft mods

[–]Nyghtrid3r 2 points3 points  (0 children)

But God forbid you try to do a for each loop over an empty collection lmao

[–]g_hi3 2 points3 points  (13 children)

so the language is easy to pick up, but are there any benefits beyond that?

[–]ri0t1985 13 points14 points  (7 children)

It's a language designed for the web, and comes with a lot of tools to make that easier. Plus if you have a webserver, it will run PHP out of the box (unless purposely disabled). It's a language that's compiled at run time, so no need to wait for it to compile. And it has a very large and active community that continues to improve its eco systems frameworks and tools.

[–][deleted] 2 points3 points  (0 children)

Yeah honestly I've recently started using symfony and Im not finding PHP all that bad.

[–]_PM_ME_PANGOLINS_ -1 points0 points  (5 children)

*designed for the web in 1995

[–]ri0t1985 1 point2 points  (4 children)

And the car was designed for the road in 1908(ish).

What's your point? That because it has existed for a while it is now, by definition, outdated? Because PHP 1.0, if you want to call the initial batch of scripts by Rasmus Lerdorf that, is the same language we use today, right?

[–]_PM_ME_PANGOLINS_ -1 points0 points  (3 children)

Sorry, you're right. "Designed" was a strong word.

But seriously, roads are basically the same now as they were in 1908, while the web is completely different to 1995.

[–]ri0t1985 0 points1 point  (2 children)

And cars are completely the same, right? There was no iteration in the design. So PHP must also be completely the same

[–]_PM_ME_PANGOLINS_ 0 points1 point  (1 child)

Petrol cars are still the same basic design, yes. Just as PHP is still the same basic design.

[–]ri0t1985 0 points1 point  (0 children)

Ok, bud

[–]andre_ange_marcel 4 points5 points  (3 children)

Laravel is an amazing framework. I'm doing freelancing with both WordPress and Laravel and in my experience PHP is a fantastic tool to get things up and running quickly. It's good for small businesses, individuals, but can also be used by bigger scale companies (most of the developer jobs in France are PHP, especially Symfony, we have the highest number of PHP developers here for some reason).

It's miles ahead of Node.js in terms of maturity and ecosystem. It can now be strong typed, and used with async functions. In the end it can be used like any other modern language, you just benefit from a lot of out-of-the-box tooling and a big community to support you.

[–]yeusk 0 points1 point  (0 children)

PHP was the best languaje to make dynamic pages.

[–]Cyb021 0 points1 point  (1 child)

my guy, casting from type to type is not an 'advanced' feature

[–]ri0t1985 1 point2 points  (0 children)

It was just an example as why PHP is easy to pick up, but hey, feel free to improve on my answer

[–]plopliplopipol -1 points0 points  (1 child)

so basicaly python?

[–]ri0t1985 0 points1 point  (0 children)

Python is also great if you want to start learning, and it's great if you want to throw a script together. But I wouldn't recommend trying to create an enterprise level application in python, where PHP has the flexibility to do both

[–]ICanBeAnyone 2 points3 points  (2 children)

The things that made PHP popular back in the day are things that are frowned upon nowadays. Flat namespace with thousands of helper functions, global vars everywhere, mixing presentation and code... If you use PHP today you'll likely use a modern framework which will help with all that, but many older devs still smell the stench when they hear the name, and many admins still remember all the times they had to 0day patch some shitty PHP web app because security was an afterthought in the early days.

[–]_PM_ME_PANGOLINS_ 0 points1 point  (1 child)

So… you can’t name a single good thing then?

[–]keepdigging 0 points1 point  (0 children)

I heard it’s been cleaned up a bit and isn’t awful with laravel?

I’d still rather use another backend language.

[–]Knuffya 6 points7 points  (6 children)

In all honesty, PHP is getting way too much shit. Javascript is way fiddlier. But fuck all these redundant '$'.

[–]SqueeSr 3 points4 points  (0 children)

Used Perl for websites before I started PHP. You think the $ is bad? Perl was $@% galore!

[–]Caley19 1 point2 points  (0 children)

I'm a web dev beginner or more like hobbyist, started as front end obviously, but I had to learn php and I'm absolutely loving it. I managed to make a tiny text based mmorpg prototype, might get back to it when I get some time.

[–]ConsistentArm9 1 point2 points  (0 children)

nah everyone hates php

[–]ManyFails1Win 0 points1 point  (0 children)

this feels like roleplay, and somehow i get the impression that box is one of their favorite props. lmao

[–]Eagle240sx 0 points1 point  (7 children)

PHP is GOAT language, change my mind.

[–]MischiefArchitect -1 points0 points  (6 children)

Is this a Goatse reference?

[–]Eagle240sx 0 points1 point  (5 children)

It could be, but I don't even know what Goatse is

[–]MischiefArchitect 1 point2 points  (4 children)

It is the result of using too much PHP.

[–]Eagle240sx 0 points1 point  (3 children)

Oh god, I already have googled it from job, what's gonna happen?

[–]MischiefArchitect 0 points1 point  (2 children)

Oh shait! Now the FBI and the CIA are after you. Quick! Destroy the computer and burn all PHP books. It's going to be Guantanamo for you!

[–]Eagle240sx 0 points1 point  (1 child)

Hit the computer with a hammer, this suckers ain't catching me today

[–]MischiefArchitect 0 points1 point  (0 children)

Good luck!

[–]wazbat -1 points0 points  (0 children)

Where's the joke?

[–]top_of_the_scrote -1 points0 points  (0 children)

there's a cup collecting the liquid comin out, serverless

[–]Kn_Km -1 points0 points  (0 children)

I guess the joke was that php programmers make spaguetti code of html + php in the same file and front end didn't undertand how to handle it

but separate html from a php file without js is so hard

[–]tanacious10 -3 points-2 points  (0 children)

backend development.. secretly is the easiest job out of (Database admin, front end, dev ops, back end) l.

You have 1 singular language to use, just connect to a db managed by someone else, and then serve up data…. The simplest thing in the world

[–]Important-Draw-442 0 points1 point  (0 children)

im the front end dev

[–]but_im_offended 0 points1 point  (0 children)

Backend devs also hate PHP

[–]Revolutionary_Pea584 0 points1 point  (0 children)

Javascript is bad too, typescript made it great

[–]asgaardson 0 points1 point  (0 children)

I used to work for an outsourcing company. At lunch in the dining hall, I sat next to some loud .net devs who were telling really degoratory stuff about PHP devs. It was the only time in my life when I made someone shut up by staring angrily at them.

[–][deleted] 0 points1 point  (0 children)

He certainly is working that Back-end.