One thing about self-studying code is that there is not really any great resources that teach you to code “beautifully”. Most books and courses throw a bunch of expressions and functions at you one at a time and then give you an exercise that requires you to put some of them together to accomplish a task. (Actually, a lot of books don’t even do that. They just keep moving on to the next function. They teach you to code, but they don’t teach you to code well.)
While FCC is awesome in many ways, this is one area where it too comes up short. Unless I missed something? Is there an area or part of the site where we can see elegantly coded algorithms and such?
I’ve always found this to be one of the biggest problems with self-study materials. There’s often more than one way to do something and while there are times that an alternate way might actually provide an advantage in certain cases and not other, there are also times where one way is the clear winner over another.
I can make my programs do what I want usually. But my problem is that I am constantly feeling like I’m writing crappy spaghetti code instead of tight elegant code. How can I get over this feeling and where can I go to learn some common “bad programming habits” that I might have to be careful for?