Quote:
Originally Posted by Shoe Lace
Wow, worst advice ever maybe? Here's a tip, you learn by iterating. You don't learn by doing the same garbage code over and over.
The way I interpreted is: "Don't rewrite something that already functions just so you can feel better. Sure refactor, create extra namespaces (don't ask), and clean up what you already have, but don't rewrite the same friggin' program for ego purposes."
Considering the generally up/down learning curves we all experience, I can understand the argument. There is something to be said about doing things by the book, but humans tend to think that once the book stuff is understood, then it is time to break some rules, and the danger is that a little experience tends to create over-confidence, thus you end up breaking all of the rules, and that is not good. I guess the poker correlation is you start up playing by the book (TAG), then you think you know all the rules, so you loosen up (LAG), then realize you don't know all the rules to break, so you go back to the book (TAG+ Bruised), then reiterate.
I was looking at my code-base and it is so obvious what parts were written first and what parts were written second. I already did a ton of refactoring. The example I posted earlier where I used string-args was just awful, but at least that and similar stuff is gone. I just see a ton of little things that irritate me, that's all, and it's not hard to convince yourself that rebuilding from scratch would be easier than maintaining or upgrading.
With that said, I think it would be a good idea to add new namespaces to clarify the organization of the code more. I get very nervous when I see files that exceed 100 LOC (that roughly translates to 3,000 LOC of Java, LOL). It also doesn't help that I am using the knowledge base gleaned from about 350 pages + using a programming language that I'm not familiar with at all. The good news is that I bought Programming Clojure the other day and that helped me to clarify some meta-design issues I was undecided about.
Quote:
Btw _dave_, can you perma. ban me from this sub-forum? I came to the conclusion that nothing good comes from viewing and posting here.
I enjoy reading your posts: you encapsulate the balls-to-the-wall hacker spirit, and there is always lively debate. I give you tons of credit for turning jQuery into a meme
.
Quote:
Originally Posted by jjshabado
I think his point was that you don't totally rebuild something that works just for the sake of making it better. Obviously the next time you do something you do it better.
I suppose that, if you were to refactor, add new features, and fix code as you go along, the base you have in 5 years wouldn't look completely like what you have today, right?