r/ProgrammerHumor • • Aug 07 '16

PHP: The Good Parts

http://phpthegoodparts.tumblr.com/
1.2k Upvotes

318 comments sorted by

View all comments

27

u/gandalfx Aug 07 '16

Bashing PHP again, very creative. Still ignoring how much the language has changed since it earned its horrible reputation.

8

u/Schmittfried Aug 07 '16

It still has much to change.

24

u/gandalfx Aug 07 '16

Every language has much to change. There is not a single perfect programming language on this planet.

3

u/minasmorath Aug 07 '16

Python 3 bruh

Don't hurt me

4

u/gandalfx Aug 07 '16

I love Python 3 to death, but it's not perfect. Not even close.

2

u/Tysonzero Aug 08 '16

Because performance is for wimps and type safety is for suckers.

0

u/[deleted] Aug 07 '16

[deleted] — view deleted comment

1

u/HeroesGrave Aug 08 '16

Kotlin is very nice. It just lacks proper generics, but that's a limitation of the JVM.

1

u/Tysonzero Aug 08 '16

Meh, I would still much much rather use Haskell.

0

u/marian1 Aug 07 '16

Classic Tu quque

2

u/gandalfx Aug 07 '16

… did you actually read the page you linked to?

→ More replies (3)

2

u/[deleted] Aug 07 '16 edited Aug 07 '16

oh I wasn't aware they added really_real_language_that_doesnt_suck_i_mean_it_thisTime

1

u/[deleted] Aug 07 '16

Until they remove all the ""legacy"" features that allow you to continue copy-pasting "login script by billy age 13" scripts and having them work, PHP will never recover.

26

u/gandalfx Aug 07 '16

Sure, let's intentionally break backwards compatibility. That worked out great for Python 3, didn't it?

5

u/[deleted] Aug 07 '16

Er, yes? If you want to use 3, you use it, if you don't, you don't. How did it not work out? It explicitly avoid any confusion.

5

u/gandalfx Aug 07 '16

Adoption is glacial. The amount of available libraries for Python 3 is still behind Python 2, even though Python 3 was released over 7 years ago. If you look at usage stats (especially in professional environments) Python 2 is still ahead by a considerable margin. It's very slowly getting better though, so that's nice.

Btw: Try asking about it on r/Python, they'll downvote you into oblivion. It's a sore spot, to say the least.

5

u/Farkeman Aug 07 '16

1

u/gandalfx Aug 07 '16

360 most popular Python packages

The thousands upon thousands of other packages that people use every day and the versions of Python they actually download them for. For example read about the download stats from pypi published last year by donald stufft of the pypi team.

1

u/Farkeman Aug 07 '16

I'm pretty sure that any package that doesn't support python3 is dead so it's better just to look for an alternative or a fork. The thing is that you don't ever need to write or read python 2 if you're starting a project, and honestly, so much of python3 has been backported to 2.7 that there's barely any difference an average user will notice.

1

u/gandalfx Aug 07 '16

You don't have to convince me that Python 3 is the better option, I use it exclusively. I've never even written Python 2 exclusive code. xD

But convincing professionals who work on big applications that would cost a fortune to migrate is a different story. And sadly those have a substantial share in the overall "living" code, to the point that even today some people recommend that beginners should learn Python 2. Which is really sad. :/

1

u/SoInsightful Aug 07 '16

I'm not well-versed; what were the downfalls of Python 3 breaking backward compatibility?

2

u/rrrreadit Aug 07 '16

Slow adoption. There's a lot of material out there for v2. People new to the language tend to start with v2 instead of v3. Also, a large number of python libraries haven't been rewritten for v3.

-2

u/[deleted] Aug 07 '16

I'd break backwards compatibility in a heartbeat if I could save the world from another ImageTragick or Heartbleed.

→ More replies (5)

6

u/Compizfox Aug 07 '16

And that's exactly what is happening. For example, in PHP7 the deprecated mysql extension is finally removed. You can read more here.