PHP 8.4 Is Good

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ •

  • @advertslaxxor
    @advertslaxxor 21 годину тому +302

    I
    eally\don't\like\the\backslash\in
    andom\places.

    • @kevas777
      @kevas777 21 годину тому

      u can use 'use':
      use I
      eally\don't\like\the\backslash\in
      andom\places;
      $someVar = new places();

    • @Exilum
      @Exilum 21 годину тому +29

      I don't like it and the dollars either but they have the merit of being different

    • @josecanciani
      @josecanciani 19 годин тому +12

      I don't like them, I have a policy to only use them in the imports, not in the rest of the file

    • @dealloc
      @dealloc 17 годин тому +11

      use Oh\You\Mean\This\Namespace? \Or\The\Global\Namespace?

    • @TheKodeToad
      @TheKodeToad 16 годин тому +3

      I actually find this a bit easier to read than I/really/don't/like/the/backslash/in/random/places

  • @lukewood2662
    @lukewood2662 14 годин тому +27

    The inspiring\guy\that\doesnt\even\use\the\language\but\wholesomely\gives\props\to\the\work - agen

  • @alexandrecolautoneto7374
    @alexandrecolautoneto7374 22 години тому +137

    Oh boy this new monitor position looks like prime is looking straight to me and im not ready for visual contact.

    • @yalnisinfo
      @yalnisinfo 21 годину тому +5

      are you sweating cus i am 😂

    • @danigui8573
      @danigui8573 20 годин тому

      just visual basic.

    • @kuunibyou7642
      @kuunibyou7642 9 годин тому

      Now you mentioned it, I knew something feels weird and different than the usual lol

    • @elcapitan6126
      @elcapitan6126 5 годин тому

      point to where he touched you

  • @DaveSmithHayes
    @DaveSmithHayes 21 годину тому +75

    Watching Prime try and understand the Autoloading mechanism in PHP will be super fun.

    • @nikonyrh
      @nikonyrh 20 годин тому +3

      My most recent experience is with PHP 5, but do you mean the spl_autoload_register? Apparently it is still around. At least I found the __DIR__ construct to be very simple to do relative imports, I wouldn't say Python's import mechanism is any better.

    • @neonbyte1337
      @neonbyte1337 19 годин тому +7

      @@nikonyrh he's talking about the PSR-4 autoloading mechanism

    • @elzabethtatcher9570
      @elzabethtatcher9570 18 годин тому +2

      Generally you don't, composer does all that for you. At some point in the past I implemented my own autoloader, that was fun.

    • @SkylearJ
      @SkylearJ 14 годин тому

      ​@@neonbyte1337PSR-4 still uses spl_autoload_register under the hood. The more things change the more they stay the same

    • @NoobSaibotVII
      @NoobSaibotVII 7 годин тому

      @@elzabethtatcher9570 Everyone implemented their own autoloader back in the day lolol.

  • @IslayAnderson
    @IslayAnderson 22 години тому +138

    PHP never left

    • @KewalTailor
      @KewalTailor 22 години тому +10

      Never will

    • @samarnagar9699
      @samarnagar9699 22 години тому +1

      Pho always right

    • @lazymass
      @lazymass 21 годину тому +1

      And that's the reason doing PHP means working with a lot of legacy codes that are pretty horrible. That was a reason I left it and it is the reason I am not coming back.

    • @Marcus-forsen
      @Marcus-forsen 20 годин тому +1

      it was always in the garbage can.

    • @user-cj1jk9dc3e
      @user-cj1jk9dc3e 20 годин тому +1

      But I leave, when I hear PHP

  • @RuvenssGWilches
    @RuvenssGWilches 6 годин тому +3

    For me the Array functions are one of the best features. They will be replacing so much functions out there, making the number of lines in each php file go down, and increasing the performance in general terms in old php apps.

  • @TroyNiemeier
    @TroyNiemeier 4 години тому +3

    What you're confused about at 4:00 is string HEREDOC syntax. It allows you to put raw string data into a buffer and the

  • @yarmgl1613
    @yarmgl1613 22 години тому +72

    php is now discount C# lol

    • @donnacasterr6223
      @donnacasterr6223 19 годин тому +9

      With weaker types

    • @evergreen-
      @evergreen- 16 годин тому +7

      These getters and setters features are straight from 2010.
      Good job PHP always behind the curve

    • @scott32874
      @scott32874 16 годин тому +1

      I was thinking this too.

    • @TehKarmalizer
      @TehKarmalizer 15 годин тому

      @@scott32874 same.

    • @SXsoft99
      @SXsoft99 14 годин тому

      @@donnacasterr6223declare(strict_types=1); on top of your class and you have type enforcement

  • @pesterenan
    @pesterenan Годину тому +1

    I don't know why, but Primeagen saying 'PHP' somehow summoned my Samsung Phone's assistant, Bixby... freaked the hell out of me hahah

  • @f.b.1665
    @f.b.1665 19 годин тому +8

    15:00 missed the chance to say "the PRAGMAgen" there smh

  • @Gornius
    @Gornius 14 годин тому +6

    4:16 - it's one of the ways to write string in PHP called nowdoc. It allows you to write text without worrying about escaping characters, so great for embedding HTML or JS. After

    • @barneylaurance1865
      @barneylaurance1865 14 годин тому +2

      Yes it's really nice. You don't need to escape because you can choose whatever you like as the string delimiter, so you choose something that doesn't appear in your literal string.
      And also if your literal string is another programming language (or even also in PHP) then by convention you use the name of that language as the delimiter. IDEs detect that so they can do the appropriate analysis & highlighting for that language. I use it all the time for SQL snippets, particularly for database schema migrations.

    • @ian-tumulak
      @ian-tumulak 13 годин тому

      lol I have been coding PHP for 12 years and did not know this. Good to know. ob_start() and ob_get_clean() fellow here. 🙃

    • @fullstackcrackerjack
      @fullstackcrackerjack 12 годин тому

      It's HEREDOC dumbass.

    • @kurku3725
      @kurku3725 2 години тому

      NOTE: nowdoc is also available in bash

    • @cristiannovoagonzalez6558
      @cristiannovoagonzalez6558 8 хвилин тому

      @@kurku3725yepp, although ive always seen it called heredoc

  • @philadams9254
    @philadams9254 21 годину тому +10

    Dang, I'm still getting to grips with 8.3. The PHP devs are on a roll recently.

    • @johnwisdomtv
      @johnwisdomtv 41 хвилина тому

      PHP's release cycle has been rock-solid since 2011, and it just got even better with an update this month (after 13 years!) to make the EOL date crystal clear: December 31. PHP follows two structured release cycles: one for regular maintenance and security patches, and another for feature releases. Each version receives security updates for four years after release, with active maintenance for the first two years. If there's one constant in life, it's that PHP will deliver a new version every year without fail.

  • @Noxfrolic
    @Noxfrolic 21 годину тому +41

    PHP was always good. PHP, Ruby, Python... work horses that just gets shit done. You can always rebuild in Java or whatever when you actually make it to the scaling issues 99% of all software will never hit.

    • @philipmrch8326
      @philipmrch8326 19 годин тому +8

      No

    • @albertoarmando6711
      @albertoarmando6711 17 годин тому

      @@philipmrch8326 explain

    • @rct999
      @rct999 16 годин тому +2

      str_contains was introduced only in php8. Just think about that for a moment.

    • @PraiseYeezus
      @PraiseYeezus 15 годин тому

      it absolutely not was always good. lol you guys are just falling for the hype now.

    • @martijn3151
      @martijn3151 14 годин тому +2

      PHP was pure frustration. Absolutely one of the worst experiences for me as a programmer. Unintuitive execution, weird bugs that developers didn’t want to fix (remember a for loop using references…?). No block scope. Obsolete dollar sign notation. The list goes on. I’m sorry, I totally and completely disagree. Because of that shitty past experience I am actually very reluctant to ever look back.

  • @BoCarlson
    @BoCarlson 19 годин тому +11

    Hiding logic behind setters and getters is a feature and mainly used to transform data seamlessly on set/get. It's a great feature in other languages and I'm glad that PHP now has proper setters and getters. The magic methods were horrible.

    • @dealloc
      @dealloc 17 годин тому +1

      Yes, but he's definitely talking about side-effects. Which again, may not be a problem if that is a common pattern, like in Swift which has dedicated 'didSet' and 'willSet' keywords for intercepting setters for side-effects, be it saving something in a backing store, or triggering view re-layouts.
      One difference between regular getters and setters is that those will not be called on property initialisation, which is why they have different keywords.

  • @kozas0
    @kozas0 18 годин тому +10

    new PHP 9.1 released. you can now compile it to Angular or React

  • @cruz1ale
    @cruz1ale 21 годину тому +5

    Agree about setters and getters. Reason why I only use autoproperties in C#, never custom get/set code.

    • @TehKarmalizer
      @TehKarmalizer 15 годин тому +2

      I also tend to avoid adding any additional code to properties in C#. It’s just sugar for a method call, but a method seems more explicit that it may have side effects.

  • @neonbyte1337
    @neonbyte1337 19 годин тому +2

    3:34 - PHP Attributes are like decorators in TypeScript thus can be reflected.

  • @dealloc
    @dealloc 17 годин тому +2

    1:20 Just wait till he sees Swift's didSet which is a common pattern to trigger re-layouts/re-renders on state changes :)

  • @sentient_carbon
    @sentient_carbon 21 годину тому +3

    Property hooks sucks for those reasons, but asymmetric visibility is a top feature. I really like making readonly classes, but sometimes properties must be initialized late. private setters let me use _almost_ readonly properties without the aggravating getters/setters.

  • @jex8885
    @jex8885 21 годину тому +4

    Only thing I'm missing in PHP these days is generic arrays or lists for improved typing of return values, especially in controllers, etc for improved documentation generation.
    But getters/setters can just get out of here, but at least it's a good option for those that rely on the magic getters/setters, because those are even worse.

    • @SXsoft99
      @SXsoft99 14 годин тому

      you do have generics are doc blocks /** @return array{ hand: string, card: CardType | null } */ or /** @return array */

    • @jex8885
      @jex8885 8 годин тому

      @@SXsoft99​​⁠yeah, I know. And I use them a lot. The problem is enforcing strict typing on a language level. Specifically for arrays when using reflection and code parsing.
      But I shouldn't have said generics.
      I just want a simple "[]Something" syntax, that's all. Bonus points of it can't turn into a Map randomly because a index was deleted, lol.

  • @Volt-Eye.
    @Volt-Eye. 22 години тому +6

    Even Primegen uses PHP but does not Tell anybody !!

  • @JorgeGonzalezPadilla
    @JorgeGonzalezPadilla 19 годин тому +5

    Can't wait for the PHP website arc

  • @NicolasPavie16
    @NicolasPavie16 21 годину тому +1

    For the DOM API Update : before, the request was in XPath format, a query format for XM structures, very useful when you do a lot of XML parsing, like when you do a lot a xslts, and it can be useful for xhtml but it is not really appropriate for HTML imo, as html is not really xml.
    The new API support CSS selector query which is a bit less complete imo than xpath for selection, but simpler and more common on the web and the DOM API available in browsers.

  • @tsyf1
    @tsyf1 22 години тому +50

    The main problem with PHP is that as a dev, you're constantly fixing 5.6 code made by people who didn't know how to program when they wrote it.
    Modern PHP is beautiful.

    • @philadams9254
      @philadams9254 21 годину тому +3

      Yeah but that's the easy money: no shortage of work for all that legacy code = Lambo in no time.

    • @spicybaguette7706
      @spicybaguette7706 18 годин тому

      This. We're trying to add types and stuff to everything, but it's such a monumental effort. Tools like Rector can help, but lots still has to be done manually

    • @happygofishing
      @happygofishing 18 годин тому +1

      no such thing as beautiful webcode.

    • @dealloc
      @dealloc 17 годин тому

      That's why linters exists.

    • @alexwhiteside
      @alexwhiteside 15 годин тому +4

      PHP is very stable these days, I end up spending hours debugging JS projects instead because they move at such a pace, and developers often make breaking changes with no upgrade path. PHP/Laravel doesn’t have these problems.

  • @madeOfClay99
    @madeOfClay99 21 годину тому +12

    I wish Prime could make a video about Angular's latest improvements. I guess that day will never come to reality

    • @hermessantos5258
      @hermessantos5258 19 годин тому +1

      he is not a frontend guy

    • @philipmrch8326
      @philipmrch8326 19 годин тому +3

      Who cares about Angular

    • @Kiba114
      @Kiba114 18 годин тому +1

      angular is fucking dead

    • @madeOfClay99
      @madeOfClay99 16 годин тому

      @@hermessantos5258
      I am aware, but sometimes, Prime makes videos about something related to React, even for making fun of React Andy's.

    • @madeOfClay99
      @madeOfClay99 16 годин тому +1

      @@philipmrch8326 Your mom cares

  • @tonyvechkin8
    @tonyvechkin8 6 годин тому +1

    Prime edging us at the end. Love to see it

  • @YoutubeWatcher3566
    @YoutubeWatcher3566 6 годин тому

    PHP developer for 8 years. It's been good but I crave for change. Started my first golang project recently, really enjoying it.

  • @cubball
    @cubball 32 хвилини тому +1

    I'm still waiting for Prime to unironically try (modern) C#, looks like we'll like it actually

  • @catmankitty9504
    @catmankitty9504 9 годин тому +1

    The only thing keeping us back from Lambos is ourselves and PHP

  • @snake3444
    @snake3444 14 годин тому

    The ton of array_* functions is actually something I miss in some other languages.
    There are so many really powerful functions you can just use for pretty much everything array related and know they are optimized in performance and efficiency.

  • @henrikrinne3639
    @henrikrinne3639 17 годин тому +3

    I’ve recently gotten into Java. So far i’m loving it, cause its just soo much better designed than php

    • @avilego4038
      @avilego4038 15 годин тому +1

      Hate maven/gradle/... and the frameworks and libraries seems to be over engineered, overcomplicated . Nevertheless learning java has made me a better PHP developer but still prefer modern PHP with symphony

    • @privacyvalued4134
      @privacyvalued4134 7 годин тому

      Java is an absolutely terrible language. Everything is an exception. You'll learn how painful Java is when you start doing anything that, by its nature, is filled with failure states. For example: Networking. DNS queries can fail? Java exception. Transfers can be interrupted midstream? Java exception. The server can be temporarily down? Java exception. A packet is dropped? Java exception. No other language on Earth is filled with terrible decisions like Java has. It's a terrible language, no one should use it, and it was on its way out of existence until Google decided to use the JVM for Android. And that's before you get into the _awful_ tooling for Java.

    • @henrikrinne3639
      @henrikrinne3639 3 години тому

      @ working in the finance infustry. Everything is spring framework. It would be a nightmare having everyone spaghetticode a bunch of php. Couldnt one argue that the tech we build these things on is full of exceptions?

    • @theshermantanker7043
      @theshermantanker7043 3 години тому

      @@privacyvalued4134 Someone's living in the Java 1.6 days

    • @avilego4038
      @avilego4038 3 години тому

      Is Java safe from spaghetti code ? I don't think so. Is PHP always a crappy mess ? Of course not.

  • @Teodor-ValentinMaxim
    @Teodor-ValentinMaxim 21 годину тому +15

    PHP, I started learning 7, it was cool. Give me a foreach loop and associative arrays and I can make the world.

    • @npcemprove6016
      @npcemprove6016 19 годин тому

      Arrays are inefficient black boxes.

    • @Teodor-ValentinMaxim
      @Teodor-ValentinMaxim 16 годин тому

      @@npcemprove6016 So? I like them.

    • @asagiai4965
      @asagiai4965 10 годин тому

      Nice, I think most Google API used to support PHP. Which you can leverage on your app.

    • @privacyvalued4134
      @privacyvalued4134 7 годин тому +1

      Exactly. PHP arrays are hash tables that maintain the order of inserted items and can mix key types. Most languages with "dictionaries" (aka hash tables) don't maintain insertion order of items. A few years ago, Javascript _finally_ started maintaining order of inserted items (after decades of not bothering) but PHP has always done this and did/does it best.

    • @privacyvalued4134
      @privacyvalued4134 7 годин тому

      @@npcemprove6016 Arrays aren't black boxes. The source code to PHP is available for anyone to read. And there's an _excellent_ blog post on how PHP arrays work in both PHP 5 and 7 without having to delve into the source code that one of the core developers of PHP wrote around the time PHP 7 was released. Only minor changes were made for PHP 8. PHP arrays may be less efficient than alternative solutions but they are the most powerful and useful data structure to exist in any language on Earth. I dare you to make an equivalent data structure that outperforms PHP's implementation.

  • @noino
    @noino 15 годин тому

    Performance mentioned with static this and that, well now we clearly need a go-php-python benchmark video

  • @YvesBlatti
    @YvesBlatti 3 години тому +1

    Primagen is ready for FrankenPHP!

  • @Chris-on5bt
    @Chris-on5bt 12 годин тому

    Honest take at 0:00, I like prime when he is riffing on something off the cuff. The prepared videos alright, but I come to prime for his raw takes.

  • @lugaidster
    @lugaidster 20 годин тому +3

    Bcmath is for arbitrary precision decimal math.
    Wanna add account balances? Use bcmath. You dont want floating point math for that.

    • @MrMeltdown
      @MrMeltdown 20 годин тому

      Does it do all the correct financial rounding if set to 2dp by default?

    • @lugaidster
      @lugaidster 17 годин тому

      @MrMeltdown it does not round by default IIRC, I think it truncates. But the docs are your best bet. It's been a few years since I did any actual accounting with PHP.

  • @Kiyuja
    @Kiyuja 17 годин тому +4

    PHP 8 is actually huge. They added JIT, match exp. and switch statement, add more places to throw, weakMaps, DateTime, enums and the readonly attribute. If they keep this pace up, they will soon reach 2010! (PHP in the backend is probably still better than JS, F U)

    • @SXsoft99
      @SXsoft99 14 годин тому

      js needs config files over config files to have a stable development experience sgared in your team. PHP just has composer.json. If you are feeling fancy .editorconfig.

    • @stefanalecu9532
      @stefanalecu9532 6 годин тому +2

      It was always better than JS, despite its PHP 4 and 5 days

    • @theshermantanker7043
      @theshermantanker7043 3 години тому +1

      They didn't just add a JIT, they added one, realized it wouldn't scale, deleted it, and then rewrote another one from the ground up yet again, all in the span of PHP 8

  • @handmadegamesdev
    @handmadegamesdev 20 годин тому +4

    PHP just needs to give us block scoping.

    • @barneylaurance1865
      @barneylaurance1865 14 годин тому

      What's the problem with function scoping? If there's too much in scope write smaller functions.
      And block scoping is annoying in JS when it means you can't declare a variable inside a try clause and then use it after the catch.

    • @handmadegamesdev
      @handmadegamesdev 12 годин тому +1

      ​@@barneylaurance1865 Function scoping isn't as convenient -- lots more typing, especially when you need access to outside variables. And I often prefer longer functions, so smaller functions is rarely what I like.
      I can see what you mean with try / catch hassles, though.

  • @MartynasNegreckis
    @MartynasNegreckis 6 годин тому

    Setters themselves are evil. Getters are decent in some instances, like getter for list's item count as it removes some obvious clutter. Setters are either a layer of indirection over public fields, or obfuscate important logic. They really should be either a public field, ideally in a struct or struct-like class, or a public method. Of course, some tools and languages have strong opinions about these, so you have to do what you have to do.

  • @electricshmoo
    @electricshmoo 13 годин тому

    We've come a long way baby!!!

  • @elderofzion
    @elderofzion 2 години тому

    When are you dumping zig/rust/go/c++ and switching to php, prime?

  • @PraiseAnthony-qp2eq
    @PraiseAnthony-qp2eq 22 години тому +2

    Setters and getter allows for hidden control flow

  • @mrc1500
    @mrc1500 16 годин тому

    A lot of grandstanders on transmit in the chat when they should be on receive only. Thanks for calling them out.

  • @PraiseYeezus
    @PraiseYeezus 15 годин тому +1

    My only two issues with PHP is over-reliance on strings for everything, and lack of generics so you end up with "mixed" and "array" everywhere in your codebase. I also really dislike the syntax, but I can get over that

    • @SkylearJ
      @SkylearJ 14 годин тому

      Generics are so overblown. You can just write a class for whatever arbitrary type you're wanting.

    • @PraiseYeezus
      @PraiseYeezus 14 годин тому

      @@SkylearJ and therein lies the problem: needing another class (or mandatory PHPDoc comments) just for more specific typing just...sucks. Like it isn't enjoyable at all, especially on a team.

    • @Rein______
      @Rein______ 14 годин тому

      ​@@SkylearJ Overblown? Wow wait what? 😅

    • @SkylearJ
      @SkylearJ 14 годин тому

      @@Rein______ overhyped?

    • @SkylearJ
      @SkylearJ 14 годин тому

      @@PraiseYeezus a class is just a struct in other languages. Whatever your mental model of PHP is, it's blinding you to the fact there's no real alternatives to the issue. In any other language you'd need to define a struct or an enum to accomplish what you're talking about, and in PHP it's the same; a class or an enum.

  • @gavinmurambadoro
    @gavinmurambadoro 7 годин тому

    Languages and frameworks are a means to an end, not the end in themselves. Most of the features introduced into the PHP language are to make lives easier for the community that builds solutions in the ecosystem and are really appreciated. Obviously other languages have alternative implementations, but that's not the point really...

  • @Jonjolt
    @Jonjolt 19 годин тому +4

    PHP is becoming a combo of C# and Java but it's still stateless :/

    • @neptronix
      @neptronix 11 годин тому

      Stateless is it's advantage

    • @mnda6
      @mnda6 4 години тому

      It's not entirely true. Whatever PHP is stateless is determined by how you run it. Using php-fpm makes your app stateless, using swoole makes it stateful (+ you got another features like concurrency, shared cache between workers etc.)

  • @julendominadas4040
    @julendominadas4040 19 годин тому

    Attributes are for metadata. You can get them with reflection API. to me, they feel similar to annotations

  • @marna_li
    @marna_li 3 години тому

    You should generally just have validation logic in property setters. Not logic that mutates the value itself, because you want to retrieve it as it was later from the getter. If you want to do complex actions on data use method with a name that tells you what it does.

  • @tambow44
    @tambow44 17 годин тому

    BC is a unix program “basic calculator”. Cool homage.

  • @skirianov
    @skirianov 10 годин тому

    thanks for the video, now I love Typescript even more

  • @bzboii
    @bzboii 18 годин тому +3

    is php pronounced “fap” or “pahoop”

  • @shafiq_ramli
    @shafiq_ramli 22 години тому +2

    Aaron Francis is coming??!

  • @ankk98
    @ankk98 18 годин тому

    It was so funny to watch him bounce while writing code

  • @andreyashgaliev9372
    @andreyashgaliev9372 20 годин тому

    I’m waiting for the Ruby (Rails) session to hear comments about whether it’s horrible or not

  • @jacksmith1098
    @jacksmith1098 9 годин тому

    Missed opportunity to say pragmagean at the outro

  • @colbr6733
    @colbr6733 16 годин тому

    Great as long as I like sustaining work and am not worried about performance.

    • @SkylearJ
      @SkylearJ 14 годин тому +1

      Modern PHP can run up there with the best of em. Perf argument is a skill issue.

    • @SXsoft99
      @SXsoft99 14 годин тому +1

      ah yes because JAVA devs think about performance when they request extra RAM sticks to be inserted into the server rack

  • @MadalinIgnisca
    @MadalinIgnisca 21 годину тому +2

    Who codes today in PHP should be a well respected developer. The AI support for coding in PHP is really shit, so it is avoided by idiots.

    • @zlackbiro
      @zlackbiro 18 годин тому

      Avoided because the language is pure shit!

    • @stefanalecu9532
      @stefanalecu9532 6 годин тому

      Who coded in PHP in the past should also be respected, like with any other language. You gotta have the Lambo somehow

  • @chepossofare
    @chepossofare 21 годину тому +1

    I honestly think that the only good additions are the PDO subclasses.

  • @MrEspecialGames
    @MrEspecialGames 22 години тому +10

    PHP > RUBY

    • @lazymass
      @lazymass 21 годину тому +2

      To be fair, it's easy to be better than ruby

    • @TheRealCornPop
      @TheRealCornPop 21 годину тому +2

      Nah, the syntax is horrible. public private(set)?
      Ruby's syntax for getters setters is 1000x better

    • @Ismar3
      @Ismar3 19 годин тому +1

      @@TheRealCornPop if you said C# then I would agree, but Ruby is just way worse than this.

  • @code-island
    @code-island 14 хвилин тому

    Good video Prime,
    Laraval is the best framework ecosystem from far. ( I used
    to hate php )

  • @МамедЛорсанов
    @МамедЛорсанов 17 годин тому +2

    the "hiding" you don't like are one of the main concepts of OOP - encapsulation which is hiding implementation code from client code.

  • @minecraftermad
    @minecraftermad 5 годин тому

    missed chance to say the name is pragmagen

  • @mattshu
    @mattshu 19 годин тому

    lmao bro I have to sub if he puts his audience on the spot when they comment something

  • @cyclonustv
    @cyclonustv 12 годин тому

    The name... is the pragmagen. I can't believe he didn't use it.

  • @gatisozols
    @gatisozols 19 годин тому

    It is very enjoyable when setter is written something like this - `set { _field = flase; }`, it is so fun I cant begin to describe how much joy that brings. But I am not against setters/getters.. they have their place to be..

  • @stonedoubt
    @stonedoubt 22 години тому +22

    I love writing php. I'm sorry, but it is elegant imo.

    • @ristekostadinov2820
      @ristekostadinov2820 21 годину тому

      When i first tried php 5 years ago and saw the function array_chunk, i was so happy. The fact that i can have effortless way to make a grid with bootstrap lol.
      Only recently i saw proposal for javascript to be included.

    • @danielmdev
      @danielmdev 21 годину тому +3

      and robust

    • @greenjello421
      @greenjello421 18 годин тому

      I struggle looking at functions with underscores in them. Sorry but I disagree with you

    • @stonedoubt
      @stonedoubt 18 годин тому +1

      @ That sounds relatively autistic… at least on the spectrum but I get you. I have been a one-man-army web dev for 34 years. Maybe that's why I would take those underscores over fragmentation and excessive infrastructure. 🫣

    • @mitigozman-pop2
      @mitigozman-pop2 17 годин тому

      ​@@greenjello421the current standard is to use camel case. There are some built in functions that use underscore but if you write a function you use camel case

  • @roshidoniy
    @roshidoniy 10 годин тому +1

    PHP 8.4 is good "compared to older version". Keep in mind

    • @stefanalecu9532
      @stefanalecu9532 6 годин тому

      PHP 8.4 is still good on its own, so keep malding

  • @kahnfatman
    @kahnfatman 18 годин тому

    pHP goes down the road of get/set hell.

  • @bluegamer4210
    @bluegamer4210 22 години тому +7

    PHP MENTIONED ♥

  • @krtirtho
    @krtirtho 10 годин тому

    I'm introducing The DYHP (Dead yet highly paid) stack
    Backend: PHP
    Frontend (SPA): Angular
    Mobile: Flutter

  • @Tony_Sol
    @Tony_Sol 21 годину тому

    i like getters and setters, nice syntax-suggar
    but what i really really REALLY want are accessors for classes, all classes are public by default and it’s so wrong IMHO

    • @XDarkGreyX
      @XDarkGreyX 19 годин тому

      Enlighten us regards

  • @hamzakhiar3636
    @hamzakhiar3636 2 години тому

    you got an orange cat, duuh

  • @JosephCodette
    @JosephCodette 22 години тому

    Yes you will hear more and more about php, and laravel of course

  • @Johanthegnarler
    @Johanthegnarler 19 годин тому +1

    Im good. Enjoy though lol. Laravel was definitely the best thing that's ever happened to PHP. I don't hate when i have to work on it, but I don't enjoy it.

  • @telephonedude
    @telephonedude 5 годин тому

    The last time I touched PHP must have been a good 15 or so years ago. It was one of my first languages alongside AS2.0. I will always have a small soft spot for it. I want it to do well. But seeing this just makes it look like it copied C#'s homework, except both the homework itself and the copier they used are from 15 years ago as well.
    C# introduced properties in v1.0 in 2002. Auto-properties were added in 2007, along with lambdas and LINQ (select, any, all, where, ...). It's verbose in all the wrong ways, and even in the examples I still see the same kind of crud that annoyed me back then (`bcadd` or a `Number` wrapper, for example).
    Laravel seems fun to play with, and I was hoping this might be the motivator for me to give it a try... It was not. It very much was not

  • @reinoob
    @reinoob 7 годин тому

    The only thing php needs to catch up on is configuration, debugging and installation. Installing php and managing extensions is a pain. Also you always have to use creativity to debug things.

  • @AndreasBeder
    @AndreasBeder 16 годин тому +2

    PHP is awesome, and feels much more robust. Smaller build pipeline, less dependencies, no state hell. React, Vue it was just a big mistake. Don't do client code, fire and forget. PHP is superior, long live PHP, JS is bad, TS is bad, we love PHP ❤

  • @wrux
    @wrux 6 годин тому

    PHP needs Elixr-like piping

  • @agustingomez7172
    @agustingomez7172 22 години тому

    ooo they change the sibling thing thanks god finally, the problem is hat they are using an heredoc that in vs code you can read pretty good the html code that's why you are not understanding the first part and changing the siblig for query selector is the best path the could take. finally

  • @GeorgeDrakakis78
    @GeorgeDrakakis78 6 годин тому

    Imagine Taylor Otwell & Adam Wathan are the 2 dudes that will help Prime to build the php thing => EASILY around 1 zilion views.

  • @vmachacek
    @vmachacek 9 годин тому

    no one like getters and setters, unless its 1995

  • @MattHudsonAtx
    @MattHudsonAtx 11 годин тому

    Is it April 1st?

  • @NotAFanMan88
    @NotAFanMan88 22 години тому +2

    Brazil mentioned

  • @WiseWeeabo
    @WiseWeeabo 6 годин тому

    Someone needs to make an EUPHP where $ is replaced by €.

  • @MrMeltdown
    @MrMeltdown 20 годин тому

    Was waiting for the….
    Pragmagen….

  • @evergreen-
    @evergreen- 16 годин тому

    We’re still trying to migrate from PHP 7.4 to PHP 8.1

    • @SkylearJ
      @SkylearJ 14 годин тому +1

      How is your code base that poorly designed sheesh

    • @evergreen-
      @evergreen- Годину тому

      @ well, it’s a 1+ million LOC 15 yo codebase that has parts written in 3 different frameworks (pure PHP, our own MVC framework and Mezzio).
      - Code style is nonexistent. There’s been 3 migrations from spaces to tabs and back to spaces. All unfinished.
      - There’s no unit tests. Somebody was writing unit tests 5 years ago, but since then all code has been untested.
      - API has no documented specification. Internally, calls to our new API versions are rerouted to old APIs. So changes to the new API break old API.
      - And of course we use micro services so that now there’s 20 services all tangled up together so much you never know if a change in 1 of them will break the other.

  • @asagiai4965
    @asagiai4965 10 годин тому

    I guess MPRE is possible now. Or PERM

  • @albertoarmando6711
    @albertoarmando6711 17 годин тому

    I'm doing Django in my current project. I like python, but I'm not liking Django that much. Will give Laravel a try in a couple of months.

  • @paulmcburney6874
    @paulmcburney6874 11 годин тому

    Not gonna lie. I clicked on this video primarily because of the cat.

  • @ofmouseandman1316
    @ofmouseandman1316 21 годину тому

    2 person? Aaron and Taylor?

  • @Vemu
    @Vemu 19 годин тому +3

    Kotlin>

  • @libincheeran6572
    @libincheeran6572 15 годин тому

    Just liking for the cat

  • @Tattersail
    @Tattersail 17 годин тому

    i had to type the dollar sign for five years. i'm not gonna do it anymore, you can't make me

  • @Aristocle
    @Aristocle 6 годин тому

    I'm here only for the cat.

  • @takeiteasyeh
    @takeiteasyeh 15 годин тому

    DOM change is a long time coming

  • @VictorZamanian
    @VictorZamanian Годину тому

    How can a language receive bug fixes?

  • @rogerdeutsch5883
    @rogerdeutsch5883 16 годин тому

    Yes, all languages are good in small amounts -- the same way people thought New Coke was better, because they only had a small taste. But how much do you like the language when you come in on a project that another dev built in PHP? If you still like the language then it is a great lang, if not...

    • @SXsoft99
      @SXsoft99 14 годин тому +1

      and you are saying bad code can't be written in other languages? Have you ever coded in js?

    • @stefanalecu9532
      @stefanalecu9532 6 годин тому

      You're aware this applies to any codebase you inherit, right? How does this apply to PHP?

  • @n8asdter3tv
    @n8asdter3tv 3 години тому

    They should get rid of the $, backslashes for global functions, weird constructor and rename the language to get away from the bad legacy pr

  • @alienlive4158
    @alienlive4158 18 годин тому

    CAT in the Thumbnail = Like

  • @benderbg
    @benderbg 21 годину тому +5

    What is dead may never die.
    PHP: Hello there

    • @HeavyMedal
      @HeavyMedal 20 годин тому

      Change it to "Hello world"

    • @man_like_tim
      @man_like_tim 8 хвилин тому

      *echo "Hello World";*