News for hackers. Stuff that matters.
Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by smt88 on Saturday July 29, 2017 @11:36PM (#14884314)
It's not a terrible experience, but it is truly baffling that anyone would start a project in it today. A good static type system is too useful and important.
Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by pmontra on Sunday July 30, 2017 @01:12AM (#14884531)
That's the last thing I look for when evaluating a new language.

Well, actually I came to dislike static typing so much that's a big point against languages IMHO. I concede that it would have saved me time with data occasionally going to the wrong argument/method/function but every time I understand that I'll have to type almost useless stuff like Map(<String>,<String>) I hit back and return to HN home page. Moving to dynamic typing was as liberating as moving away from malloc/free to garbage collection.

I think I could stand languages with implicit typing. All I want is not to have to annotate my code. I'm happily paying some time and tests for that.

Btw, I don't like people downvoting to express disagreement so I'm upvoting you. My +1.

Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by noway421 on Sunday July 30, 2017 @09:45AM (#14885908)
Thank you for the insightful comment, all of a sudden static typing increasing coding friction makes sense.
Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by micaksica on Saturday July 29, 2017 @11:53PM (#14884372)
> A good static type system is too useful and important.

What? A whole lot of web apps these days are built in Python, Ruby, or JavaScript, none of which are statically typed languages. Do you mean a strong type system?

Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by rubyn00bie on Sunday July 30, 2017 @12:25AM (#14884438)
I assume mean strongly typed and I can agree with them to an extent. While it does add slight overhead when writing code (not enough to matter I think) it does help eliminate a bunch of errors/edge cases you'd have to unit test for in an dynamically typed language.

Though as I always say: use the right tool for the job. And for a lot of jobs dynamically typed languages and framework offer a lot to the developer.

Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by deevus on Sunday July 30, 2017 @01:15AM (#14884536)
There's no concrete definition of strongly typed, either.

https://stackoverflow.com/questions/2690544/what-is-the-diff...

Re:Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster by jjeaff on Sunday July 30, 2017 @01:32AM (#14884564)
I still do my saas projects all in PHP. I mean, I'm not building NASA control software it anything, but I have incurred very few problems due to dynamic typing. Not to mention the fact that I can hire php devs for half of what a ruby dev wants these days.