Skip to main content
GameDev.net gamedev.net
🔒 Locked

Programming practice

Started by Frosty14 Mar 6, 2010 at 8:37 PM 4 replies 1.5k views
Original Post
Frosty14
Frosty14
I hear many new programmers as well as veterans often wanting to work on their programming skills and simply has nothing to code. What I mean by this is that they can't think of anything they can program at the moment.What I've decided to create a thread in where the community can assign and solves exercises. All exercises should be able to be done in any or at least most programming languages. Feel free to add an assignment here and leave all responses in this thread. I'll start it off.All my assignments will be posted in this thread and it will be vary in difficulty. Task #1: Difficulty - Beginner Ask the user for a 3 digit number and print out the 3rd digit. If the user enters anything more or less than a 3 digit number, request that a 3 digit number must be entered.
Telastyn
Telastyn
Seriously? No projects to code? I have about 4 large projects that I wish I had time/motivation for. And if I'm going to practice, it's going to be in a new language or with new idioms. For that I don't want a new project, I want something I've already done (and can thus focus my attention on the language/idiom, not the problem).

This isn't quite applicable, but Rosetta Code has a good list of basic stuff that I used when I was making sure I had my bases covered while doing language design.
BrickInTheWall
BrickInTheWall
Task 2:
Write your own operating system using mainly Assembler.
Fate fell short this time your smile fades in the summer.
frob
frob
I have found it useful to go through old programming books from college days and re-implement the algorithms in them.

Most of the assignments that took me a long time back then (or that were never assigned, or that were assigned and I never bothered to do) can be answered in just a few minutes.

It provides a review of concepts that I have forgotten.

It also brings up some fun exercises like the Josephus Problem, iterative methods like proving dollar-cost averaging, and tidbits of classic math solutions like Euclid's GCD function and Fibonacci coding.



It is also fun to compare my solution today, in a language of my choice, with the solutions presented in the rather old books.
Red Ant
Red Ant
Quote:
Original post by szecs
This goes in the opposite way with me: I'm not a programmer, but I have projects to work on.


The way I see it, if you're programming a lot, you're a programmer, regardless of whether or not you do it for a living.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.