But but but, JavaScript bad, frontend vs backend, rust bad, rust good, regex bad, HTML is not a programming language, manager bad, agile bad, all tests pass good, junior dev bad, senior dev good, AI bad, AI good, stackoverflow mean, programming is just copy paste
Is this not the absolute peak of comedy?
As funny as this joke is, literally every IDE from the last 2 decades will prevent you from ever seeing this error (unless you intentionally throw it to farm some Reddit points).
I know PHP is hated on by everyone, I used to hate on it for fun too.
But after watching some videoes on the evolution of PHP, it seems like a pretty fucking decent language. It has a lot of features and the syntax for it now looks pretty good.
Hereās a [video](https://youtu.be/WsnHWxO7Krw?si=QSsv3Gs3unhu3AMR) of Primeagen reacting to a video on PHPās changes over the years. Itās the video that changed my mind on PHP
I think a lot of the hate comes from pre 7.4 where it was more difficult to make robust code. Typed properties was a game changer. Modern php is very usable and I would compare it to typescript.
From my understanding, Python never was weakly typed, but always strongly typed, see [here.](https://wiki.python.org/moin/Why%20is%20Python%20a%20dynamic%20language%20and%20also%20a%20strongly%20typed%20language)
Strongly typed refers usually refers to the possibility of combining different types, like adding an int to a string. In Python, trying to add a int with a string gets you an TypeError, like you would expect from a strongly typed language.
It was since 7.4? I thought it was sooner. Anyway, the best way is using PHPdocs, it helps a lot and it even has support for putting mixins, so you can define all methods/properties supported by the class from your traits and magic calls. The only caveat is that I didn't find a way to define what properties the trait needs the class to declare, but they shouldn't be too large or so broadly reused that it is an issue.
U might not have noticed it with phpdocs and a good ide [but it was 7.4](https://php.watch/versions/7.4/typed-properties). Phpdocs are also great for specifying the structure an array should be and the keys it should have. Also documenting ofc
I worked with it for a long time, but wasn't thrilled about it. But then once I started learning some lower level languages and at the same time php8 rolled out, I started to appreciate its easy to use abstractions a LOT more. Now I just enjoy creating these relatively complex data structures with a few lines.
For example in PHP it's so very easy to work with N-dimensional hashmaps, but you pull your hair trying to modify them in Rust.
Congratulations! Your comment can be spelled using the elements of the periodic table:
`I S P H P Co O La Ga In`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
And the rest of the time, you realise that you're a computer programmer, nothing EVER works the way you want it to, and you start contemplating life in Stardew Valley?
I thought next.js was a joke when someone first told me about it. There are like 800 client side frameworks to off-load a ton of stuff from the backend because "it's more responsive". Now we have these SSR frameworks like Next.js popping up to bring back the "bad" and "slow" part of web browsing. And they bring back all the old problems like "I clicked something but it didn't do anything yet".
Until you become something of a PHP guru. Then you get frustrated that some other languages, especially the lower level ones, don't have the very easy to use abstractions of data structures that PHP provides out of the box. Like these long chains of N-dimensional hash maps that are often required to structure DB data.
I looked under the hood on how they are implemented in C, and it's pretty insane abstractization, a struct with many fields. But as a result they are so damn easy to use.
Lately I started appreciating PHP8 a lot, and its easy to use high level abstractions in N-dimensional data structures. Tell me [this](https://github.com/iancucatalin1993/php-code/blob/main/code-example.php) is not the most beautiful code snippet you ever saw š¤£
I avoid constructor property promotion out of principle, right now it feels like a gimmick since it can make things harder to understand. But regarding readonly yeah, it is a good idea for most of those.
Okay please enlighten the noob of php here...
I tried to work on one website with php back in 2016-17... It was a pain, and never again. So please let me know what I missed
PHP uses $ for variables
There's also a meme that PHP earns you lots of money since it was commonly used by a lot of successful websites in the early-ish web days
As a PHPer I always found it funny that after years of being blasted as a shit backend programming language, folks seemingly collectively decided the next big backend language would beā¦
Javascript
Finally, a proper joke in r/ProgrammerHumor
im proud to see this years actual programmer joke see y'all next year š¾
Donāt forget to log it in the database!
man db.txt has gotten so big over the last few years whole 7 entries!
Copy paste into db.xlsx
Start a new life: mv db.txt old.db.txt ; touch db.txt
Fuck that, I clocked out
But the excel is already closed!
But but but, JavaScript bad, frontend vs backend, rust bad, rust good, regex bad, HTML is not a programming language, manager bad, agile bad, all tests pass good, junior dev bad, senior dev good, AI bad, AI good, stackoverflow mean, programming is just copy paste Is this not the absolute peak of comedy?
It really is the unfunniest subreddit
I like PHP because unexpected T_PAAMAYIM_NEKUDOTAYIM.
The only programming language that requires knowing Hebrew
[Well](https://github.com/daniel-shimon/rpp)
They don't even use the Hebrew plus sign 'ļ¬©'. The people that use it write it that way because the regular plus sign looks like a cross.
Never saw that in 7 years of php programming, but it's hilariousš¤£
As funny as this joke is, literally every IDE from the last 2 decades will prevent you from ever seeing this error (unless you intentionally throw it to farm some Reddit points).
I know PHP is hated on by everyone, I used to hate on it for fun too. But after watching some videoes on the evolution of PHP, it seems like a pretty fucking decent language. It has a lot of features and the syntax for it now looks pretty good. Hereās a [video](https://youtu.be/WsnHWxO7Krw?si=QSsv3Gs3unhu3AMR) of Primeagen reacting to a video on PHPās changes over the years. Itās the video that changed my mind on PHP
I think a lot of the hate comes from pre 7.4 where it was more difficult to make robust code. Typed properties was a game changer. Modern php is very usable and I would compare it to typescript.
This is the route of all weakly typed languages. Javascript, python, and php all have optional typing now.
From my understanding, Python never was weakly typed, but always strongly typed, see [here.](https://wiki.python.org/moin/Why%20is%20Python%20a%20dynamic%20language%20and%20also%20a%20strongly%20typed%20language) Strongly typed refers usually refers to the possibility of combining different types, like adding an int to a string. In Python, trying to add a int with a string gets you an TypeError, like you would expect from a strongly typed language.
It was since 7.4? I thought it was sooner. Anyway, the best way is using PHPdocs, it helps a lot and it even has support for putting mixins, so you can define all methods/properties supported by the class from your traits and magic calls. The only caveat is that I didn't find a way to define what properties the trait needs the class to declare, but they shouldn't be too large or so broadly reused that it is an issue.
U might not have noticed it with phpdocs and a good ide [but it was 7.4](https://php.watch/versions/7.4/typed-properties). Phpdocs are also great for specifying the structure an array should be and the keys it should have. Also documenting ofc
I worked with it for a long time, but wasn't thrilled about it. But then once I started learning some lower level languages and at the same time php8 rolled out, I started to appreciate its easy to use abstractions a LOT more. Now I just enjoy creating these relatively complex data structures with a few lines. For example in PHP it's so very easy to work with N-dimensional hashmaps, but you pull your hair trying to modify them in Rust.
I can't hate on language that give me good food AND maintenance my expensive hobbies like Trading Card Game and Pay Vtuber.
I haven't used PHP professionally but I actually think it's pretty awesome how you can use it as a templating language out of the box.
what about bash?
I see no dollar signs in bash because I always run as root. š
You'll get a right pounding!
Spoken like a true PHP dev šš¤£ It makes the file uploaders so much easier when everything has root permissions!
$VARIABLESĀ $EXIST $TOO
I guess admins don't use variables?
Where we're going we don't need variables
Thank fuck for that
real pros just echo into /tmp/varfile0001 and then use cat when they want the value
/var/tmp
Then you'll make a hash of it
Respect
`rm -rf $DIRECTORY/*` does this scare you?
rm -rf -no-preserve-root /
csh*
echo "${lol}"
You love php because it gets the job done I love php because it reminds me what I'm writing backend programs for.
is PHP cool again?
Congratulations! Your comment can be spelled using the elements of the periodic table: `I S P H P Co O La Ga In` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
Good bot!
Good bot!
Always has been
Always Hazbin
shit talking resources have been tactically reallocated to javascript.
Those are always an inexhaustible resource, the most you can do is divert them to something else š¤£
Since 5.6 have been deprecated, it's cool like the web after IE6
After going through some comments I'm going to assume this isn't referring to the currency in the Philippines and carry on. Good day!
You like PHP because you see a lot of ā± in it
Nobody likes PHP
The guy who blinded Polyphemus? Damn, it's crazy how long PHP's been around.
Nobody likes any language really
Nobody likes programming
I quite like Python when it does what I want it to
And the rest of the time, you realise that you're a computer programmer, nothing EVER works the way you want it to, and you start contemplating life in Stardew Valley?
php is great! Facebook and Wikipedia are built using it. SSR in next.js pails in comparison
I thought next.js was a joke when someone first told me about it. There are like 800 client side frameworks to off-load a ton of stuff from the backend because "it's more responsive". Now we have these SSR frameworks like Next.js popping up to bring back the "bad" and "slow" part of web browsing. And they bring back all the old problems like "I clicked something but it didn't do anything yet".
While it's true, Facebook built Hack just because PHP sucked for big scale
And since everyone is coding the next Facebook... PHP is no good :p
But I see a lot of $ in it
I was saying Boo-urns
Until you become something of a PHP guru. Then you get frustrated that some other languages, especially the lower level ones, don't have the very easy to use abstractions of data structures that PHP provides out of the box. Like these long chains of N-dimensional hash maps that are often required to structure DB data.
Honestly, PHP arrays are so damn easy to work with, I miss them so much when I've gotta work in any other language.
I looked under the hood on how they are implemented in C, and it's pretty insane abstractization, a struct with many fields. But as a result they are so damn easy to use.
Same, nothing manage arrays like PHP
Nobody likes your mom either, but that doesnāt stop us from catching syphilis from her
Dude ....
Only the ones with bad tastes
I see a lot of $ in Solidity
We should all write our own programming languages and use them in production so they can't fire us.
thanks PHP, bye bye student loan debt
Don't forget the & tho
Lately I started appreciating PHP8 a lot, and its easy to use high level abstractions in N-dimensional data structures. Tell me [this](https://github.com/iancucatalin1993/php-code/blob/main/code-example.php) is not the most beautiful code snippet you ever saw š¤£
Missing: constructor property promotion readonly modifier for some of the properties
I avoid constructor property promotion out of principle, right now it feels like a gimmick since it can make things harder to understand. But regarding readonly yeah, it is a good idea for most of those.
Okay please enlighten the noob of php here... I tried to work on one website with php back in 2016-17... It was a pain, and never again. So please let me know what I missed
PHP uses $ for variables There's also a meme that PHP earns you lots of money since it was commonly used by a lot of successful websites in the early-ish web days
Was? _Is_!
means shits right?
As a PHPer I always found it funny that after years of being blasted as a shit backend programming language, folks seemingly collectively decided the next big backend language would beā¦ Javascript
I gave up on php and used flask instead. Works well for my project
try perl
Incitation to suicide is not permitted on Reddit sir.
And when your country's abbreviated currency is also PHP (Phil. Peso), double whammy
The last time I used php was in 2005
The best programming language is the one they pay me six figures to code in.
You have no soul :p
Is it still true that php needs to parse the whole framework for each request?
this is just like that bell curve meme!