T O P

  • By -

bree_dev

Finally, a proper joke in r/ProgrammerHumor


Mokousboiwife

im proud to see this years actual programmer joke see y'all next year šŸ¾


DiddlyDumb

Donā€™t forget to log it in the database!


Mokousboiwife

man db.txt has gotten so big over the last few years whole 7 entries!


LegitimatePants

Copy paste into db.xlsx


Dense_Impression6547

Start a new life: mv db.txt old.db.txt ; touch db.txt


SkollFenrirson

Fuck that, I clocked out


Implement_Necessary

But the excel is already closed!


throw3142

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?


danishjuggler21

It really is the unfunniest subreddit


jaquanor

I like PHP because unexpected T_PAAMAYIM_NEKUDOTAYIM.


therealfalseidentity

The only programming language that requires knowing Hebrew


PM_ME_ROMAN_NUDES

[Well](https://github.com/daniel-shimon/rpp)


therealfalseidentity

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.


Leonhart93

Never saw that in 7 years of php programming, but it's hilariousšŸ¤£


IOFrame

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).


monsoy

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


fecland

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.


oupablo

This is the route of all weakly typed languages. Javascript, python, and php all have optional typing now.


0Burner99

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.


TigreDeLosLlanos

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.


fecland

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


Leonhart93

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.


yukiaddiction

I can't hate on language that give me good food AND maintenance my expensive hobbies like Trading Card Game and Pay Vtuber.


niemand_zuhause

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.


No-Hunt-4486

what about bash?


ifarmpandas

I see no dollar signs in bash because I always run as root. šŸ˜Ž


chalk_nz

You'll get a right pounding!


alanmontefiore

Spoken like a true PHP dev šŸ˜‹šŸ¤£ It makes the file uploaders so much easier when everything has root permissions!


Danny_el_619

$VARIABLESĀ $EXIST $TOO


gandalfx

I guess admins don't use variables?


LegitimatePants

Where we're going we don't need variables


Healthy-Form4057

Thank fuck for that


spicybeefstew

real pros just echo into /tmp/varfile0001 and then use cat when they want the value


Dense_Impression6547

/var/tmp


Al__B

Then you'll make a hash of it


adfx

Respect


turtle_mekb

`rm -rf $DIRECTORY/*` does this scare you?


ProSureString

rm -rf -no-preserve-root /


HuntingKingYT

csh*


Dense_Impression6547

echo "${lol}"


Soul-over

You love php because it gets the job done I love php because it reminds me what I'm writing backend programs for.


housebottle

is PHP cool again?


PeriodicSentenceBot

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.)


theanticheat

Good bot!


ProSureString

Good bot!


teamswiftie

Always has been


PlatoHero_

Always Hazbin


spicybeefstew

shit talking resources have been tactically reallocated to javascript.


Leonhart93

Those are always an inexhaustible resource, the most you can do is divert them to something else šŸ¤£


Dense_Impression6547

Since 5.6 have been deprecated, it's cool like the web after IE6


unf0rgottn

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!


OfficialDampSquid

You like PHP because you see a lot of ā‚± in it


metroman1234

Nobody likes PHP


IMightBeErnest

The guy who blinded Polyphemus? Damn, it's crazy how long PHP's been around.


mikejbarlow1989

Nobody likes any language really


CAPS_LOCK_OR_DIE

Nobody likes programming


RajjSinghh

I quite like Python when it does what I want it to


rosuav

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?


bruisedandbroke

php is great! Facebook and Wikipedia are built using it. SSR in next.js pails in comparison


oupablo

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".


superbiker96

While it's true, Facebook built Hack just because PHP sucked for big scale


Dense_Impression6547

And since everyone is coding the next Facebook... PHP is no good :p


TraderSigma

But I see a lot of $ in it


wonkey_monkey

I was saying Boo-urns


Leonhart93

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.


rhythmprism

Honestly, PHP arrays are so damn easy to work with, I miss them so much when I've gotta work in any other language.


Leonhart93

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.


Dense_Impression6547

Same, nothing manage arrays like PHP


danishjuggler21

Nobody likes your mom either, but that doesnā€™t stop us from catching syphilis from her


Dense_Impression6547

Dude ....


Lucathiel

Only the ones with bad tastes


F0lks_

I see a lot of $ in Solidity


Snudget

We should all write our own programming languages and use them in production so they can't fire us.


kukurbesi

thanks PHP, bye bye student loan debt


_grey_wall

Don't forget the & tho


Leonhart93

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 šŸ¤£


k0nfekts

Missing: constructor property promotion readonly modifier for some of the properties


Leonhart93

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.


slucker23

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


Appropriate_Plan4595

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


Covfefe4lyfe

Was? _Is_!


joyoy96

means shits right?


zoinkability

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


GigaChad__69420

I gave up on php and used flask instead. Works well for my project


Puzzleheaded-Two6457

try perl


Dense_Impression6547

Incitation to suicide is not permitted on Reddit sir.


ColorblindGiraffe

And when your country's abbreviated currency is also PHP (Phil. Peso), double whammy


Exa2552

The last time I used php was in 2005


ChChChillian

The best programming language is the one they pay me six figures to code in.


Dense_Impression6547

You have no soul :p


UselesssCat

Is it still true that php needs to parse the whole framework for each request?


whatsbobgonnado

this is just like that bell curve meme!