We Love PHP Attributes

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

КОМЕНТАРІ • 17

  • @TheKluVerKamp
    @TheKluVerKamp 2 години тому +1

    This started to look like Spring :D the lovely parts which is amazing! keep up the amazing work

  • @Frank-ou2nr
    @Frank-ou2nr 10 годин тому +8

    Whats up with the random music starting at 7:51 and making the explanation very hard to hear?

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

    There are a lot of ideas in here that are new to me, this was helpful. I'll definitely be using attributes in my requests now because I've made some messes in there in the past

  • @incoming-th
    @incoming-th 11 годин тому +11

    I have mixed opinions with those attributes, because it can be useful and shorthand, I don't think they are clean because I have a lot of docblock and mixing with those attributes it's making the code like a mess to read. All those videos are presenting the attributes without a docblock.

    • @Silas_229
      @Silas_229 5 годин тому +2

      They remind me of jakarta and this java enterprise stuff is just awful

    • @hydrokat143
      @hydrokat143 47 хвилин тому

      I can see that the attributes work as "doc blocks" alr. Personally i would still prefer doc blocks for my old and current projects.
      Maybe ill try using these over doc blocks in the future.

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

    I never liked comments as code in simfony and was the main reason i stuck with laravel, but I admit they have their moments.

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

    They're really handy! I also really like spatie's route attribute package that makes routing a breeze with controllers

  • @dominikbetlej7114
    @dominikbetlej7114 43 хвилини тому

    Thx!

  • @Htbaa
    @Htbaa 4 години тому +2

    So :: couldn’t be used for namespaces as it was already used for something else but a line starting with a hashtag, which is used for a comment, is perfectly fine? For me this is just one big unreadable mess.

  • @rogue.ganker
    @rogue.ganker 11 годин тому +6

    Clean and nice until someone adds like 10 to it and abuses it

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

      I thought it would be a great idea to use the Attribute and the booted() for more if it exist.

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

    🎉🎉🎉

  • @gilney.mathias
    @gilney.mathias 4 години тому +3

    i for one really dont like those ¯\_(ツ)_/¯

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

    I really could not listen to you anymore after 8 minutes when the music started.... Why?