<p>Courses for people who are being introduced to programming very often include a code project, which I think is a nice way to learn. However, such projects often feel too artificial, and are thus not very rewarding to work on.</p>

<p>What are your ideas of rewarding code projects? (Preferably easy to begin, and extendable at will for the more advanced!).</p>

<p>Edit:</p>

<p>@Mark: thanks for the link, though I'm more interested in projects for people who are completely new to programming (the link seems to refer more to people who are already proficient in at least one language, and trying to learn a new one -the typical SO audience I'd say :) -).</p>

<p>@Kevin, Vaibhav, gary: I was thinking of people who are learning programming through one language, so at the beginning of the course some don't know anything about control structures (and even less about any kind of syntax). However, I was thinking in quite a large project (typically in the 1k-10k lines of code range, possibly in groups of 2 or 3 students). This is what was done at my school for the complete beginners, and it sure seemed to work for them... except that most of them found their projects quite boring to work on!</p>

[{'answer_id': 26786, 'author': 'Kevin Pang', 'author_id': 1574, 'author_profile': 'https://Stackoverflow.com/users/1574', 'pm_score': 0, 'selected': False, 'text': '<p>It really depends on what you\'re trying to teach the beginner.  If you\'re trying to teach syntax, then simple "Hello World" programs and ones that spit out every odd number between 1 and 100 are fine to get them started.  If you\'re trying to teach data structures, then maybe something like a 20 questions game or some simple sorting program.  If you\'re trying to teach recursion, then maybe a breadth first search program.  If you\'re trying to teach database manipulation, then something like a order tracking system would be appropriate.</p>\n'}, {'answer_id': 26801, 'author': 'Vaibhav', 'author_id': 380, 'author_profile': 'https://Stackoverflow.com/users/380', 'pm_score': 1, 'selected': False, 'text': '<p>If you are training new people in your company, then attaching them as intern resources on a live project is very rewarding.</p>\n\n<p>This increases the work load of the main developers a little (because they have to review all the work that the intern does), but goes a long way in terms of training and development of the person.</p>\n'}, {'answer_id': 26835, 'author': 'Pascal', 'author_id': 1311, 'author_profile': 'https://Stackoverflow.com/users/1311', 'pm_score': 2, 'selected': False, 'text': "<p>Some good rewarding projects, in terms of what you can learn and which are quite scalable in terms of complexity, features are:</p>\n\n<ul>\n<li>Games</li>\n<li>A travel and transportation reservation/booking system</li>\n<li>Encyclopedia or a Dictionary of terms, articles</li>\n<li>Conversion Calculators (Currency, Units, etc.)</li>\n</ul>\n\n<p>The key is to pick a project simple enough, so that some of its features are immediately apparent, when you look at the project title. And when really given a thought, will reveal more features that you can add to it. </p>\n\n<p>The project should have enough difficulty to so that its features seem just beyond the beginner's reach, thereby motivating him to learn something new all the time.</p>\n"}, {'answer_id': 26852, 'author': 'Marc Reside', 'author_id': 1429, 'author_profile': 'https://Stackoverflow.com/users/1429', 'pm_score': 3, 'selected': True, 'text': '<p>As has been stated a few times, what you are trying to teach the beginner is very important to the project.</p>\n\n<p>My advice to you for planning something like this:</p>\n\n<p>1) Avoid making a computer game</p>\n\n<p>A computer game, while fun to build, doesn\'t reward the programmer with results early on (it\'s very complex). You want to concentrate on small but useful application programs, such as a <a href="http://www.stromcode.com/2008/03/01/cwin32-tutorials/" rel="nofollow noreferrer">Port Scanner</a>. The example there is a little complex, but it\'s one of the best learning projects I\'ve seen on the web.</p>\n\n<p>2) Teach graphics early</p>\n\n<p>It\'s rewarding to see the fruits of your labors early on, and it motivates you to go further. Whether you\'re using WinForms, MFC or the Win32 API, OpenGL or DirectX, teach it early.</p>\n\n<p>3) Many small lessons with in depth information</p>\n\n<p>This principle is followed by the above linked Port Scanner project, and it works well. Teach each part thoroughly, and give time for the beginner to absorb the lesson. I think that <a href="http://zophusx.byethost11.com" rel="nofollow noreferrer">ZophusX</a> had a good format for giving the information. It\'s too bad he\'s mostly abandoned his site.</p>\n\n<p>4) It takes time</p>\n\n<p>Don\'t rush things. Nobody becomes a stellar programmer in a few weeks. Try and make the lessons simple, but engaging, and keep building from your previous lessons.</p>\n\n<p>5) Get feedback early and often</p>\n\n<p>You might think a project is incredibly interesting, or a particular lesson or such, but you aren\'t the one learning. Your student(s) will greatly appreciate it when you ask them early on how things are going, and what they\'d like to know more about. Be flexible enough that you can accomodate some of those requests.</p>\n\n<p>6) Have fun teaching</p>\n\n<p>Have fun. Passion is contagious, and if your student(s) see how much you enjoy the subject matter, some of that enthusiasm will rub off on them as well.</p>\n\n<p>I hope that helps!</p>\n'}, {'answer_id': 35449, 'author': 'Tim Ring', 'author_id': 3685, 'author_profile': 'https://Stackoverflow.com/users/3685', 'pm_score': 1, 'selected': False, 'text': "<p>I do think that games and puzzles are a good place to start as they can give great scope for developing more complex versions. For example a <strong>tic-tac-toe</strong> program can be built as a simple command line program initially that lets two players play the game.</p>\n\n<p>This step can be used to show how a simple data structure or array can represent the game board, simple input to get user commands/moves, simple output to display the game board and prompts etc. Then you can start showing how an algorithm can be used to allow player vs computer mode. I like the simple magic square math algorithm for <strong>tic-tac-toe</strong> as it's based on <em>very</em> simple math. After this the sky's the limit, UI improvements, using file I/O to load and save games, more advanced algorithms to get the computer to play better etc. More complex and satisfying games can still be produced using text mode or simple graphics.</p>\n\n<p>I've used the <strong>Sokoban</strong> game as a means of showing lots of techniques over the years.</p>\n\n<p>The simplest game I've used is a number list reversing game. This involves a mixed up list of numbers from 1-9. The player can specify a number of digits to reverse on the left of the list. The aim is to get the list sorted. This is great for absolute beginners. Each little part of the game can be written and tested separately.</p>\n"}, {'answer_id': 420250, 'author': 'jfs', 'author_id': 4279, 'author_profile': 'https://Stackoverflow.com/users/4279', 'pm_score': 0, 'selected': False, 'text': '<p>Take a look at code examples in the book <a href="http://www.courseptr.com/ptr_detail.cfm?group=Programming&amp;subcat=Other&amp;isbn=978-1-59863-112-8" rel="nofollow noreferrer">Python Programming for the Absolute Beginner</a></p>\n'}, {'answer_id': 420297, 'author': 'Quibblesome', 'author_id': 1143, 'author_profile': 'https://Stackoverflow.com/users/1143', 'pm_score': 0, 'selected': False, 'text': "<p>Text Adventure.</p>\n\n<ul>\n<li>It's a console app</li>\n<li>You'll need to do some useful things, hold inventory, map and room state and parse input</li>\n<li>It's fun and you can give it to others to play! :D</li>\n</ul>\n"}]
['https://Stackoverflow.com/questions/26771', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2638/']