tag:blogger.com,1999:blog-6889884053798500413.post8835936879899999061..comments2023-10-06T07:56:08.792-07:00Comments on The way things work in Llewellyn's world: 5 ways to do Decision trees in C#Llewellyn Falcohttp://www.blogger.com/profile/11668997629228826023noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6889884053798500413.post-55777237238001731282016-08-09T11:06:23.926-07:002016-08-09T11:06:23.926-07:00I had a lot of fun at #Agile2016 and this was a gr...I had a lot of fun at #Agile2016 and this was a great way to start the morning. Highly recommended kata for people looking into Legacy Refactoring and Mob Programming.Chris Lucianhttps://www.blogger.com/profile/10608064402088472431noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-59553812399160385552016-07-30T23:28:58.370-07:002016-07-30T23:28:58.370-07:00This comment has been removed by the author.Henrik Ebbeskoghttps://www.blogger.com/profile/05305732829177950446noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-19569572346742245632016-07-30T23:26:33.101-07:002016-07-30T23:26:33.101-07:00This comment has been removed by the author.Henrik Ebbeskoghttps://www.blogger.com/profile/05305732829177950446noreply@blogger.comtag:blogger.com,1999:blog-6889884053798500413.post-67384664360165438542016-07-30T13:31:08.092-07:002016-07-30T13:31:08.092-07:00Option 1a: invert the `if`s and save the results. ...Option 1a: invert the `if`s and save the results. Not sure if it's better or worse than #1, but it's a little shorter.<br /><br />1a: invert the if. Not clear if it's better or worse, but some people might <br /><br />https://gist.github.com/JayBazuzi/cea91f55a8ff2d117ea537fa7914d9ef<br /><br />Option 4a: as long as you have a `DoIfNull()` method, just inline the use of the local: https://gist.github.com/JayBazuzi/c93ac3f8da87983b0d8a1896160fda97<br /><br />I like #5 (chained `??`) the best.Jay Bazuzihttps://www.blogger.com/profile/08378140547104387042noreply@blogger.com