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

  • @TrondHus
    @TrondHus Год назад +4

    This talk is great on two levels. First it shows how modern PHP has become and how clean code you can make using patterns. Second it teaches those who watches this video about the State Pattern and the "State Machine" thing.
    I hope this video will recruit more PHP-developer and more Laravel-users.
    Well done Jake Bennett! Well done!

  • @Denakino
    @Denakino Год назад +13

    This left a much deeper impression on me than the title of the talk would suggest. Very well done, my favorite technical talk (not announcements/general mindset) from this year's Laracon.

    • @JacobBennetts
      @JacobBennetts Год назад +2

      Thanks so much @Denakino! Really enjoyed putting it together. I agree, I should have come up with a catchier Title 😅

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

    I love state machines but something I've found to be difficult is a few things:
    - You're often not just trying to update a single field (e.g., status), sometimes you need to update more than a few things and so you have to parameterize these transition functions to take some context object
    - Side effects in a transition function are simple and nice but they can be hairy. There are situations where you may be transitioning to a state but it may be the case that you don't want any side effects (e.g., not sending an email for some special reason). When this happens, you find yourself once again either accepting booleans or some context object. Or you can revert control of side effects to the user by accepting a function to run once the state has transitioned
    - Bulk Actions often need their own state machine
    This is not a rally against this pattern, I love it, especially in UI with sequential flows, but there's a few considerations here. :) Great talk!

  • @tomaserlebach9760
    @tomaserlebach9760 Год назад +3

    This is so awesome! Everydayproblem solved with a simple solution. Thanks for that!❤

  • @FarazSamapoor
    @FarazSamapoor Год назад +10

    Great talk and superb presentation! Thank you, Jake!

  • @pindab0ter
    @pindab0ter Год назад +2

    This is an amazing talk! I implemented a state machine using XState in Typescript before. This much simpler and still does everything a state machine should do! Will definitely look at using this once the need arises!

  • @stephenshead3636
    @stephenshead3636 Год назад +6

    Got 6 minutes into listening to your latest Laravel News podcast and realised, “Oh, this is exactly what I need for that bit of the codebase that has been smelling slightly off.” Awesome presentation!

    • @JacobBennetts
      @JacobBennetts Год назад

      Super glad to hear that @stephenshead3636! Excited to hear how it goes.

  • @amirpouresterabadi3052
    @amirpouresterabadi3052 Год назад +4

    Really it was one of the best top 3 talks in all laracons... Thank you so much

    • @JacobBennetts
      @JacobBennetts Год назад +1

      So kind of you to say that. Thanks!

    • @thurstonlevi
      @thurstonlevi Год назад +1

      I agree! along with Livewire 3

  • @chrispage558
    @chrispage558 Год назад +2

    Brilliant talk and something I'll definitely be using! Thank you 🙌

  • @AbderrahmanFodili
    @AbderrahmanFodili Год назад +3

    This was an amazing talk . Just what I need right now

  • @kalvinniam7185
    @kalvinniam7185 8 месяцев назад +2

    This is amazing!

  • @thurstonlevi
    @thurstonlevi Год назад +3

    Brilliant talk Jake, first thing i did was to implement this in an evolving job admin app. Did raise a few questions like do I add this to a query using a with so i can show the current state in a table? might be nicer to have named the initial Invoice class as say InvoiceState but did that with a HasOne but I had to be careful in implementing this with similar named classes (App/Models/Invoice and App/StateMachine/Invoice).

  • @SusantPaudelfab
    @SusantPaudelfab 10 месяцев назад +1

    this talk really solved my irritative problem. hope to see more from laravel team.

  • @kaibe5241
    @kaibe5241 Год назад +2

    Really great talk, thank you, Jake :)

  • @kpomeru
    @kpomeru Год назад +2

    This is so insightful.

  • @freesgen
    @freesgen Год назад +2

    Amazing talk dude, thanks for sharing

  • @RobinDesBles
    @RobinDesBles Год назад +2

    Awesome talk!

  • @whchi9252
    @whchi9252 Год назад +2

    really good talk!

  • @7924a
    @7924a Год назад +1

    Hey, can you share link to state machine package (no spatie, second one) you mentioned in talk please?

  • @shafqatalinawaz3868
    @shafqatalinawaz3868 Год назад

    Brilliant ❤

  • @hermanceaser
    @hermanceaser Год назад +2

    Wow, Dude you are magician 😟

    • @JacobBennetts
      @JacobBennetts Год назад +1

      Haha, its true! Love me some good card magic!

    • @exikoz
      @exikoz 4 месяца назад

      ​@@JacobBennettsThank you so much for this awesome presentation.