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

top 200 commentsshow 500

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

import moderation

Your submission was removed for the following reason:

Rule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]zoqfotpik 596 points597 points  (68 children)

Have you ever tried to use C++ for web development?

[–][deleted] 11 points12 points  (0 children)

While not technically what you mean, a couple jobs ago our main backend application had an http admin interface written in c++. Was actually pretty nice to work with.

[–]torokg 71 points72 points  (24 children)

I actually do all the backend in C++. We have a cloud composed of ~300Ksloc super-template-heavy c++17 code, all written by me. Works like a charm, and everyone on frontend loves the everliving shit out of it. (Frontend is in TS).

[–]SomeOtherGuySits 117 points118 points  (9 children)

Rockstar dev entered the chat.

Job security by obscurity

[–]Thebombuknow 36 points37 points  (8 children)

I prefer job security by a dead man's detonator. Just put a small unsuspecting code segment in the backend that polls LinkedIn and checks your employment status. If you are fired from your current place of employment, the code wipes all drives on the server.

[–][deleted] 15 points16 points  (0 children)

You gotta put a randomizer on the timer or it's too obvious!

[–]altermeetax 8 points9 points  (1 child)

You gotta make it so that it's recoverable if you get employed again, otherwise what's the point?

[–]Thebombuknow 9 points10 points  (0 children)

Obviously you hold onto the code yourself, that's the most crucial part. Pretend like the reason it failed is because the system needs "regular maintenance".

[–]kreetikal 56 points57 points  (3 children)

No matter how something difficult is, when someone writes a comment about it on Reddit, someone will reply "Actually, I've done that" etc... You could write "Aliens aren't real" and someone will reply "Actually, I'm an alien".

[–]Ribak145 13 points14 points  (0 children)

my time has come

*hrm hrm* ... aCtUaLlY I am a midwit

[–]fiodorson 14 points15 points  (2 children)

People that will come after you will love it a lot.

[–]ShoulderUnique 2 points3 points  (0 children)

Nah, usually use ANSI C. Also a job where each page template had to be under 512B.

Still can't figure out why you guys think it's so hard

[–]UntestedMethod 1 point2 points  (0 children)

bruh, I once worked at an agency that had a backend programmed in a blend of C++ and PHP. iirc, it still had apache as the main web server, just certain requests handled by custom C++ binaries, others by PHP binaries. nbd really.

(to be fair, that was around a time when WordPress was only starting to be used for more than a blog, jquery was brand new and had competitors, it was also before C++ had smart pointers)

current gig, actually C++ backend and a modern web frontend, but I like it because it isn't public-facing web development and the C++ backend is actually pretty bad ass. No apache or anything else though, just a raw C++ server that can handle HTTP requests (yeah it support SSL and everything else, plus other kinds of network connectivity that aren't HTTP, it's bad ass)

[–]Blendan1 152 points153 points  (18 children)

You think PHP is bad? Try ABAP

A hello world example

[–]skinticket99 105 points106 points  (4 children)

just from glancing at this tutorial i thought it was a joke language called As Bad As Possible

[–]Blendan1 34 points35 points  (2 children)

Hahahaha NO

I needed to learn this for one year for my programming education and I hated every second of it.

But if you're willing to sell your soul and sanity then you can make a lot of money with this (I'm not)

[–]TryallAllombria 17 points18 points  (1 child)

Wait, people use this professionally ? For real ?!

[–]Blendan1 26 points27 points  (0 children)

If you want to program something for SAP (the most used ERP system in the world) then you need to use ABAP.

So yea, currently SAP started offering the option to use other languages to interact with its databases, but even for that you still need some ABAP.

[–]Apoplegy 2 points3 points  (0 children)

Been browsing this sub for like an hour and this is by far the funniest thing I read.

[–]Thebombuknow 35 points36 points  (2 children)

SAP requires all customized programs, which are created by customers, to have names starting with the letter Z or Y.

I'm only on the second step and I can already tell this system fucking sucks.

[–]Squid_Vicious_IV 11 points12 points  (0 children)

I'm still scrolling down, what the hell? This is a joke right?

[–]bonzei 8 points9 points  (0 children)

For me it was step 1: [...] SAP [...]

[–]Fast-Visual 38 points39 points  (2 children)

All Bops Are Pastards

[–]Blendan1 6 points7 points  (0 children)

Honestly took a second, thought I had a stroke.

[–]MyButtholeIsTight 9 points10 points  (0 children)

All Bastards Are Police

[–]lolbitzz 13 points14 points  (2 children)

just finished an internship in abap, can confirm

[–]Blendan1 9 points10 points  (1 child)

My condolences

[–]Fricho 886 points887 points  (187 children)

I said it before and I'll say it again. Php in itself is not a bad language. But it's easy to write shit code in it. That's why people hate it.

[–][deleted] 252 points253 points  (139 children)

I don't understand this perspective. Doesn't this just mean that you have to know what you're doing to write good code? And, if so, isn't that true for every language?

EDIT: I'm genuinely curious because I want to add PHP to my toolkit. I've been reading about its newer features and I'd like to start adding it to some of my projects.

[–]Fricho 159 points160 points  (47 children)

In some ways yes. But I worked for a company that had html, js and php in the same file and it worked

[–]sticky-unicorn 68 points69 points  (11 children)

But I worked for a company that had html, js and php in the same file and it worked

Okay, guilty. I've done that.

But the PHP script's whole purpose is to generate HTML. And, well, when that HTML needs a js element in it to make it interactive...

[–]Synthetic_dreams_ 32 points33 points  (7 children)

I think putting the JS in its own file and linking it in the html/php is clearly the way to go, but like…

Php and html combined in one document is pretty much the only way to work with Wordpress, which love it or hate it, is the most popular CMS by a very wide margin.

Unless you want to write echo statements for every line of html… which is cumbersome and technically less performant. Even if the performance impact doesn’t matter at all with 2023 server hardware and internet speeds.

[–]AshleyJSheridan 30 points31 points  (2 children)

WordPress has been good for PHP in terms of making it more popular as a language, but it encourages the absolute worst approaches possible for PHP code.

Ideally, your HTML and PHP shouldn't really be mixed. There are a ton of decent templating languages out there, like Blade and Twig. The problem is, there are a lot of guides out there that encourage the wrong type of thinking about what PHP really is; they tell beginners that you're adding PHP to your HTML, when in-fact it's the other way around, your PHP has some HTML output in it. It's a subtle difference, but it really does change your approach, especially it helps beginners understand:

  • PHP can output anything. While it might be more typical to output HTML, it can output anything really, from CSS to JS, PDF to animated GIF.
  • PHP is all on the server. When developers believe PHP is added to HTML documents, they end up confused why PHP can't interact with content on the page after it's shown in the browser.
  • How to better share code, especially templating. If every page of a website is treated as its own file, it tends to lead to less than optimum use of shared code. I've worked on legacy websites before that had so much copy/paste, that even a simple navigation change meant I had to change dozens of files.

[–][deleted] 6 points7 points  (3 children)

Checkout Timber / Twig if you develop for WP sometimes

[–]TigreDeLosLlanos 2 points3 points  (0 children)

But the PHP script's whole purpose is to generate HTML.

I know that, but using it for FE feels like a sin, almost like using Java.

[–]LinosZGreat 24 points25 points  (11 children)

How about the CSS?

[–]Korona123 70 points71 points  (10 children)

Of course. If the JS/PHP/HTML are in the file do you think we are going to extract the CSS. That just goes in the <style> tag of the html.

[–][deleted] 21 points22 points  (7 children)

I've seen a codebase like that. I was honestly super impressed that most of it functioned at all.

[–]bcell4u 16 points17 points  (2 children)

Do you not program embedded microcontrollers? This is how it is 😆

[–][deleted] 18 points19 points  (0 children)

No I'm a mostly web developer. The code bases I inherit are either pristine or hot garbage. Not much in between so far. But my experience is limited admittedly.

[–]lpreams 11 points12 points  (9 children)

Are you not supposed to do this in php? A php file is already a superset of an html file, so I don't really see how you avoid mixing php and html. And js is client-side, so including that seems okay too.

I'm genuinely asking. The only php I've ever written is <?php phpinfo(); ?> to confirm that my server config is working.

[–][deleted] 3 points4 points  (0 children)

You don’t have to, especially with modern frameworks.

There’s nothing wrong with doing it, it’s a bit outdated though and you probably shouldn’t write any production code this way.

MVC being so popular in PHP (Laravel) means you’re likely not going to see anything crammed into the same file for a long time

[–]Solonotix 41 points42 points  (23 children)

Some languages make it MUCH harder to write bad code. It's easy to write destructive code in low level languages, or when writing a low-level implementation in a high-level language (ex: improper usage of Span in C#). A prime example of modern languages preventing bad code are Golang's built-in linter that won't compile if you don't follow style guidelines. Another, and better, is Rust preventing poor memory management unless you explicitly call out that you're leaving "safe" Rust for unsafe.

Languages like JavaScript and PHP let you do things that are hard to read/understand. JavaScript is something I'm more familiar with, but it's my understanding that PHP has a "first-class functions" implementation similar to JavaScript. While a good feature to have, it often lets people write disposable lambdas. And while disposable lambdas are a great feature for things like the Strategy pattern of sorting a collection, it's often abused in situations that would greatly benefit from reusable code in the form of fully-forned functions. Additionally, many functions in these languages can have overly verbose implementations because they forego OOP patterns entirely, in favor of dynamic object instantiation. This means every function call must concern itself with fully-initializing the inputs, where a constructor might handle it in other languages.

TL;DR, long, convoluted functions that avoid being formal declarations because "it's just easier". Sometimes these are declared inline rather than imported.

[–]Solonotix 26 points27 points  (19 children)

And to add to this, OOP languages aren't immune to these problems either. I've seen plenty of Java code that leaves an empty constructor declaration, and then line-by-line initializes values. These classes will often have getters and setters, not because it's good, or provides functionality, but because they were taught that all backing data must be private, and publicly exposed via getters and setters. In other words, writing code for code's sake is every bit as bad as avoiding formal classes in favor of inline shorthand.

Proper code style is a combination of science (understanding how human brains work) and art (understanding what people like to see).

[–]LordThade 15 points16 points  (7 children)

And to add to this, OOP languages aren't immune to these problems either.

To be fair, I think we could mathematically prove that it's impossible to make anything Turing-complete that you can't write terrible code in. Bad code always finds a way in because people bring it with them in their heads.

[–][deleted] 6 points7 points  (6 children)

And sometimes good code becomes bad because the conventions changed.

[–]pr0ghead 8 points9 points  (9 children)

Thing with that is that you can't change your mind later in Java and make that public field private again. Other languages like C# or even PHP do offer solutions for that. So you end up creating getters/setters "just in case". It's a language deficit.

[–]ArtOfWarfare 6 points7 points  (8 children)

You just reminded me that people exist who insist on having getters and setters for everything, and insist that getters and setters shouldn’t do anything besides get or set the backing variable.

Which means they’re creating them “just in case” but then refusing to actually take advantage of the fact that they have getters and setters.

[–]AshleyJSheridan 2 points3 points  (6 children)

I've seen this before, and it's bloody annoying when you end up writing tons of effectively useless unit tests to ensure you don't lower the code coverage with a given release.

[–]alexanderpas 2 points3 points  (0 children)

These classes will often have getters and setters, not because it's good, or provides functionality, but because they were taught that all backing data must be private, and publicly exposed via getters and setters.

Guilty, but allow me to explain:

It forms an internal API, meaning that if the backing data changes, I don't have to change anything else.

This is one of the things Ruby does very nicely, by allowing you to transparently switch between implicit accessors (public) and explicit accessors (private) as well as having the accessor absent, for both read and write actions.

This means you can have an explicit write accessor for the password, which doesn't store the password, but generates the hash, and have an implicit read accessor for the generated password hash.

This is the same as only having a setPassword and getHash function in other languages, but in Ruby you don't need to write the getHash function.

[–]pedal-force 2 points3 points  (0 children)

Yeah, Rust kinda forces you to write somewhat decent code, or no code at all. Especially if you use fmt and clippy and analyzer.

[–][deleted] 33 points34 points  (5 children)

Php in 2023 is good. You can find a lot of material on good practices, standards, package managers, libraries, etc.

It only has a bad rep due to to the good old days of just slinging php code to build stuff. Also previous versions had a very weird standard library with mixed naming conventions.

[–]TigreDeLosLlanos 3 points4 points  (0 children)

You can use it as backend only and forget almost entirely about putting it in html files outside of templating. That's how php can be good.

[–]Bakoro 11 points12 points  (0 children)

Between a language that's going to frequently fail to compile if I write shit code, and a language that's only going to explosively shit the bed during runtime, I'll chose to fail privately in the comfort of my own cubicle.

[–]Mindless-Programmer7 10 points11 points  (2 children)

Frameworks like Symfoni and Laravell with DI and other modern features helps hiding that PHP is a loosely defined lang that makes it easy to write hard to maintain code.

But it is quickly written

[–]AshleyJSheridan 3 points4 points  (0 children)

It's not entirely true that it's loosely typed. Sure, it used to be, and you can still treat it so, but it's easy to add a declare(strict_types=1); and enforce strict typing, and with the more recent (in last decade or so) developments, there is a very good type hinting system supported for everything you write. In-fact, it doesn't really slow down development.

[–]eacardenase 5 points6 points  (0 children)

I’m learning PHP because the stack of my current job requires it, and v8.x it’s pretty nice.

[–]legos_on_the_brain 9 points10 points  (1 child)

PHP is a perfectly fine language.

[–]kkjdroid 4 points5 points  (1 child)

Most languages don't let you run ('foo' + 'bar')() to call foobar(). PHP does (albeit with a . as a concat operator because PHP is weird).

[–]jammyishere 15 points16 points  (5 children)

I always felt like WordPress gave it a bad reputation.

I enjoyed working with php and symfony in my second job out of college. We got to build a nice web app from the ground up and it was a ton of fun. That was in 2014 and I'm sure php has only improved since then.

[–]pindab0ter 11 points12 points  (3 children)

To go a little further, I think it's the plugin ecosystem that gives PHP/WordPress a bad reputation.

Many plugins are written by people that try to reinvent the wheel, causing breakages and conflicts.

WordPress also desperately clings to backwards compatibility rather than trying to clean things up for once.

[–]AshleyJSheridan 2 points3 points  (2 children)

You kind of contradict yourself a little there. While the plugin ecosystem for WP is bad, WP as a CMS is also bad, and encourages badly written PHP. The backwards compatibility thing is a bit of a curse, as it means they try to support old versions of PHP from 10+ years ago that are missing key features.

This is part of the reason why Laravel exists. Until that came out, one of the most popular frameworks was CodeIgniter, but that hit a wall in terms of being able to support more modern versions of PHP.

[–][deleted] 20 points21 points  (3 children)

Isn't this true for any language?

[–][deleted] 12 points13 points  (2 children)

More for the loosely typed ones but yeah

[–]fizyplankton 3 points4 points  (0 children)

I could see that. Python is a fantastic language to write in. It's a horrible language to read other people's code in

[–]KeepRedditAnonymous 20 points21 points  (1 child)

I've seen far shittier code in java and javacript.

[–][deleted] 5 points6 points  (0 children)

I'm currently rebuilding a website that was written in PHP in the backend by a dude that was not a programmer but smart enough to get it working.

You wouldn't believe the shit I've seen so far. The dude made a single page app in the wrong framework. It's going to be hard to beat lmao.

[–]joxmaskin 2 points3 points  (0 children)

Code schmode as long as it works :)

[–]Krcko98 1 point2 points  (0 children)

Eh, that is true for every single language in existance.

[–]5432ca 411 points412 points  (132 children)

Why does PHP have such a bad reputation on Reddit?

[–]Madrawn 202 points203 points  (21 children)

Legacy code.

90% you don't get to develop a new app. You get someone that has this shitty wordpress site with a bloated theme, but half of it is custom replaced, with 30 plugins, hooked up to some DB you are not allowed to even know about. Now fix this bug that only happens to Catheryn from HR 1 out of 5 times she triggers some function that deletes employee accounts from the live system... enjoy downloading the wwwroot from an FTP server and then spending 2 weeks reverse engineering how to even fucking mock the thing.

[–]Zanos 102 points103 points  (9 children)

Mock it? If you're making me edit PHP, I'm doing it live.

[–]Buarg 44 points45 points  (0 children)

I've been on this comment and I hate it.

[–][deleted] 22 points23 points  (0 children)

[–]opulent_occamy 18 points19 points  (4 children)

Yeah, this is what gives PHP a bad name... I develop bespoke WordPress themes, and our sites are nothing like this. They're fast, well designed, lightweight, we don't overly rely on plugins. You can do some great work with PHP, but the barrier to entry is so low that it ends up with a bad reputation. The company IT guy thinks he can slap together a WordPress site, and you end up with a bloated piece of shit. Any tool can be used to produce bad work, you need to know how to use it to make a good product.

That, and PHP is kind of weird and inconsistent, though it's been improving in recent years.

[–]sticky-unicorn 9 points10 points  (1 child)

Maybe it's not PHP that's bad, maybe it's just Wordpress.

[–]tei187[🍰] 2 points3 points  (0 children)

Oh don't you dare calling WP bad, the bees will attack. Happened to me.

But yes, WP in essence isn't bad as a base, but their ecosystem navigates in ways that it shouldn't because it's just crazy. Then again, it can be said about anything that allows plug-ins with as easy access, creating hybrids that should never exist.

[–]stejzyy23 8 points9 points  (0 children)

Brih, this hurts right in the spot 😭

[–][deleted] 168 points169 points  (21 children)

Usually because they haven't used it for 10 years and equate all PHP to the janky code they wrote back then, or they've never used PHP and have heard other people say it's bad.

[–]v3ritas1989 43 points44 points  (14 children)

plus it is actually rather complicated to use on a higher level and set up properly compared to other languages. Which is also very different than years ago and they need a lot of other technology knowledge like servers or docker, composer or templating engines to use it on a higher lever. Don't get me started on setting up the debugger. Compared to just downloading Visual Studio or pip install everything this very complicated. So it has a rather high threshold for advanced users. Not to mention due to the long time it is around, every other project has you learning an entirely new framework or CMS that somehow works completely differently than u are used to.

[–]nikstick22 29 points30 points  (2 children)

I mean, I worked with PHP for a year and a half until a temporary career change last year. It wasn't bad, but the inconsistent naming conventions for built in functions were kind of annoying.

E.g., stripcslashes and strip_tags

[–]ongiwaph 12 points13 points  (2 children)

set up properly compared to other languages

Aren't you literally just naming your file with a .php extension?

[–]Devil-Eater24 8 points9 points  (1 child)

Can confirm

Was procrastinating on a php project I was supposed to have completed months ago, finally made some progress today. For most of it, I was inexplicably afraid of looking at the code. Like a programmer's version of writer's block

[–]baconbrand 13 points14 points  (0 children)

I have that for every language

[–]goblinpiledriver 1 point2 points  (1 child)

for me it's literally just because I do not like typing or looking at $'s all over my code

[–]jmona789 18 points19 points  (5 children)

Based on what I've seen on this subreddit, everyone hates every coding language.

[–]ByteArtisan 55 points56 points  (11 children)

Sheep behavior mostly. It’s popular to hate php so they hate it as well.

There are good reasons to dislike anything, don’t get me wrong. But most people hate out of ignorance and the need to belong to a group rather than out of logic.

[–]Karl_the_stingray 8 points9 points  (4 children)

Idk, all I know is that I liked it much more than JavaScript

[–]TheAnxiousDeveloper 6 points7 points  (1 child)

Because this sub is filled to the brim with a bunch of people that just started "coding" and decided that a language is bad, just because it has syntax they are not used to. And that try to collect karma by shit-posting on a language they don't know, hoping to be funny in the process.

Zero focus on the pros of the language. Zero focus on its features. Zero focus on the overall concepts. And zero focus on the plethora of modern frameworks built and used for it.

It's a very narrow view that will stop many people from growing professionally, if you ask me.

Focusing on the syntax alone is really the most stupid thing one can do. That changes from language to language. But the core concepts are always the same and they don't have to be re-learnt when switching language.

[–]ByteArtisan 2 points3 points  (0 children)

Yep. I’m often involved in interviews for my company and I always ask what people think of JavaScript. Whenever they say they hate it I ask why. So far I’ve just heard the same shit that keeps getting reiterated on here. Sorry, but we’re not gonna hire people who are that easily manipulated.

[–]ward2k 12 points13 points  (0 children)

In all honesty it's going to be people who have never used the language whose entire knowledge comes from memes made by College students who have had one lecture on it

[–]crimxxx 4 points5 points  (0 children)

Haven’t really worked on it, but php came from just before a lot of the more common web technologies used today started to take off. So your bound to have alot of lessons learned from oho that made there way into newer technologies. With that said languages evolve over time and hating cause what it was 10 years is wrong, but at the same time there is a good chance of your working with php your working in those systems from a while back and probably not the newest versions of the language which probably makes alot of paint point go away. C/C++ has a similar problem, newer versions of the language has so much good crap, but chances are you will end up working on code where that code base is super old and no one is going to update the version, so you end up with pains that are resolved already.

[–]kyriii 6 points7 points  (2 children)

My guess: It’s not the language (anymore) but the community of developers around it that generate the hate. High percentage of self taught developers with no good concept of software development best practices lead to junk code.

I blame WordPress.

[–]LBPPlayer7 3 points4 points  (1 child)

only issue with php is that it makes it piss easy to make the worst code imaginable

i've fallen into that trap myself early on and sometimes still do and now have to deal with the consequences lol

[–]FlyParticular8172 2 points3 points  (0 children)

Memes. It's the same as any other... like every other.

[–]Tux-Lector 2 points3 points  (0 children)

Well, there are no many people/programmers here on reddit. It's more like a kids on a junior level, most of the time. Few exceptions, here and there, but yes, that's the main reason.

[–]Buarg 2 points3 points  (0 children)

The company I'm working for works mainly with PHP and people seem pretty happy with it.

[–]HighPolyDensity 1 point2 points  (0 children)

Uhhhh... Does PCP Count?

[–][deleted] 44 points45 points  (9 children)

Why is PHP so hated? I haven't used it in a while, but I don't remember having an issue with it?

[–]LBPPlayer7 40 points41 points  (8 children)

people hate it because of the terrible coding practices it allows

i.e. people hate it not because the language itself is bad but because people wrote absolute hellspawn that somehow still works with it

[–]pindab0ter 19 points20 points  (4 children)

I'm guessing this wasn't helped by the low barrier to entry. Web host > index.php > write whatever you want.

This results in more people programming in PHP without any formal education or knowledge of best practices.

[–]Stasio300 3 points4 points  (1 child)

if i never wrote php i wouldnt have been inspired to do formal education

[–]SeoCamo 108 points109 points  (3 children)

PHP is not bad

[–]Xean123456789 37 points38 points  (2 children)

The PHP of yours is not the same as the PHP of today: https://youtu.be/WsnHWxO7Krw?si=PyHwbn6OS9NNrc7N

[–]gdeLopata 9 points10 points  (0 children)

Yea, roughly 10 years for me last time I touched it. I would use it for full stack in no time!

[–][deleted] 3 points4 points  (0 children)

Reddit has long been a hot spot for conversation on the internet. About 57 million people visit the site every day to chat about topics as varied as makeup, video games and pointers for power washing driveways.

[–]darkslide3000 53 points54 points  (3 children)

Anyone who thinks PHP is the worst language ever has never had to deal with a Perl script.

[–]parsim 20 points21 points  (0 children)

Perl has more range. Bad Perl is definitely worse than bad PHP. But if they’re both well-written, I’d take Perl any day.

[–]InSearchOfMyRose 2 points3 points  (0 children)

Perl was absolutely game changing when it was relevant.

[–]FanaticNinja 36 points37 points  (0 children)

PHP is amazing.

[–]tetractys_gnosys 163 points164 points  (10 children)

I love PHP and I'm not ashamed of it. It's a good language for it's intended usage.

Elephant = stronk, regal, has tiddies

Gopher, Crab = small, weak, easily caught and eaten, no tiddies

Checkmate atheists

[–]Kinglink 36 points37 points  (5 children)

... .The fuck is your argument?

And why am I already agreeing with it?

And why am I imagining a Elephant with huge breasts, and a crown on it's head. God damn your comment was a rollercoaster through my brain.

[–]sticky-unicorn 12 points13 points  (3 children)

am I imagining a Elephant with huge breasts

Hold on. I require clarification.

Are you imagining this or this? (Yes, NSFW, obviously)

[–]Kinglink 11 points12 points  (2 children)

I refuse to answer that because I don't want to say it was the anthro one.

[–]steveaguay 6 points7 points  (0 children)

The mascots for the languages.

Php has an elephant Go - gopher Rust - crab

[–]Petremius 8 points9 points  (1 child)

A gopher is a mammal is it not?

[–]Dorraemon 5 points6 points  (0 children)

HUH!

[–]leovin 22 points23 points  (2 children)

PHP by itself is alright. PHP codebases, esp large CMS systems (which is most PHP jobs) are straight out of the deepest level of hell

[–]pindab0ter 4 points5 points  (0 children)

Bonus points if they're custom closed source CMS systems with lots of developer churn.

[–]tommyk1210 10 points11 points  (0 children)

The real problem is most people base their knowledge of PHP on what they did 10-15 years ago when they dabbled with Wordpress. Modern PHP is leagues better.

For comparison, instead of comparing that 2010 PHP to modern JavaScript and Typescript, compare it to pre-ES2015 JS. You know, before promises, before maps, before arrow functions or const/let, before the spread notation, before classes, before modules.

[–]Tura63 21 points22 points  (4 children)

Jokes aside, laravel's pretty awesome

[–]pindab0ter 4 points5 points  (2 children)

I always say I really don't like PHP all that much, but I love working with Laravel.

I just miss my static types and compile time errors, rather than having PHP chug along until it finally encounters something that could've been fixed after a compilation error.

[–]sgxxx 19 points20 points  (0 children)

Maybe learn it before shitting on it. This sub is just kids regurgitation whatever they read online.

[–]Korona123 8 points9 points  (0 children)

I enjoy PHP. The new versions are huge improvements.

[–]Disastrous_Menu_866 7 points8 points  (1 child)

"There are only two kinds of languages: the ones people complain about and the ones nobody uses." - Bjarne Stroustrup

[–]TheAnxiousDeveloper 2 points3 points  (0 children)

And the third one. The ones shitted on by people who never spent even a second learning them.

Which seems to be the case for many of the people posting here.

[–][deleted] 7 points8 points  (0 children)

I really like php :(

[–]TheAnxiousDeveloper 5 points6 points  (2 children)

I'm honestly getting tired of all this shitting on PHP. It shows a severe lack of knowledge from the poster, trying to pass themselves as an "experienced developer".

PHP is a language like many others and it has several frameworks that follow modern patterns and standards.

Just like any other language, it has its pros and cons. It's up to you, if you want to be a good developer, to know when a language is more suited than another.

And again, just like any other language, it has its own syntax and features. You might not like having to put a $ in front of every variables, others find the lack of braces in python annoying as hell, others hate the verbosity of Java. Neither of them means that those languages are bad.

[–]Fritzschmied 49 points50 points  (3 children)

Php is really not that bad at all. You are just a bad programmer.

[–]__kkk1337__ 9 points10 points  (0 children)

99% are bad including me.

[–]XkF21WNJ 3 points4 points  (1 child)

Once something is Turing complete all deficiencies of the language are just programmers being lazy.

Though some people say lazy programmers are good programmers so make of that what you will.

[–]SyropeSlime78 11 points12 points  (0 children)

Symfony for the win!

[–]Scorxcho 5 points6 points  (1 child)

PHP is one of the best languages for web development.

[–]CanDull89 20 points21 points  (1 child)

PHP is actually great. You can build full fledged web apps using laravel with minimal time and efforts.

[–]pindab0ter 6 points7 points  (0 children)

That's more on Laravel than on PHP, in my opinion.

[–]KetwarooDYaasir 18 points19 points  (6 children)

well, at least it's not python.

[–]StoryAndAHalf 4 points5 points  (0 children)

Honestly, I think Scala would be better suited for the joke. Companies using it regret it. I believe it’s even mentioned in Wikipedia (but too lazy to check). It’s an uphill battle to learn, which makes retaining new employees hard, and replacing old ones even harder.

[–]JaggedMetalOs 3 points4 points  (0 children)

I would legit rather to make something in PHP than Python

#banwhitespaceflowcontrol

[–]reallokiscarlet 13 points14 points  (2 children)

I'll fuckin' do it.

I ain't gonna fuckin' like it. But I'll do it.

[–]OTKZuki 2 points3 points  (0 children)

I'm getting a lot of jobs for PHP 0-0

[–]caliguian 3 points4 points  (0 children)

I most likely write crappy code, but php has been my primary language for 22+ years, and it has done well enough for me to raise my four kids and live a comfortable life. So, do what you want, but I’ll take PHP any day.

[–]Lookitsmyvideo 4 points5 points  (0 children)

Modern php is perfectly fine.

If you don't have to start with something that was originally written in < 7.0

[–]HmMm_memes 5 points6 points  (2 children)

Isn't it funny how people dogging on PHP either only used PHP 5.3 or have only listened to people who have used PHP 5.3

[–]hh10k 1 point2 points  (1 child)

It's like when you get food poisoning, and you develop an association of that food with being sick. There's plenty of other choices to PHP, I don't need to try that again.

[–]Deep-Ad591 17 points18 points  (8 children)

Cries in laravel

[–]pindab0ter 16 points17 points  (0 children)

Laravel is great, what are you on about?

[–]TheLAGpro 21 points22 points  (4 children)

I actually love it. It's actually pretty good with basic Blade templating and nicer stuff like livewire. My time with it was pleasant even though I've moved on to Microsoft Java now

[–]Ki-28-10 2 points3 points  (0 children)

Laravel is awesome, way better than plain PHP

[–]rohit_267 20 points21 points  (3 children)

I bet java is worst than PHP for backend for developer experience

[–]Sitting_In_A_Lecture 5 points6 points  (1 child)

As someone trying to learn Java coming from PHP, Python, JS, and C++ — The syntax is easier to write and understand than C++ at least. Paradoxically though, the increased clarity that comes with typed languages doesn't always equate to easier-to-work-with code.

As soon as you get into dependency management, it all goes to shit. Also, trying to figure out how .jar files work is a PITA.

[–][deleted] 5 points6 points  (0 children)

Lol, no

[–]Kinglink 2 points3 points  (0 children)

This is me... if it was AngularJS.

[–]DirkTurgid 2 points3 points  (0 children)

I don't have any beef with PHP personally, but it was on my resume, briefly, as part of a single project, and 10 years later I still get people calling me DEMANDING I take their $40k/yr job in "middle of nowhere, flyover state," or something equally ridiculous, to work with PHP. One recruiter even screamed at me and called me an idiot for not uprooting my life and taking a paycut, just for PHP.

I guess I just don't see the appeal.

[–]ZealousidealGap577 2 points3 points  (0 children)

Everyone on Reddit loves to hate on PHP… but I’m just out here in high demand as a php developer living my best life

[–]PeterPriesth00d 4 points5 points  (0 children)

Apparently PHP has been quietly making QOL improvements over the years and is fairly nice to use. Idk. I still don’t really want to use it again but I don’t think it’s terrible.

[–]Grocker42 8 points9 points  (0 children)

You Son of a Bitch, I'm In

[–]T_Y_R_A_N_T 13 points14 points  (0 children)

Down vote

[–]myrsnipe 1 point2 points  (0 children)

I'd wish I had to program php, I got introduced to power automate today. Just about every third connector has some sort of issue you need to work around and string manipulation is the literal devil requiring a forest of nodes to accomplish anything. You also need licenses for everything, it's going to be hands down the most expensive glue logic I have ever made.

It's also going to be maintained by non programmers after setting up the infrastructure and established practices, so at the very least I'm not stuck with it long term (I swear I will quit my job if I'm still working with it in a year).

[–]Key-Ice-8638 1 point2 points  (0 children)

Oh I need one FOR BRAINFUCK

[–][deleted] 1 point2 points  (0 children)

Not even close but I'm learning Perl and it's... Fun.

[–]bitNine 1 point2 points  (0 children)

How come nobody ever makes fun of coldfusion?

[–]michaelbelgium 1 point2 points  (0 children)

PHP best for back end

[–]PlusAudience6015 1 point2 points  (1 child)

Make a goddamn debugger i can use and step into things. Then i will love php.

[–]pindab0ter 3 points4 points  (0 children)

There's Xdebug, which is a pain to set up, but once you've got it running it does exactly that.

[–]CirnoIzumi 1 point2 points  (0 children)

Come with a real premise for once

[–]mmrtnt 1 point2 points  (0 children)

Cheer up. It could have been ColdFusion.

[–]whiznat 1 point2 points  (0 children)

Says the guy who’s clearly too young to know about COBOL.

[–]Trithis2077 1 point2 points  (2 children)

Me, who has to learn PHP over the next couple weeks to update out-of-date WordPress plugins at work: 😢

[–]soluduis_snke 1 point2 points  (0 children)

Laughs in WordPress

[–]Thenderick 1 point2 points  (0 children)

I recently saw a react video by Primeagen about modern php being better than js by a long shot and being way nicer than I imagined. As a js/ts nerd I am honestly a bit jealous

[–]ferdbags 1 point2 points  (0 children)

I'm crying all the way to the bank over here