Ask HN: What are important topics for new programmers?
1–10 of 18 posts
Re: Ask HN: What are important topics for new programmers?
#2Just try to get the concept, and know that there are certain patterns you can use for correctly structuring and architecting your code. E.g. factory pattern, dependency injection, observer, etc.
Re: Ask HN: What are important topics for new programmers?
#3Re: Ask HN: What are important topics for new programmers?
#4Re: Ask HN: What are important topics for new programmers?
#5Re: Ask HN: What are important topics for new programmers?
#6The first will make sure you can do work, the second will make sure that you can explain your work to other people, and the third ensures that you'll be paid well for your work.
Re: Ask HN: What are important topics for new programmers?
#7I think it's too common to have "instant gratification" tutorials where you learn some trick or some library to make a particular technology do what you want (for example, some little javascript or css snippet so that when you move your mouse over some text, it disappears). That's not real programming. Sure, a lot of work has to be put into learning little tricks and new libraries and whatnot, but real programming is thinking about data structures in an abstract way and manipulating them.
Get them to write a todo list application with the ability to sort the items in the list. The interface isn't terribly important, so try to get them to care more about the data structures.
Also, I've found that implementing Conway's game of life is useful. The map can be stored in several different ways (e.g. simple matrix of cells, two-dimensional linked list of live cells, quadtree as in hashlife) and manipulating each of those structures would give them techniques that are useful in many situations.
Re: Ask HN: What are important topics for new programmers?
#8Re: Ask HN: What are important topics for new programmers?
#9Many consider algorithmic knowledge to be the holy grail of programming, but you easily spend 10x more time with basic structuring and restructuring code.
Don't confuse designing algorithms with problem solving; debugging, refactoring, even naming functions are all problems you're solving. Heck, I bet you're not even designing algorithms, you're simply implementing known algorithms (and modifying them to your needs).
Re: Ask HN: What are important topics for new programmers?
#10If you can't express yourself clearly to your peers and managers, you won't control your career. If you can't work well with people, you won't control your career. If you don't understand the business context of your work, you won't control your career.