News for hackers. Stuff that matters.
Re:PHP 8 to Add a JIT by lugg on Sunday March 31, 2019 @06:17PM (#19538790)
I still use PHP a lot.

PHP's problems are largely user driven.

What drove you away in 2004 is likely still there.

The community is still full of people who have no idea.

Laravel is still king.

Noun driven OO is still perceived as a good idea.

But on the flip side, the language has some nice features now and performance got a big boost too.

Still a couple of things missing but it's getting there.

Re:PHP 8 to Add a JIT by h1d on Sunday March 31, 2019 @06:55PM (#19538981)
Not too serious but I want to stop using a language still forcing me to type semi colons.

CSS -> Stylus. I don't even have to type brackets and colons and not just semi colons.

JS -> JS (TS). Some people may not be aware but you can fully write JS by omitting semi colons. (Except on a few occasions* but I can write a project without one just fine and decent editor will warn you when you're supposed to have one, like IntelliJ and derivatives. Configure it to not prefer semi colons and 1 shortcut key to reformat the code and all stripped.)

PHP -> Ruby, Python, JS all don't ask you for semi colons. Array expression is also too verbose in PHP.

Java -> Kotlin.

HTML -> Pug/Slim/Etc. While there's no semi colon, the verbosity of HTML is insane, people will appreciate the simplicity of template engines like Pug and never look back.

Bash -> Bash. They didn't have one decades ago...

* https://flaviocopes.com/javascript-automatic-semicolon-inser... (some random blog explaining JS semi colons)

Re:PHP 8 to Add a JIT by stephenr on Sunday March 31, 2019 @10:49PM (#19540027)
> I want to stop using a language still forcing me to type semi colons.

Fuck it, go one step further and stop using languages that expect you to use any formal syntax. Just write down "Computer do this thing! Now, good and bigly like!" and then wait for it to happen.

Of all the fucking complaints about a language "requires semicolons" is the most ridiculous thing I've heard (and no you're not the first place I've heard it, but it's still as ridiculous now as it was the first time I heard it).

> Ruby, Python, JS all don't ask you for semi colons.

Except, JS does require semicolons, it just happens to be able to insert them for you in some situations.

> Array expression is also too verbose in PHP

Array syntax in PHP is the same as in JS: `['foo', 'bar', 'bar'];`. Oh that nasty semicolon is the "verbose" part I bet?

Re:PHP 8 to Add a JIT by h1d on Sunday March 31, 2019 @10:52PM (#19540034)
> Array expression

I meant as in

$hash['member']

vs

hash.member

Re:PHP 8 to Add a JIT by stephenr on Sunday March 31, 2019 @11:00PM (#19540074)
Well that isn't even an Array in Javascript, so already I'm beyond caring what you mean.
Re:PHP 8 to Add a JIT by halfnibble on Monday April 01, 2019 @04:40AM (#19541538)
I understood that "array expression" meant "associative array", and that the closest equivalent in JavaScript is an Object. But I don't consider myself a PHP guru.
Re:PHP 8 to Add a JIT by lugg on Sunday March 31, 2019 @08:58PM (#19539547)
I'm a big fan of standardjs. Beats prettier and the rest. Takes more of a go fmt approach.

While debating myself on whether to learn rust or go next I fell into clojure. I'll probably pick go up next and then rust.

Re:PHP 8 to Add a JIT by kibibu on Sunday March 31, 2019 @06:47PM (#19538934)
Composer is new since 2004, which is pretty great