Post Acj7qfgfeTbs2OFQWG by amarok@mastodonczech.cz
 (DIR) More posts by amarok@mastodonczech.cz
 (DIR) Post #AciEBjD49hpTbureYi by worldsendless@qoto.org
       2023-12-11T21:28:52Z
       
       0 likes, 0 repeats
       
       We borrowed some #PHP code from #StackOverflow that had nested ternaries without parenthesis. Turns out that as a fatal error in PHP 8 on our production server but not on the earlier PHP on our development server. Wow... a language with breaking syntax changes. I'll stick with sound #Clojure, where you never have too few parenthesis.
       
 (DIR) Post #AciEpXyDMZzCKpu9h2 by cesaro@fosstodon.org
       2023-12-11T21:36:04Z
       
       0 likes, 0 repeats
       
       @worldsendless at work we have both PHP and Clojure, and recently underwent a migration to PHP8. It was a royal pain, and I hope to transition away from PHP so that we don't have to migrate to another major version.Don't ask me how many times we've upgraded our Clojure version or the underlying JVM, as it's so uneventful I don't remember.
       
 (DIR) Post #AciFx3g9y8TEewbavg by Crell@phpc.social
       2023-12-11T21:48:36Z
       
       0 likes, 0 repeats
       
       @worldsendless Turns out running different versions in dev and prod while copying and pasting code from Stack Overflow is a bad combination... 🙂
       
 (DIR) Post #AciK2bcTbc4bBlmcfg by arnan@mas.to
       2023-12-11T21:52:13Z
       
       0 likes, 0 repeats
       
       @Crell @worldsendless Sounds like a case of poorly written PHP to me 🤷🏻‍♂️
       
 (DIR) Post #AciK2cqL3Ykuz3HCuu by kevin@dice.camp
       2023-12-11T22:23:46Z
       
       0 likes, 0 repeats
       
       @arnan @Crell @worldsendless Nested ternaries deserve to be broken.
       
 (DIR) Post #AciK2dmTZPGBtMTdXE by worldsendless@qoto.org
       2023-12-11T22:34:27Z
       
       0 likes, 0 repeats
       
       @kevin @arnan @Crell I agree! I'm just surprised they got under my radar. They are like a diabolic cond wannabe
       
 (DIR) Post #AciKA59SCmYgo7lzqy by worldsendless@qoto.org
       2023-12-11T22:35:49Z
       
       0 likes, 0 repeats
       
       @Crell No kidding! It's had an open ticket to match their versions for months now, but upgrading the PHP version on shared servers is complicated. I definitely miss our solid Clojure setups.
       
 (DIR) Post #AciKu5xNXl6Ocr48cy by Crell@phpc.social
       2023-12-11T22:44:05Z
       
       0 likes, 0 repeats
       
       @worldsendless @kevin @arnan And were even broken in earlier PHP versions, because the default grouping logic was backward from literally every other language that has ternaries. 🙂   That's why it changed to make the () required, so that the language could transition to a more sensible grouping over time.
       
 (DIR) Post #AciLPN2k4AVoazUIgi by Crell@phpc.social
       2023-12-11T22:49:43Z
       
       0 likes, 0 repeats
       
       @worldsendless containerizwd dev envs FTW.
       
 (DIR) Post #AciLj6sRsfYeFW5MZs by arnan@mas.to
       2023-12-11T22:52:21Z
       
       0 likes, 0 repeats
       
       @Crell @worldsendless @kevin yea I was gonna say, isn't that change just a move toward better structure and usability that has been ongoing since php 5 or so? Take out ambiguity and loose code standards and such ...
       
 (DIR) Post #AciLj7kKeKewwdIOZ6 by worldsendless@qoto.org
       2023-12-11T22:53:20Z
       
       0 likes, 0 repeats
       
       @arnan @Crell @kevin maybe someday it will become a lisp!
       
 (DIR) Post #AcixefJSDeajrM1bEG by chaos0815@phpc.social
       2023-12-12T05:58:18Z
       
       0 likes, 0 repeats
       
       @worldsendless don’t forget to return the borrowed code…
       
 (DIR) Post #Acj7qfgfeTbs2OFQWG by amarok@mastodonczech.cz
       2023-12-12T07:52:30Z
       
       0 likes, 0 repeats
       
       @worldsendlessPHP had some flaws and problems so it was simply necessary to do a radical change at some point. Everything has been announced in advance, and there's always been a "deprecated" flag in advance to warn programmers. It's just like it is, I'm glad the PHP team finally released #PHP 8 where almost everything behaves like expected (and now the language is far better than #JavaScript, IMHO).
       
 (DIR) Post #AcjxSjDI5MIFdkPT6W by worldsendless@qoto.org
       2023-12-12T17:30:53Z
       
       0 likes, 0 repeats
       
       @Crell I did a bit of Docker and liked it, before we were able to consolidate to the #JVM. Now JVM is my #container (since I don't go deep and actually customize it besides memory specs)
       
 (DIR) Post #AcjxzBQIjmCCOjyGie by worldsendless@qoto.org
       2023-12-12T17:36:45Z
       
       0 likes, 0 repeats
       
       @chaos0815 We were too late to take it back. It died under our fingertips.
       
 (DIR) Post #Acjy5FDXXlOtu2tO1w by worldsendless@qoto.org
       2023-12-12T17:37:51Z
       
       0 likes, 0 repeats
       
       @amarok !!! What leads you to think it better than JS? (not a JS lover here, but historically I hate it less than old PHP)
       
 (DIR) Post #Ack2yje2W4jg120EeO by Crell@phpc.social
       2023-12-12T18:32:40Z
       
       0 likes, 0 repeats
       
       @worldsendless @amarok PHP is now effectively a typed language. JS is not. (TS doesn't count.)JS async is just a mess to work with. #SorryNotSorryThe Packagist ecosystem is vastly more robust and reliable than npm/yarn/whatever. Oth still have warts from their youth, and both have improved dramatically in the last decade. But I'd still rather work in PHP than JS most of the time for the type system alone.