News for hackers. Stuff that matters.
Re:A minimalist lifestyle does not make you a better person by robryan on Thursday October 07, 2010 @10:45AM (#1767984)
Going a bit off topic but I really hate when you have a bit of code you can either have 2 functions with some repetition or one function that gets ugly because of the number of if statements required based on parameters. Both options feel suboptimal.
Re:A minimalist lifestyle does not make you a better person by HeyLaughingBoy on Thursday October 07, 2010 @01:04PM (#1768483)
I've found that sometimes passing in a function/function pointer as a parameter makes this a lot cleaner.