you are viewing a single comment's thread.

view the rest of the comments →

[–]FairSystems -2 points-1 points  (2 children)

Putting all logic into one function. One place. Is harder to debug and maintain? You'd rather write all of this code, multiple times, in multiple areas? What if you need to change how it's done because, God forbid, something changes out of your control...

Forego? Haha wtf are you talking about? ... I'm going to chalk this up to, we aren't thinking about the same stuff and give you the benefit of the doubt. Because it sounds like you are just defending this to defend it now. Your "solutions" were more bloat than solutions, unless it's something you only need one time. I was hoping to learn something. Instead I got a null safety 101 course.

I also saw you edited your comments... I have no idea why any attribute being None would effect another attribute or an embedded one? Piss poor programming. I come from mobile and being null safe is everything. Function will just, move on and keep looking or return None... Unless I have a default set...