Click here to Skip to main content
15,889,354 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey! I have been learning how to program for some time now, and after reading an article about how self-taught programmers usually have bad programming habits, i'm afraid I may get, or already have, some of these bad habits. So my question is: are there any tutorials out there that are "real" or tutorials that do not teach bad coding habits? If you know any, could you give me the information of some? Thank you for your time! Have fun coding, and have a great day!

edit:

Woops! Forgot to tell you what programming language i'm using! You can't find a tutorial for me if you don't know what i'm learning! For now, i'm learning javascript and someone html/css!
Posted
Updated 17-May-15 13:48pm
v2
Comments
Sascha Lefèvre 17-May-15 20:29pm    
> For now, i'm learning javascript and someone html/css

Yes, you do have bad coding habits! Haha.. small joke, sorry ;-)
I was about to write an answer but then realized you were not talking about C#, for which I could have suggested some coding style guides to read. Since I don't know about coding style guides for Javascript, I can now only suggest you to search (google) for something like that.

Write code and then do some other project. Then read your own code in two weeks or, better, in a month. If it irritates you or hard to understand, you have bad habits. You should understand how your own code works even if you forget it and then read again after years of not touching it.

—SA
 
Share this answer
 
Comments
Peter Leow 17-May-15 23:26pm    
5ed.
Sergey Alexandrovich Kryukov 17-May-15 23:29pm    
Thank you, Peter.
—SA
Peter Leow 17-May-15 23:33pm    
The stars seem to not appearing after refreshing???
Sergey Alexandrovich Kryukov 17-May-15 23:42pm    
It could be. I know there is a problem, cannot catch is precisely.
I don't see you vote, too, but I see one vote at "Last Reputation Events" of 17 May 2015 11:32pm Eastern Time (USA & Canada).
Maybe you can remember what happens step-by-step, as it seems on your side, and report the problem at Bugs and Suggestions?

Thank you.

—SA
Language is not an issue here, I think good practices are mostly generic. There are many articles on the Internet. However, it is sometimes controversial. So do take them with a pinch of salt. Be critical, experiment and then decide. These links will get your started:
1. http://simpleprogrammer.com/2015/03/16/11-rules-all-programmers-should-live-by/[^]
2. Coupling and Cohesion[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-May-15 21:25pm    
"Generic" is a bit of exaggeration. A lot is generic and a lot is not. For example, good Python code is "pythonic". :-)
The articles you referenced has a lot of good points, but only if they are considered just as food for though, not instructions. All the items have some room for arguments.
—SA
Peter Leow 17-May-15 23:25pm    
Noted, Sergey. Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900