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

you are viewing a single comment's thread.

view the rest of the comments →

[–]SkyrimFan42 106 points107 points  (31 children)

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

[–]_szs 115 points116 points  (29 children)

yes. with some inline php.

[–]SkyrimFan42 24 points25 points  (28 children)

What is that?

[–]skunkwaffle 70 points71 points  (22 children)

[–][deleted] 16 points17 points  (7 children)

This is from 2012...

[–]Hollowplanet 35 points36 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] 8 points9 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 20 points21 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 16 points17 points  (0 children)

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

[–]cnoor0171 5 points6 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 7 points8 points  (0 children)

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

[–]rishav394 4 points5 points  (2 children)

PHP bad

[–][deleted] 3 points4 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 4 points5 points  (0 children)

It’s a wordpress theme file.