S
Seebs
The flaw in his approach is that he's not outlining his solution
before writing the code. I'm a professional developer [been working
for nearly a decade in crypto/swdevel] and I still mock out complex
functions [like say PKCS #8 parsers] in comment blocks before writing
any C statements.
I think I agree with this analysis -- especially because it describes
what I tend to do wrong too. I'm wayyyy too inclined to jump in and
start typing.
Yeah but he doesn't know what he's doing. He needs to think
abstractly first. E.g., what am I doing, what are the discrete steps,
etc.
For many people, thinking abstractly about something requires first having
gotten some hands-on time with it. In short, they *can't* do that first,
until they've done something else a few times and developed the necessary
infrastructure. And the only reason I say "many" and not "all" is that there
appear to exist a handful of counterexamples. (I'm probably one of them;
I handle concrete things better if I've been given a purely abstract map
of the space first.)
My solution is shorter because I thought about the problem for a bit
and came up with that.
Also, I think, because you are not trying to solve unsolvable side-problems.
-s