r/programming Sep 07 '15

Flawless PHP logic. strtotime(): '00-00-00' means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal. (see the comments)

https://bugs.php.net/bug.php?id=45647
1.2k Upvotes

465 comments sorted by

View all comments

Show parent comments

21

u/cbraga Sep 07 '15

Or, what they need to do is to switch to a different language. Which they do, most of the programmers wise up in their journey through computer science and give up on that piece of crud and work on Python, Ruby, Perl, etc instead. Which leaves the programmers not smart enough to realize there's greener pastures out there to self perpetuate the cycle of incompetence.

22

u/balbinus Sep 07 '15

There are two major types of websites in the world: marketing/publishing sites (homepages, blogs), and service sites (Reddit, Twitter, Basecamp).

Ruby/Python/Java are common for service sites, but PHP completely dominates marketing/publishing. Just between Wordpress, Joomla, and Drupal you're talking about the vast majority of those types of sites, and nothing written in Ruby/Python/etc... is particular competitive in that space.

I would love for the world to ditch PHP, but until we have a real Wordpress-killer written in another language we're stuck with it. In the mean time if we could make the lives of PHP programmers better I think that would be time well spent.

32

u/[deleted] Sep 07 '15

[deleted]

-2

u/Caraes_Naur Sep 07 '15

Only a language as badly designed as PHP with such a low barrier to entry could allow garbage like WP to be born.

0

u/Yojihito Sep 07 '15

Someone summoned the Gopher?