Laravel Pennant: first-party feature flags

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 73

  • @rodjenihm
    @rodjenihm 3 месяца назад +36

    First party? That's sucks. I wanna pay $20 per month for SaaS subscription to do that.

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +1

      😂

    • @ShaunEk1
      @ShaunEk1 3 месяца назад +2

      Ha, yeah if your system is very simple and Laravel only this is kinda cool. As soon as you have heterogeneous systems that need to work together this simple, free solution will fall down

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +2

      Or you can write your own storage driver! Honestly just using the database driver is probably good enough. You can read it from anywhere

    • @mattmotionpix
      @mattmotionpix 3 месяца назад

      A subscription and a network dependency (point of failure)

  • @smithallengroup
    @smithallengroup 18 дней назад

    Really enjoying your way of teaching!!

  • @TheMoonWatcher
    @TheMoonWatcher 3 месяца назад +29

    Maybe this will be weird, but YAY ADS! I'm not being sarcastic - getting sponsorships increases the likelihood that we will continue seeing this amazing well-crafted content and I'm stoked for that ❤
    Also, thank you both for another great video!

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +1

      Whew 🥰 wasn't expecting that!

    • @brianochieng5904
      @brianochieng5904 3 месяца назад +1

      And he should now get some sleep. I could see how tired he was. Maybe it was just me.

    • @TheMoonWatcher
      @TheMoonWatcher 3 месяца назад

      @@brianochieng5904 might be the whole dad of many kids thing 😂 I saw him taking a nap at a play center once on Twitter 😁

    • @aarondfrancis
      @aarondfrancis  3 месяца назад

      🎯

  • @HusseinAli-ih7tk
    @HusseinAli-ih7tk 3 месяца назад +14

    Awesome content Aaron 👍 Your super educational way of teaching got me into php and Laravel after years of hesitating to try it, and now there is no way back. Thanks for sharing your knowledge mate ♥

    • @aarondfrancis
      @aarondfrancis  3 месяца назад

      You're welcome! Thanks for saying so

  • @biomorphic
    @biomorphic 3 месяца назад +2

    Pennant looks great. The problem I have with feature flags is that people abuse it. I have seen codebase with hundreds of feature flags, a thousands of dead lines of code, never been deployed/used. Also I have seen deployments failing because of too many if/then. Because when you develop a feature you have code regarding that feature everywhere. So feature flags should be only used when strictly necessary,, and not as development approach. Having only the master branch and relaying exclusively on feature flags is a (very) bad idea. Trunk development is a bad idea. Use branches, gitflow, and eventually feature flags, when you are rolling out features that require to be tested by a restricted number of users. This is not the case for all the features, this is the case for just a small percentage of you develop. Abusing feature flags will make your code unreadable. Also flags should be removed when the feature is released for all. Does Pennant have something for that?

    • @rand0mtv660
      @rand0mtv660 3 месяца назад

      Both gitflow and trunk based development have their own tradeoffs, as everything in programming. I worked with both patterns and cannot really decide which one I like more. Although I do have to agree feature flags do get abused a lot in trunk development. People are like "Oh I have to change this page title to say something else, I'll put it behind a feature flag" and proceed to create a feature flag for most useless of things. Hiding larger features or chunks of logic behind feature flags I think is nice, but going too granular is a maintenance nightmare.
      I've seen people introduce feature flags into code only to remove them literally 24-48 hours later, which is pointless and just unnecessary overhead.

  • @nm6x
    @nm6x 3 месяца назад +31

    I'm a 41 years old guy, I started programming in PHP with 16 years old, landed my first job as a programer at 21, I did amazing thing with PHP. Now, it's been almost 12 years that I don't use it anymore, but my brain still finds it easier to learn thing in PHP than using my current stack, funny how that works....

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +9

      Come back! Join us!

    • @SebastianMares
      @SebastianMares 3 месяца назад +1

      Even though many people hate or make fun of PHP, I still think modern PHP doesn't need to shy away from competition. I have a similar vita as you, and while I often use Go for new projects, coming back to PHP and especially Laravel or Symfony is a joy. And with Octane, you can even combine PHP with Go.

    • @ridiculoushot3691
      @ridiculoushot3691 3 месяца назад

      12 years using most php hoping that will get better. And here we are.

    • @captaincavemonkey
      @captaincavemonkey 3 месяца назад +3

      45 here started with php at 19 and still at it. People have been telling me it was a dead language since I was 25

    • @nm6x
      @nm6x 3 месяца назад

      @@aarondfrancis I wish I could, I didn’t wanted to stop using it, it’s just the industry, hype, whatever you want to call it. Never the less I still enjoy the content, core concepts such as IoC, are transferable to any tool, so let’s keep at it!

  • @Alex_online
    @Alex_online 3 месяца назад +5

    Another banger, though dark mode would make it a lot easier to watch at night 🔥👀

  • @nicgeorge6126
    @nicgeorge6126 3 месяца назад +4

    I’m so glad to see you making content on your own channel. To the moon my friend, to the moon!

  • @GuRuGeorge03
    @GuRuGeorge03 3 месяца назад +1

    Currently building a quite complex meta search engine and Laravel makes it so easy. Probably launching production this year. If i did it in another stack it'd probably take me more than a year

  • @dissomedia
    @dissomedia 3 месяца назад +3

    Sneaky finger at 5:23 😋

  • @jagadishk
    @jagadishk 3 месяца назад +1

    Woah .. this is so much better than what I have had to do in Node.js and Next.js applications!!

  • @DanielDogeanu
    @DanielDogeanu 3 месяца назад +1

    I don't use Laravel, and last time I touched PHP was over 6 years ago... Why am I here? 😂
    PS: Awesome video, as always! 😊

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +2

      We'll get you back!

    • @DanielDogeanu
      @DanielDogeanu 3 месяца назад

      @@aarondfrancis I wouldn't mind, I heard you guys have Lambos! 😆

  • @sabinmaharjan3971
    @sabinmaharjan3971 3 месяца назад

    I'm thinking why do we actually need that feature?

  • @edventuretech
    @edventuretech 3 месяца назад

    I'm curious what is the Database management tool you use in this video?
    Is that DB Browser?

    • @alcymn
      @alcymn 3 месяца назад +2

      He’s using TablePlus

    • @edventuretech
      @edventuretech 3 месяца назад

      @@alcymn Thank you 🥰

  • @vdemcak
    @vdemcak 3 месяца назад

    Can you sometimes share your PHP Storm config? Looks pretty neat.

  • @yeapea
    @yeapea 3 месяца назад

    Simply so great and clearly explained! Thank you!

  • @anesu6184
    @anesu6184 3 месяца назад

    light theme was a horrible idea

  • @radui7468
    @radui7468 3 месяца назад +1

    Can you do the same thing with Gates?

  • @rajeshbudhathoki7888
    @rajeshbudhathoki7888 3 месяца назад

    What's the name of white theme of phpstorm? I liked it.

  • @nulljeroka
    @nulljeroka 3 месяца назад

    It's great to have first-party FF, nice video man.

  • @Ashish_singh_dev
    @Ashish_singh_dev 3 месяца назад

    Do we have any good lsp of laravel for vscode?

  • @alexandersix_
    @alexandersix_ 3 месяца назад

    "That seems....pretty ~dumb~" - Aaron Francis, looking at his own code.
    Love the video! Bookmarking literally all of these to send to people when they ask me why I still use PHP/Laravel in 2024

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +1

      Hahaha I wrote that code and that was my immediate, unfiltered thought 😂

  • @ihzakarunia2408
    @ihzakarunia2408 3 месяца назад

    If not because of subscribing to you, i would not have known about this neat feature flags in laravel. I usually use spatie permission and sometimes it just too granullar for my use cases, maybe the thing i need for my past projects was this feature flags. Thank you Aaron!
    Maybe for future topics, is there an Alert System in Laravel to notify developer if some user encounter error in their production apps?
    Keep up the good works, your videos is very pleasant to hear!

  • @dashcharger24
    @dashcharger24 3 месяца назад

    Thanks for sharing!

  • @fromvega
    @fromvega 3 месяца назад

    Hi Aaron, me too I prefer light mode to work but I find that dark mode more versatile for videos for two reasons: first, white is too bright when watching at night 😅 and two, switching from full frame video to white editor is too harsh. Anyway, just my 2 cents. Keep up the good work.

  • @ThePandaGuitar
    @ThePandaGuitar 3 месяца назад

    awesome video!

  • @kohlkohlbrenner3349
    @kohlkohlbrenner3349 3 месяца назад

    You rock Aaron!

  • @Torbikini
    @Torbikini 3 месяца назад

    These videos make me want to use Laravel more and more. I wonder how hard it’d be to swap now. I have been working on a Vue 3 front end and just started the backend portion. Express is proving to be a headache for logging in with Steam 💀
    I might have to learn more and see if this is the perfect fit, I’m just not too sure how to best connect existing data or if I can define models for an existing schema. I’ll have to investigate 🕵️‍♂️

    • @aarondfrancis
      @aarondfrancis  3 месяца назад

      You might like this video, particularly the inertia part! ruclips.net/video/gRtv-BVkwA4/видео.html

    • @rand0mtv660
      @rand0mtv660 3 месяца назад +1

      If you just started working on your backend and didn't do much work, just switch to Laravel. In Express you'll end up connecting 10 different libraries for things that Laravel provides out of the box and that all integrate nicely in Laravel because they are officially supported. And also Express is outdated and isn't really maintained for a few years now.

  • @rationalityfirst
    @rationalityfirst 3 месяца назад

    Aaron, a tip for the artisan cli: if you type `artisan ` you will get all the commands in that namespace. For a shorter display you can make it error out adding the : after the namespace.

  • @MesheeKnight
    @MesheeKnight 3 месяца назад

    light theme console? you must be a psycho :D

  • @lpanebr
    @lpanebr 3 месяца назад

    Great! Would this also be recommended for user preferences that they choose themselves?

    • @aarondfrancis
      @aarondfrancis  3 месяца назад

      Hmmm I don't know if I've ever seen anyone use Pennant for that. I bet you could make it work, but it feels like a little bit of an unsupported use case

    • @lpanebr
      @lpanebr 3 месяца назад

      @@aarondfrancis cool, I'll look into it. I'm new to Laravel. Thank you for the reply! I love your content! ❤️

  • @IndaQLV
    @IndaQLV 3 месяца назад

    first

  • @muzakirnur7069
    @muzakirnur7069 3 месяца назад

    okay, but why light mode ?

    • @aarondfrancis
      @aarondfrancis  3 месяца назад +7

      same reason I do almost everything I do: I like it

    • @ahmad-murery
      @ahmad-murery 3 месяца назад

      @@aarondfrancis Finally found someone who is not trend-driven👍

    • @mike-2342
      @mike-2342 3 месяца назад +3

      Because he wants this information to be seared into your retinas so you retain it

  • @33sprog5min2
    @33sprog5min2 3 месяца назад

    i like the way you make the explanations more easier
    Thanks