490
CompareBooleans (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] InFerNo@lemmy.ml 2 points 2 days ago

Make the input variables nullable, then add checks if the values are null, then assign default values if they are, otherwise continue with the passed values.

[-] Acters@lemmy.world 2 points 1 day ago

Good idea but not feasible as that could introduce unknowns. Unfortunately making defaults when null is counterproductive as we are looking to increase LOC without introducing odd behavior and having no changes to how the overall function works. The only objective is to increase LOC.

this post was submitted on 28 Oct 2024
490 points (100.0% liked)

Programming Humor

2593 readers
7 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 1 year ago
MODERATORS