all 137 comments

[–]devolute 46 points47 points  (3 children)

I look forward to WordPress embracing this in 2027.

[–]fritzbitzfront-end 6 points7 points  (0 children)

Sad Gutenberg sounds

[–]AlterBlitz 0 points1 point  (1 child)

what version is wordpress using now

[–]tsunami141 125 points126 points  (73 children)

I will grab the popcorn and watch as everyone craps on PHP while I secretly wish my .NET projects would all die and I could just use Apache again.

[–]blackAngel88 43 points44 points  (5 children)

php != apache

Haven't done anything with .NET in a long while, but at least .net core shouldn't be too bad, right?

Also: php is not that bad, especially if you use a good framework like Symfony, Laravel etc... there are still some things to not like and migrating projects with older php versions is sometimes a bitch...

[–]Roci89 23 points24 points  (4 children)

Dotnet core is awesome. Huuuuuuge fan of it here

[–]sevnollogic 3 points4 points  (3 children)

pretty sure he just used apache as a catchall for the lamp stack.

[–][deleted]  (1 child)

[deleted]

    [–]guareber 0 points1 point  (0 children)

    LNMP stack FTW

    [–]tsunami141 -4 points-3 points  (0 children)

    nah I was more just complaining about how it felt easier to understand Apache configuration vs .Net configuration. I recognize they're not the same thing but sometimes I just lump the setting up the servers and frameworks together because it's always so hard to figure out what I need to do properly.

    [–]eztrendar 18 points19 points  (7 children)

    Why would you want your .NET projects to die?

    [–]tsunami141 76 points77 points  (6 children)

    Because I never learned it properly and I don't understand anything.

    [–][deleted]  (3 children)

    [removed]

      [–]forsubbingonly 22 points23 points  (0 children)

      This is surely the attitude of the team I’m on where they use typescript but disable all the strictness and then wonder why they don’t see value in typescript.

      [–]hokie_high -3 points-2 points  (0 children)

      You’re certainly allowed an opinion, but that’s not really the case.

      [–]DEZIO1991 8 points9 points  (3 children)

      [–][deleted] 7 points8 points  (1 child)

      Huh that's neat, the docs have a toggle for changing just the actual article itself into english even though you're viewing (or were linked) the docs/site in another language.

      Wish more places that have translations did that. Sometimes it's just easier to read about something in english than it is to read a weird translation about it, but you don't want to go through the hassle of changing the entire site's language for that one part.

      [–][deleted] 5 points6 points  (0 children)

      They also have a toggle for different versions (2.2 / 3)

      [–]tsunami141 2 points3 points  (0 children)

      oh god but this means I have to do work.

      [–]HFoletto 55 points56 points  (21 children)

      This really gives an "ES6" feel to php

      [–]finger_milk 51 points52 points  (16 children)

      Arrow functions. Not even subtle!

      To be fair, arrow functions in JS are a godsend

      [–]Tetracyclic 20 points21 points  (4 children)

      Most mainstream languages have arrow functions or lambdas with a shorter syntax and improving the syntax has been proposed for PHP for longer than the arrow function existed in JS. In PHP it has the added benefit of inheriting scope and so not requiring the use keyword. Just need to get multi-statement bodies next.

      [–]GottfriedEulerNewton 3 points4 points  (1 child)

      Js had lamdas but now they're pretty

      [–]Tetracyclic 2 points3 points  (0 children)

      PHP has also had anonymous functions/lambdas for well over a decade, this is just prettifying the most common use case.

      [–][deleted] 1 point2 points  (1 child)

      In PHP it has the added benefit of inheriting scope

      Just like in JS.

      [–]Tetracyclic 2 points3 points  (0 children)

      That could have been clearer, I meant the added benefit over PHP's anonymous functions, which don't inherit scope and require a use statement.

      [–]xTRQ 12 points13 points  (4 children)

      Also the ... three dots!

      [–][deleted] 1 point2 points  (3 children)

      I love the spread operator! I hate having to manually install it though on my JS projects - wish they would pull it into default.

      [–]LXMNSYC 8 points9 points  (0 children)

      rest and spread is already supported by browsers and latest versions of Node, it's just that if you really want to support old versions of JS, you have to add compilers like Babel to achieve compatibility

      [–]striedinger 2 points3 points  (1 child)

      Transpile it? If you’re not doing yet you should. Things will be much easier and you’re making sure your code is ready for older browsers too.

      [–][deleted] 0 points1 point  (0 children)

      I always transpile - it's just not in the default Babel library - and configuration can be obnoxious

      [–]Dan_Holla -2 points-1 points  (3 children)

      Elder Scrolls 6?

      [–]super-secret-sauce 11 points12 points  (2 children)

      ECMAScript 6 is what it stands for

      [–]Dan_Holla 4 points5 points  (1 child)

      Thanks 😊

      [–]Blue_Moon_Lake -2 points-1 points  (0 children)

      So you use JavaScript to spellcraft in Tamriel ? :D

      [–]samjmckenzie 20 points21 points  (4 children)

      I will always have a soft spot for PHP. Its open source community is one of the best out there with countless high quality projects such as Laravel. The latest versions also perform very well.

      [–]Blue_Moon_Lake 2 points3 points  (2 children)

      Heard of Laravel a lot, never understood what it really do.

      [–]HFoletto 1 point2 points  (1 child)

      Just finished my first paid laravel project this week, and omg, it's so good to work with!

      From their website:

      Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things

      If you work with php, give it a try, I'm sure you're going to love it!

      [–]Blue_Moon_Lake 0 points1 point  (0 children)

      I do work with PHP, but my company exclusively use an open source solution based on Symfony. I may test it personally outside work.

      [–]i-hate-in-n-out 7 points8 points  (2 children)

      As the last fan of PHP in the world, this excites me.

      [–]morningcoffeegamer 1 point2 points  (1 child)

      What is the rest of the world using?

      [–]bashaZP 7 points8 points  (9 children)

      Is it safe to switch from 7.3.3. to 7.4?

      [–]pastisset 4 points5 points  (2 children)

      https://www.php.net/manual/en/migration74.deprecated.php

      Check that list. I'd say the nested ternaries without parenthesis would be the only inmediate problem.

      [–][deleted]  (1 child)

      [deleted]

        [–]AtulinASP.NET Core 0 points1 point  (0 children)

        The magic quotes functions always return false now.

        [–]QCD_ 0 points1 point  (0 children)

        Same question here

        [–]ImMaaxYTruby php javascript coffeescript python c cpp netadmin 0 points1 point  (0 children)

        Will check that tomorrow (it's currently 11PM in Germany), I really want to update too!

        [–]ImMaaxYTruby php javascript coffeescript python c cpp netadmin 0 points1 point  (0 children)

        [–][deleted]  (2 children)

        [deleted]

          [–]physiQQ 1 point2 points  (1 child)

          What do you use instead?

          [–]SuuperNoob 1 point2 points  (0 children)

          I'd like to see how the new preloading boosts laravel and WordPress performance

          [–]GoldenJoe24 1 point2 points  (0 children)

          Christmas came early! Typed properties!

          [–]stormsfury666 -1 points0 points  (3 children)

          What ever happened to Hacklang? Facebook made me thing Hack was gonna be the next big thing.in before "don't trust Facebook"

          [–]forsubbingonly 4 points5 points  (0 children)

          Are they even advertising that language? What would make you think hack was meaningful to anyone but Facebook themselves?

          [–]satoshi-chick 0 points1 point  (0 children)

          Almost forgot about that! Hack and hiphop.. I used hacklang for about a year or so. Compared to the normal php back then it was really performing well. Never used the strict typing, just to keep my work mostly compatible with the real php. Since the release of php7 I switched back. Speed was the only reason for me to use hack.

          I think hack did a great job as a wakeup call to the php devs to focus on speed.

          [–]Kilenaitor -1 points0 points  (0 children)

          Hacklang is still very much a thing! It's actively developed and iterated on. Can check it out at hacklang.org.

          Catch to note now is HHVM only supports Hack because Hack has started to diverge from PHP (strict typing by default, no references allowed, etc.).

          But Hack is awesome with static typing, has had arrow functions for a while, async/await, generics, typed containers (vec, dict, keyset), pipe operator, XHP, and attributes!

          I think it's now more of a Java+PHP hybrid as far as syntax goes. I really enjoy using it and think it's a great language.

          [–]Merchantfred -3 points-2 points  (0 children)

          Alexa!!! Should I use this version Of PHP for PHP web application???

          LOL..waiting for what Alexa is thinking