|
|
|
|
|
by its_magic
143 days ago
|
|
I would just say, on a positive note, it looks exactly like something a 17 year old would create--a brilliant 17 year old who is going places in life, that is. I would strongly reiterate that the GIGANTIC RAT'S NEST of brackets needs to be cleaned up as that will never, ever fly. The root of the problem seems to be either a) you're doing some kind of auto-generation of code in a crazy way, or b) a dogged insistence on not putting 'else if' on the same line due to some kind of stylistic concern...the sort of mistake a very bright but slightly autistic young man might make. Refactor the code to fix this please and you will have to admit it ends up looking WAY nicer, and most importantly, will be a thousand times easier to maintain. Keep it up, you will go far. The next version will be better. They always are. Congrats on getting on HN! |
|
You've pinpointed the exact issue - it's option (b). I developed a personal style coding in isolation and didn't learn conventional formatting. The "else if on separate lines" pattern became a habit that snowballed into that brace nesting.
I'm fixing it now. You're absolutely right that it will be much more maintainable.
The "brilliant 17 year old" comment means a lot. I'm learning that part of brilliance is knowing when to follow established patterns. Thank you for the mentorship through critique.
The cleanup starts today.