Live data from Hacker News

PHP 7.3.0 alpha 1 Released

php.net

21–30 of 49 posts

Re: PHP 7.3.0 alpha 1 Released

#21
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…

http://www.phptherightway.com/ attempts to do just that - can't vouch for its effectiveness, but is a resource that was at least updated for PHP 7...

https://github.com/codeguy/php-the-right-way

Re: PHP 7.3.0 alpha 1 Released

#22
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…

[deleted]

Re: PHP 7.3.0 alpha 1 Released

#23
post #16

Earlier quoted context omitted.

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.

StackOverflow's developer survey[0] would suggest that the original comment was incorrect. But I think it's an incomplete story for the reasons I and other respondents mentioned. The large supply at the lower end of the market depresses salary, but as one rises, salaries are in my experience comparable to any other widely-used language.

[0] https://insights.stackoverflow.com/survey/2018/#work-salary-...

Re: PHP 7.3.0 alpha 1 Released

#24
post #16

Earlier quoted context omitted.

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.

That might not be a good measure, take a language related to PHP like Hack. The min salary for this language will be six figures because the only company that uses it is Facebook. PHP is a widely used language that your not going to have problem finding a job with.

Re: PHP 7.3.0 alpha 1 Released

#25

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…

> https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes

Not only does it let you indent the closing marker, but however much you indent it causes that much white space to be trimmed from the enclosed text. Heredocs are now perfect.

Re: PHP 7.3.0 alpha 1 Released

#26
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…

This is also a initiative to improve this situation:

https://paragonie.com/blog/2018/01/our-ambitious-plan-make-i...

Re: PHP 7.3.0 alpha 1 Released

#27
post #10

what does it break from 7.2? I love how every php upgrades requires me to find mysqli-type crap that breaks all my customers' code.

Seems to be mostly fixes and incremental improvements. Here's the only breaking changes I see in NEWS:

. Removed support for BeOS. (Kalle)

. Removed support for ODBCRouter. (Kalle)

. Removed support for Birdstep. (Kalle)

So, if your customers are still using BeBoxes, you might have a problem.

Re: PHP 7.3.0 alpha 1 Released

#28

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.

> If you want to make money, write PHP.

Eh, if we're strictly speaking about making money, then Java is the way to go. It'll open up your career opportunities much farther than PHP.

Re: PHP 7.3.0 alpha 1 Released

#29
post #15

- JSON: . Added JSON_THROW_ON_ERROR flag. (Andrea) A blessed day, prior to this, json_decode would simply return null on error.

Absolutely, before you had to do some check like:

if(null === $data = json_decode($json)) throw new Exception();

Post reply on HN