News for hackers. Stuff that matters.
Re:Ask HN: Beginner code projects? by mattgreenrocks on Friday June 10, 2011 @12:05AM (#2639760)
Good question. I'll speak to what I'm familiar with.

For networking, a command-line TFTP client/server is a good exercise. Pay close attention to how to handle the corner cases that crop up, and try your code against a few implementations. If you're interested in protocols, you could use libpcap to read raw packets and write a simple protocol analyzer to read packets on your home network.

If you want to focus on software architecture (e.g. how do I build a system that is maintainable as it gets bigger) you should pick a pet project, follow through, and iterate on it mercilessly until you think you hit a maximum of readability and low coupling. Then show someone who's better than you, and talk about it. I did that with an IM client and learned an awful lot.

Also, dabble in metaprogramming and concurrency. They'll pay off eventually, even if they seem esoteric right now.

There are no comments on this comment yet.