Its so tempting to just nest them forever! I mean, I know there are plenty of efficient ways of doing the same thing that I'm doing in my code, but just nesting if loops until the problem goes away just feels easier to me. So long as I don't mess up with my braces or my indentation (which I don't, ever), it works out fine for me. Once we run into a genuinely complex program I'm sure that I'll be forced to snap out of it, but for now its a bit of a struggle.
No comments:
Post a Comment