Live data from Hacker News

PHP 7.3.0 alpha 1 Released

php.net

11–20 of 49 posts

Re: PHP 7.3.0 alpha 1 Released

#13

Maybe I should take this as an opportunity to write a new app in PHP. I've been too deep into Go for awhile to have any sense for where PHP's at these days.

If you want to be cool, write Go. If you want to make money, write PHP.

Are you implying PHP devs are earning more than Go devs?

Re: PHP 7.3.0 alpha 1 Released

#14
post #13

Earlier quoted context omitted.

If you want to be cool, write Go. If you want to make money, write PHP.

Are you implying PHP devs are earning more than Go devs?

I don't speak for the parent (and I don't think the assertion is correct), but I will say that PHP jobs outside the valley are plentiful. A large percentage of those are legacy maintenance or development on unpleasant platforms such as WordPress or Magento, but there is still a lot of challenging and enjoyable work being done using PHP, and the improvements to the language over the last few years have made many of the old arguments against the language obsolete.

Re: PHP 7.3.0 alpha 1 Released

#16
post #13

Earlier quoted context omitted.

Are you implying PHP devs are earning more than Go devs?

I don't speak for the parent (and I don't think the assertion is correct), but I will say that PHP jobs outside the valley are plentiful. A large percentage of those are legacy maintenance or development on unpleasant platforms such as WordPress or Magento, but there is still a lot of challenging and enjoyable work being done using PHP, and the improvements to the language over the last few years have made many of th…

I'm asking about salary ranges specifically.

Re: PHP 7.3.0 alpha 1 Released

#17
Notable New Stuff in Core

- list() Reference Assignment

  https://wiki.php.net/rfc/list_reference_assignment
this allows using list() function for reference assignment instead of just assigning to new variables

- Flexible Heredoc and Nowdoc Syntaxes

  https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes
This makes using HEREDOC blocks much more friendly looking for spaces/tab usages in code

Other stuff

Just a lot of updates and bugfixes to many extensions

Re: PHP 7.3.0 alpha 1 Released

#18
I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn't surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn't used real_escape_string, etc.

What was surprising was how hard I had to dig now, 7 years later to find out how to do things correctly in PHP 7. Searching for what I thought should be fairly common things to do seemed to bring up all of the old articles that I first mislearned from, and it was really hard to find things like what the best way to iterate over a mysql result set was.

Honestly, after putting my 7 years of experience to practice, the final code didn't look half bad, but I don't think I'll ever end up using PHP since it still appears to be very easy to write bad code. Maybe if a definitive guide for how to write good PHP shows up, I'll give it a shot (or maybe I'll just try Hack).

Re: PHP 7.3.0 alpha 1 Released

#19
post #13

Earlier quoted context omitted.

If you want to be cool, write Go. If you want to make money, write PHP.

Are you implying PHP devs are earning more than Go devs?

That's an interesting question.

My impression (based on nothing more than anecdotal industry experience) is that there are far more jobs for PHP globally, and that the average starting salary for a new PHP dev is going to be considerably lower than the average starting salary for a new Go dev.

However, the number of stable senior PHP dev jobs with high salaries is also likely far higher than for Go.

I imagine it's easier to earn more as a new Go developer if you can get a job doing it, but it's easier to steadily get raises as a PHP developer.

Re: PHP 7.3.0 alpha 1 Released

#20
post #18

I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn't surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn't used real_escape_string, etc. What was surprising was how hard I had to dig now, 7 ye…

There are resources for that...

http://www.phptherightway.com is often recommended in my circles.

Post reply on HN