News for hackers. Stuff that matters.
Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @06:53AM (#10662406)
Have you ever worked with php? I have only slightly and it was truly horrible. The library is a complete rubbish. You couldn't create worse one if you tried.

The language development is bad. Some developers are bad. Many users are bad. Does these points make the language bad? Yes. New features are incoherent and seemingly random, issues pop in and out (and back in) because tests simply fail, there are unexplainable security issues, documentation is bad, and if you look for any help (documentation comments, stackoverflow) you meet the users and their shitty tips.

Response to every criticism is "you just need to learn something". Does that make a good language? No. It's precisely what makes it bad.

PS: There's a nice subreddit for fun and laughs /r/lolphp - there are continuously new things as the language evolves, so the shittiness is not going away

Re:PHP 7 Released by marklgr on Wednesday December 02, 2015 @07:20AM (#10662498)
PHP is the language many people love to hate; I guess some of them like the idea of being able to point the black sheep of web development, so that they can tell "maybe we have some flaws, but at least we're not one of these PHP shops".

https://en.wikipedia.org/wiki/Splitting_%28psychology%29

Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @07:34AM (#10662548)
> PHP is the language many people love to hate

Do you think there's a reason for that? Maybe a direct one? That it's a bad language for example? Why would it need to be anything more complicated than that.

So I don't think your guess is accurate. It's simply a bad language on its own. No need to compare it to anything. And I don't think anyone can deny that, no one will honestly say that "php is a good language". You can say it has some good features, or that it's good for certain tasks, or perhaps that it's better.. but that's all.

Re:PHP 7 Released by joesmo on Wednesday December 02, 2015 @12:14PM (#10664224)
I think PHP is a great language, not just a good one, and its competitors like Python and Ruby offer little to nothing over PHP (and vice-versa). They're all in the same boat. Same programming style (OOP), same constructs, same runtime models (interpreted, JIT). I'm so fucking tired of people who have not programmed in PHP claiming anything, let alone that it's a bad language. I can make that claim about any language currently in existence with plenty of "evidence" to back it up, but my purpose here isn't to annoy. The only thing I can deduce from posts like this is that people lash out against PHP because they get off on being closed-minded and trolling others.
Re:PHP 7 Released by marklgr on Wednesday December 02, 2015 @07:44AM (#10662592)
To me, it's a so-so language, with some bad parts, some ok. On the plus side, it's easy to pick up, and it gets the job done for many projects. Perhaps it's a bit like the Ikea of programming languages, if you will--no the best of furniture for sure, but when you need a table and some chairs with little efforts, it's nice to have, and they're not horrendous unless you couldn't build them correctly.
Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @08:00AM (#10662647)
I like the IKEA parallel as IKEA is cheap. So was php (to host), hence the popularity I guess. And as a result of that, there are lots of developers.. and many equals cheap. And the vicious circle continues. Doesn't make it a good language :)

(To be honest, I like IKEA, and I don't think it suck)

Re:PHP 7 Released by jacquesm on Wednesday December 02, 2015 @08:14AM (#10662718)
> To be honest, I like IKEA, and I don't think it suck

Ikea sucks. Quite a bit of the furniture is just painted cardboard, the quality is absolutely horrible. It looks ok but 'under the hood' it is terrible. It is throwaway furniture, the very opposite of sustainable.

Re:PHP 7 Released by untog on Wednesday December 02, 2015 @09:58AM (#10663277)
Weird, I've been using my IKEA bed, wardrobe and drawers for many years now and they're fine. Maybe I'm just happy to make do with convenience - like many PHP developers.
Re:PHP 7 Released by jacquesm on Wednesday December 02, 2015 @10:21AM (#10663430)
The intersection of the sets 'Ikea furniture owners', 'People that think Ikea furniture is low quality' and 'PHP programmers' isn't empty.
Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @11:18AM (#10663829)
It's interesting how a discussion can end, seriously, what a quote :)
Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @08:28AM (#10662787)
Cardboard furniture is great for moving. And for some pieces of furniture is perfectly OK (if you can stand the massive look).

They do "regular" furniture as well, not sure about its quality though.

Re:PHP 7 Released by jacquesm on Wednesday December 02, 2015 @08:32AM (#10662801)
> Cardboard furniture is great for moving.

It isn't because moving implies taking stuff apart and putting it back together again. As you'll find after your move screws won't catch any more, some of your furniture will have been compressed (holes in table surfaces? WTF?, yes this actually happened to me less than 3 months ago). Surface finish is 1/10th of a mm so it'll scratch super easy.

That's their 'regular' furniture, I'm not sure if they have anything better either. Ikea put a whole raft of companies out of business with cheap and good stuff, once they achieved market dominance they dropped the quality they are selling to something horrific.

Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @09:15AM (#10663002)
My "cardboard" furniture has solid blocks where screws go. Not wood, but some sort of plywood or something.

I have an ikea bed and rack that is made from wood. Lots of their furniture is regular wood. The cheap ones usually untreated.

Re:PHP 7 Released by jacquesm on Wednesday December 02, 2015 @11:48AM (#10664019)
It's called MDF. You can think of it as high density cardboard, it's mostly wood fibers and resin.
Re:PHP 7 Released by sneak on Thursday December 03, 2015 @02:06AM (#10668224)
Bad analogy; competent people put lots of time and effort into designing IKEA furniture.
Re:PHP 7 Released by Joeri on Wednesday December 02, 2015 @07:53AM (#10662618)
The library is C's fault. PHP is basically a scripting language around the standard C library. It's what makes it the fastest non-JIT scripting language, but also what makes it so inconsistent.
Re:PHP 7 Released by Retra on Wednesday December 02, 2015 @11:57AM (#10664095)
It's not really a matter of fault. If being a wrapper around C is a problem, it's a problem PHP designers made, for better or worse. That's not C's fault.
Re:PHP 7 Released by theseoafs on Wednesday December 02, 2015 @03:27PM (#10665566)
So are Lua and Python and Ruby, but they're not "inconsistent".
Re:PHP 7 Released by jack9 on Wednesday December 02, 2015 @06:09PM (#10666579)
That's a matter of perspective. Inconsistency is not objective and Lua has PLENTY of warts (46 max upvalues?)
Re:PHP 7 Released by echelon on Wednesday December 02, 2015 @10:45AM (#10663594)
Your tone is a little off for HN, but some of your points are good.
Re:PHP 7 Released by ams6110 on Wednesday December 02, 2015 @07:32AM (#10662542)
Most of your complaints also apply to JavaScript
Re:PHP 7 Released by rplnt on Wednesday December 02, 2015 @07:56AM (#10662629)
Such as? Maybe the part about users, but I don't see anything else (some I don't know to be fair).