BC
Caleb Porzio
@calebporzio 5ย months, 2ย weeks ago 427 views

๐ŸŽ‰๐ŸŽ‰ PHP 7.3 is here!

Here are the things I'm excited about.

๐Ÿš‚ Trailing commas in function/method calls!

This will certainly be a required styling choice for me. Same delightful benefits of trailing comma in multi-line PHP arrays, and JavaScript objects.
๐Ÿงต Less disgusting heredoc syntax!

Inlining heredoc strings in any way right now is grrrosssss. Now we get sensible capabilities. Everything that was wrong with it is now fixed!

(Ignore the bad syntax highlighting)
โ˜ ๏ธ Finally, not-so-silent json_decode error detection!

This really sucked before, now it just sucks a bit less (who wants to pass a 4th param and pass 2 default params first? (helper function anybody?)
๐Ÿ“œ Not horrible functions for getting the first and last item (or key) from an array!

Before you either strung a bunch of functions together or messed with internal array pointers. This is a much-needed improvement.
And that's all the things I care about! Check out this link more all the details in more depth: https://t.co/sXtgYRVN57

You May Also Like

Iโ€™m torn on how to approach the idea of luck. Iโ€™m the first to admit that I am one of the luckiest people on the planet. To be born into a prosperous American family in 1960 with smart parents is to start life on third base. The odds against my very existence are astronomical.


Iโ€™ve always felt that the luckiest people I know had a talent for recognizing circumstances, not of their own making, that were conducive to a favorable outcome and their ability to quickly take advantage of them.

In other words, dumb luck was just that, it required no awareness on the personโ€™s part, whereas โ€œsmartโ€ luck involved awareness followed by action before the circumstances changed.

So, was I โ€œluckyโ€ to be born when I wasโ€”nothing I had any control overโ€”and that I came of age just as huge databases and computers were advancing to the point where I could use those tools to write โ€œWhat Works on Wall Street?โ€ Absolutely.

Was I lucky to start my stock market investments near the peak of interest rates which allowed me to spend the majority of my adult life in a falling rate environment? Yup.