The best way to learn to program is to work on projects, so here’s some ideas for projects for beginners, intermediate, and advanced programmers. Remember: it doesn’t matter whether or not you finish these projects. What matters is what you learn along the way. If you have any ideas for things to add to this list you can leave a comment with it.
Pseudo code (good for warm ups):
- Write a procedure for a made up assembly language that blinks a light on and off.
- Write a procedure for a robot that has it replace a tire on a car.
- Create a finite state machine diagram for a mobile robot that finds a red ball and returns it to the robot’s charging location.
- Write a procedure for sorting a given list of numbers from least to greatest.
- Write the pseudo code for a self-driving car that can go around the block.
- Write a procedure for a computer chip that opens a window when it receives a radio signal from a button.
- Do some research on how ants in an ant colony behave (basically how ant colonies work) and come up with the pseudo code for a robot ant that will work with other robot ants to try and act like an ant colony.
Assembly:
- A program that exits with return status 0
- A program that prints “hello, world”
C/rust/zig:
- A Linux kernel driver for a USB button.
- A C standard library that has memory allocation using the buddy algorithm.
- An arduino program that blinks an LED.
- An arduino program which turns on a motor which closes or opens a window based on the temperature.
- A program that uses loops to print out the lyrics to 99 bottles of beer on the wall.
Golang:
- A library that parses xml concurrently.
- A Simple web server that serves up one html page.
- A web server that serves up all files in the current directory.
- A concurrent pipeline that reads in MNIST samples and uses image magicke to turn them into files, and maybe apply some optional filters.
- A concurrent system that runs dijkstra’s algorithm.
- A web server that uses youtube-dl to download youtube videos automatically, save them, and play them back to whoever owns the server.
- A program that uses concurrency, and image magicke to automagically fix the gamma settings for a huge number of image files in parallel.
- A reddit scraper.
- A program that takes in a list of urls from standard input and (in parallel) checks each of them to see if their servers are up, and the prints to standard output the names of any that are not responding.
Prolog:
- A script that helps you pick out parts for a PC.
- A simple package manager using an sqlite library.
- A script that lets you access firefox web history and use readln to issue queries about it.
- A script that acts as a pharmacist.
- A script that checks the school schedules of a student for overlapping classes.
- A script that extracts all links from an html page (note: you will need a library for this).
Haskell:
- A program that takes an integer and tells you if the integer is prime using a parallelized brute force method.
- A password cracker that uses the Control.Parallel.Strategies library.
- A program that takes in an adjacency list as a CSV file and spits out an adjacency matrix.
- A program that runs K-means image segmentation on it’s input using the accelerate library for GPU acceleration.
- A neural network library that uses dependent types, and the accelerate library.
- A program that can lazily generate all possible tweets.
- A program that lazily generates and prints the fibonacci sequence (note: you will have to set stdout buffering to line buffering).
Bash:
- An rsync wrapper that backs up your files using snapshot backups.
- A program that finds duplicate files in a directory and makes them the same file using hard links so as to save space.
- A script that grabs a random line from a given file.
- A script that renames every file to include the date and time it was modified in the file name.
- A script that uses a regular expression to check if a given input is a valid phone number.
- Write a script that goes through a directory and all of it’s sub-directories and deletes all images.
Lex and Yacc:
- An XML parser.
- A C compiler.
- A programming language that has all the features you wish other programming languages had.
- A parser for the wavefront obj file format.
Erlang:
- A simple web forum using the yaws program.
- A gopher server.
- A bank website.
- A server that can serve up videos.
- A Debian package server using this specification.
- A mastodon web server.
- A web server that says “Hello, world” via a web page (use yaws to make this easier).
- A server that takes in lines from over a network connection, shuffles them, and then sends them to a different specified connection (note: you should assume that not all the lines being given to the server can fit in the memory of just one computer).
Python:
- An XKCD comic downloader.
- A script that uses AI to draw googly eyes on images.
- A program that simulates a galton board, and prints out how often each pocket gets a ball in it.
- A calculator program with a GUI using a GUI library.
- A program that prints out the lyrics to 99 bottles of beer on the wall using loops.
- A program with an interactive prompt that asks the user what it should do and makes function calls to various things it can do (like “remove [filename]” or “tell me the time” or something).
- A program that asks for two numbers, and then calculates the length of the hypotenuse of a right triangle with those two numbers being the side lengths (hint: use the pythagorean theorem).
- A program that uses objects to keep track of cars for a dealership.
Lisp:
- A script that takes in a list of birthdays and the names of people associated with them, checks the date, and says happy birthday to anyone who’s birthday is on the current date.
- A script that takes in a list of numbers and tells you how often each number shows up.
- A program that takes in a list of numbers and returns the average, and standard deviation of those numbers.
Octave/Matlab:
- A script that uses rotation, scaling, and translation matrices to trilaterate the position of a thing given it’s distances to four given points in 3D space.
- A neural network script.
Pytorch:
- A script that can read a text file and summarize it using transformers.
- A script that can look at a picture of an injury or something and provide a diagnosis using AI. Bonus points if you can write a script that automatically scrapes images from the web of injuries as your data set.
Projects where you’ll have to decide on your own what language to use:
- A program that reads in a wavefront obj file and displays it in a window, and the user can rotate the model around to see it from different angles.
- A twitter client that uses ncurses.
- A quick script or program that can generate the sound of what hydrogen should theoretically sound like when excited.
- A remote controlled differential drive robot (note: this will require some knowledge of electrical engineering).
- A program that argues with the user (bonus points if it uses AI).
- Add a new feature to an existing project on github.com
- A series of programs that enables you to create a genetic breeding model for machine learning.
- A program that reads an image from a file and blurs it using the image magick library.
- A web server that accepts images uploaded from the user and let’s the user view them afterwards.
Fam, i’m a beginner programmer. Not a beginner genius. How the hell is someone dumb like me going to be able toBuilda concurrent system that runs djikstra.
I barely could do Hello World
That one was meant to be for more intermediate to advanced programmers.