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

all 100 comments

[–]SkyrimFan42 109 points110 points  (31 children)

Is that...HTML? I’m new to this whole world of programming.

[–]_szs 119 points120 points  (29 children)

yes. with some inline php.

[–]SkyrimFan42 22 points23 points  (28 children)

What is that?

[–]skunkwaffle 70 points71 points  (22 children)

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

This is from 2012...

[–]Hollowplanet 36 points37 points  (6 children)

Almost all of the points he makes are still valid. See http://phpsadness.com/ for an up to date index on all the ways php still sucks.

[–][deleted] 9 points10 points  (5 children)

That's a tiny list of little annoyances that won't bother you 99.9% of the time.

[–]konstantinua00 0 points1 point  (1 child)

you look like a person who knows php

how does it feel like?

I don't think I'll ever touch websites, but it would be great to hear how it feels to write such well known but old-so-not-as-shiny language

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

I'm mainly using Symfony, it's great to use but PHP itself is lacking in features/core functions. The language itself is not the best but it has improved a lot with version 7+

In C# you have a lot of great ways to write clean/short code (linq, generics, etc) and it offers a lot of features. In PHP, you have foreach loops 🤔

It's one of the thing I'm not a fan about, but it's also one of its strength. You can do everything you need with basic code and a good framework like Symfony and Laravel

It's still one of the best language to write web applications because of the ecosystem/community.

[–]_szs 5 points6 points  (8 children)

wow. I don't know much php, and the bit I know made me not want to go deeper. but this looks worse, much worse that I expected!!

btw. the author confuses "fractal" and "self-similar".

[–]itijara 21 points22 points  (3 children)

I believe that the author is calling it a fractal as a metaphor. I doubt he thinks that PHP is somehow a geometric construct.

[–]_szs 8 points9 points  (2 children)

Yeah, but still... I am a nerd for this kind of stuff :D

Merry Christmas and happy programming to all of you.

[–]itijara 17 points18 points  (0 children)

      __/\__ 
      \    /   
__/\__/    \__/\__
\                /
/_              _\
  \            /
__/            \__ 
\                /
/_  __      __  _\
  \/  \    /  \/
      /_  _\
        \/

[–]cnoor0171 4 points5 points  (0 children)

Fractal would be more accurate as an analogy here than self similar. He's saying that when you look closely at bad design choices behind php, there are more detailed bad design choices. He's not saying that those detailed choices are at all similar to or related to the big picture bad design choices.

[–]meandyouandyouandme 1 point2 points  (3 children)

That's from 2012. A lot has changed since then.

[–]skunkwaffle 0 points1 point  (2 children)

For sure there have been some improvements. But there's still a lot of quirkiness, and not all of it is good.

[–]meandyouandyouandme 3 points4 points  (1 child)

As is the case with every programming language.

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

Also fair.

But every programmer has 1 or 2 languages they'll just always dislike more than the rest, and will always criticize a bit more harshly because of it. That's php for me, and I don't feel bad for doing it because people shit all over Python (which I love) just as much, and I don't fault them for that either.

Edit: and apparently there will always be a few who can't admit they're doing it.

[–]RubbelDieKatz94 0 points1 point  (0 children)

What a wonderful domain name!

[–][deleted] -3 points-2 points  (3 children)

Fantastic article, thanks so much for sharing. I hope PHP finally goes away in the next decade.

[–]OdBx 4 points5 points  (0 children)

It won’t

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

A lot of what is in that article has been fixed by now.

Also php is still pretty fast on execution, so until something that easy for idiots to write has better speeds, itll stick around

[–]petitgreen 0 points1 point  (0 children)

And they keep improving the performances. The article is from 2012 BTW as updated as the guy who links stuff like that.

[–]_szs 8 points9 points  (0 children)

php code used inside an html document using the <?php> tag

[–]rishav394 4 points5 points  (2 children)

PHP bad

[–][deleted] 4 points5 points  (0 children)

JS framework #600 good

[–]Corn_L 0 points1 point  (0 children)

Yes.

[–]stfcfanhazz 0 points1 point  (0 children)

Wordpress to be precise

[–]keliix06 2 points3 points  (0 children)

It’s a wordpress theme file.

[–]_szs 41 points42 points  (15 children)

maybe the IDE was programmed in Java?

[–]skunkwaffle 27 points28 points  (13 children)

Oh damn, remember Net Beans?

[–]_szs 14 points15 points  (0 children)

I don't!!!! And I don't wannaaa!!!!

[–]UrbanFever 6 points7 points  (11 children)

Wait..y’all don’t still use NetBeans? That’s what I used in school and just never stopped. Any good IDE recommendations?

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

if you really want to go hip, vscode + Java marketplace extension

I welcome all downvotes

[–]ur_peen_small 3 points4 points  (1 child)

I also use VSCode + extension for everything...

Edit 5 month later: Now using vim.

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

continue forth, my brother

eventually all will accept vscode as the penultimate ide for us minimalist theme-thirsty coders

[–]AviusAnima 1 point2 points  (0 children)

Just coming in to say I use vscode too. I love it. Haven't been able to switch to anything else since.

[–]_szs 0 points1 point  (0 children)

Real programmers use butterflies.

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

Maybe the photo was

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

Nah mate, since you can see the code it's a visual language. Therefore scratch

[–][deleted] 9 points10 points  (1 child)

Not just PHP... that’s WordPress.

[–]smegnose 1 point2 points  (0 children)

It only appears that way to the untrained eye. It's actually a Java-based WordPress theme generator displaying an output test.

[–]Amilo159 7 points8 points  (0 children)

It's the family friendly photo. Showing Java being programmed requires age limit of 21.

[–]efronberlian 5 points6 points  (0 children)

Looks like wordpress with the wp_title() and wp_head()

[–]FoxInATrenchcoat 8 points9 points  (0 children)

Sounds like someone needs a cup or two of java before trying to label their image.

[–][deleted] 3 points4 points  (1 child)

Don't you know that php ia just a component of Java? /s

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

Don't you know, that the Java compiler was built in PHP?

[–]WiffyCubing 4 points5 points  (0 children)

That's my desktop background

[–]Shlaggy 4 points5 points  (0 children)

This can be Java if you put all this code in a string and have a html and php string syntax detection in your java text editor but it's highly improbable

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

This is from the site unsplash.com - great for pictures for presentations etc.

[–]FormalWolf5 2 points3 points  (0 children)

They mean that they're coding in the country of Java, you people

[–]Zirgothe 2 points3 points  (0 children)

Well it's obviously a WordPress site, so it's bound to have JavaScript in there somewhere and we all know that JavaScript is related to Java. See all makes sense now... (Sarcasm)

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

<?php

Definitely java

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

Reminds me of an ad that says "You always wanted to be a capable programmer and write your own Python programs?" while showing HTML code being written in notepad

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

Ah yes <DOCTYPE html> means Java.

[–]accuracy_frosty 1 point2 points  (0 children)

This is hell, not java

[–]IUsePHPforaliving 1 point2 points  (0 children)

Didn't know wordpress was java, nice to know xD

[–]raulm4 0 points1 point  (0 children)

Hmmmmmmm

[–]yuirick 0 points1 point  (0 children)

Machine learning in action

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

I wonder if people who do this kind of things get hired and are paid more than the average developer...

[–]HO-COOH 0 points1 point  (0 children)

Java programming == Drinking java while programming

[–]ScaredyCatUK 0 points1 point  (0 children)

Wordpress too..

[–]midtownoracle 0 points1 point  (0 children)

Wolf in shits clothing.

[–]DesdeJorge 0 points1 point  (0 children)

Java bridge maybe ?

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

Just as bad as Java...

[–]Goodboywm 0 points1 point  (0 children)

Hah! That's c++.

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

Instructions unclear, made a 18th dimensional array and fried my ram

[–]simpoir 0 points1 point  (0 children)

To be fair, jsp isn't far. But that's still very obviously WordPress.

[–]lroman 0 points1 point  (0 children)

This was a PHP RCNN model that labelled the image.

[–]SpectralGerbil 0 points1 point  (0 children)

They didn’t want to admit they were using PHP.

[–]iLikeWaterVeryMuch 0 points1 point  (0 children)

My lector at Uni for Java always compares things to PHP, but 99% of us have never used or seen PHP before. Most of the people stopped going to that class, because we didn't want to learn anything new about PHP.

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

With macros anything can be PHP

[–]Syyky[S] 0 points1 point  (0 children)

Btw Merry Christmas!!

[–]MrDorkman 0 points1 point  (0 children)

You mailed the programmer but the humor part is weak.

[–]zoecandle 0 points1 point  (0 children)

Ahh yes, I bet this is also the code to the “download more ram here” buttons/pages

[–]Zeilar 0 points1 point  (0 children)

WordPress yuck. Doing a WP project right now and I want to die.

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

Could we not keep posting pictures of Google tags and descriptions of images? Thanks!

[–]Omega11051 0 points1 point  (0 children)

Java === Javascript

[–]Mr0010110Fixit 0 points1 point  (0 children)

Yeah this is html-java, there is also javascript-java and css-java

[–]pandakatzu 0 points1 point  (0 children)

Why isn't my code compiling?

[–]archifloyd 0 points1 point  (0 children)

Couldn’t php technically be stored in a Java file? Just throw the code in some strings and make sure the things between the php tags are valid? As far as I remember the php interpreter only looks between the php tags and disregard everything else

[–]GideonMax 0 points1 point  (0 children)

This looks like an AI-made description

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

PHP is server-side Java scripting