I like this a lot! 30mins in, so maybe you already say this, but my big summary takeaway from this is: Anytime you use conditional logic in a context, ask yourself if there should be new contexts that encapsulate those different conditions. This goes well with Sandy Metz design philosophy of conditional logic being a code smell.
Thanks for this comment! I've learned that conditional logic can be a major PITA and try to avoid it, but I often find myself wondering what the best way to do this is. I found this talk very helpful in that it not only showed one possible solution, but walked through a 'real-world' case.
Great stuff! I really like the design of the example problem in the presentation with increasing complexity. One question: in the scenario presented - what happens to a job from JobPublishing after it has been published to JobBoard? Is it deleted from JobPublishing/jobs table?
I like this a lot! 30mins in, so maybe you already say this, but my big summary takeaway from this is: Anytime you use conditional logic in a context, ask yourself if there should be new contexts that encapsulate those different conditions.
This goes well with Sandy Metz design philosophy of conditional logic being a code smell.
Thanks for this comment! I've learned that conditional logic can be a major PITA and try to avoid it, but I often find myself wondering what the best way to do this is. I found this talk very helpful in that it not only showed one possible solution, but walked through a 'real-world' case.
I think a repository showcasing this style would be a great reference.
Great stuff! I really like the design of the example problem in the presentation with increasing complexity. One question: in the scenario presented - what happens to a job from JobPublishing after it has been published to JobBoard? Is it deleted from JobPublishing/jobs table?
This is an amazing talk. Thanks Maciej!
king