Ask Slashdot: Beginner To Intermediate Programming Projects?
An anonymous reader writes "I've been teaching myself to code recently. I've made good progress so far, and I've written a bunch of little scripts to make my life easier. Here's the problem: most project ideas I come up with now either seem pretty easy or pretty impossible. I'm having trouble thinking of a project that'll stretch my skills without overloading them. I've tried finding open source projects to read through, but I run into the same thing: either it's straight-forward, or it requires reading a half-dozen dependencies, each of which has dependencies of their own. Anyone have suggestions on some intermediate-skill projects to undertake? Or some project files in an online repo that go beyond the basics without getting overwhelming? My language of choice is Python, but other languages are welcome."
I would suggest getting an Arduino. There's tons and tons of example code out there at all levels of expertise. And it's fun.
The ones I like have examples you can work through and eventually get working locally. A couple dozen dependencies are a common occurrence in most code projects, so we just work through or around them depending on what needs to be done, so just know if you ever want to contribute you'll just have to suck it up, but until then books w code examples and problems are a good stepping stone and if you comprehend what's inside you'll become a top-tier programmer in no time.
Programming isn't an end to itself. Well it can be but, generally we program to do something else - payroll, missile guidance, selling stuff over the internet, etc.
What else do you know? Are you an expert in newt farming? Write an application to automate the tedious aspects of new farming.
Once you have a problem to solve, it becomes attackable. Having to hunting around for the right sized problem suggests you aren't acknowledging the problems you already have.
I should use this sig to advertise my book ISBN-13 : 978-1501515132.
project Euler
Do a small piece of something impossible in such a way that you might be able to integrate it into the impossible thing later once your kung fu is strong enough. To tip the odds in your favour, do a piece of something that seems impossible but is something you're super passionate about. It'll help you overcome the hurdles more easily.
I have found looking for things in my everyday life that could be made easyier or better with the use of programming such as general computer use and so on.
a good example is i wanted to lower power usage in my general computing so i recycled and old eee to use as a master machine to turn on and off my other computers as i needed them i used python php and shell script.
so i recommend just look at the things you do and try apply programming to it, hope this suggestion helps and lots of luck!!
You could build a small game in Pygame!
http://www.pygame.org/
A basic banner ad type game tutorial.
http://www.pygame.org/docs/tut...
Don't sneer at the easy/simple/etc... Just because they seem so at first blush doesn't always mean they are so once you get into them. Not to mention, working on the basics never hurts no matter what you're trying to learn.
Many websites offer lists of programming patterns http://rosettacode.org/wiki/Rosetta_Code I like rosetta code but there are many more websites, plus books to peruse. Try to find what fascinates you and see if any new ideas come out of it.
Break up those "impossible" projects into manageable chunks. That's sure to be a helpful skill when you move into even larger projects.
Games are a classic programming project. Depending on your level of interest, you could go with something fairly simple (like a card game) or an implementation of a classic video game (something like Breakout or Space Invaders). I've had friends who wrote simple role-playing games as well.
I'm anxiously waiting to see what Wrox's "Python Projects" book might be like... (Not sure I can post links here, but it's easy enough to find.)
... and if that is all that stands between you and every single project that isn't "too easy" for you, then THAT is exactly what you should be working on.
However, you can learn SDL and fairly easily use it with C and/or C++ and make simple games and graphical apps with no or at least very few additional dependencies.
and not just a offshoot, like say C to C++ or C#. Just a completely different one.
It may make the impossible seem possible. And a bunch of other new insights.
When all you ever used is a hammer....
Study Zen. Not from a religious standpoint but from a philosophical one. Once you grasp these concepts, you are ready to become a programmer or anything else you want.
The first lesson is that an object falls into a pond directly. The object splashes directly. The object sinks directly. The sequence out of order is unnatural.
Okay so this idea informs you about security, and about data flow. More lessons await! :)
The dangers of knowledge trigger emotional distress in human beings.
The two sites checkio and hackerrank can probably provide you some challenges. They will force you to learn some algorithms (trees, graphs, etc.) which will provide you with tools you need for more complex projects.
I wrote a torrent-based DVR in python. It was fun and educational because interest and focus was easy to maintain.
Think of something you want to automate or make easier for you, first.
Make a game. Or contribute to an existing open source game. You can easily set and adjust the scope and depth of the project so that it's fun and challenging. Chances are, you already play some games you like, and chances are you can get inspired for your own game project there. And perhaps others will even find it fun to play.
Somehow, when I get playing a game for any period of time, sooner or later I slowly switch to hacking the codebase as it ends up being even more fun. :-) If you're interested in building a non-trivial game, you may find it interesting to take a look at the code of existing open source games and start hacking them. You will find fun and rewarding low-hanging fruit features lying all around. In strategies - Freeciv, OpenTTD, Wesnoth, Widelands..., arcades like Supertux or Stepmania or even FPS like Xonotic. Or UI or computer player for a board game.
Games are also nice because they are very multi-faceted - you can start by adding simple features, but also work on optimization and better core algorithms, graphics programming, network programming, improve the user interface, porting it to a new platform or have a go at building an AI computer opponent. Hey, try building an AI for OpenTTD, none of them is perfect and they have a nice plugin system. And if you get more involved, imho they look pretty cool on a CV of any programmer.
It's not the fall that kills you. It's the sudden stop at the end. -Douglas Adams
Project Euler is good if you are interested in algorithms.
Software is all about relationships between different bits of code, structures (classes), and behaviors. There are tools that can take a bunch of code and turn it into graphical models that help understand better how this stuff works together and is related. The modeling language is called UML. One great tool I use is called Enterprise Architect from Sparx Systems (an Australian company). I frequently use it to generate UML models from source code in order to better understand it. It isn't expensive (full professional version for about $200USD), and you can get a full version on a 30-day free evaluation if you want. Go to http://www.sparxsystems.com/ for more information. They also have less expensive versions, student licenses, etc.
Sometimes, real fast is almost as good as real-time.
When I was in graduate school I had to write a C program to simulate the operation of a small custom microprocessor. It was a truly fascinating experience (and not terribly difficult). You can start with something really simple like a MIPS variant and go from there. I actually had to write several simulators at different levels of abstraction (one only simulated the instruction set, another simulated down to the microcode, etc). Just simulating a small instruction set is a great way to get started.
The cool part of this kind of project is it gets you learning so many different things out of necessity. To run assembly code on my C-based microprocessor simulation I had to learn to write assembly language programs. Then I had to learn how to write an assembler (I did it in C but if I were doing it today I would use Perl or Python) to generate object code for my microprocessor simulation.. Then to debug the microprocessor I needed to write a disassembler and so on.
The microprocessor was microcoded so I also got to learn how to write microcode to verify fine details of the microprocessor. I got some great insight to computer arithmetic and really enjoyed it.
I can't tell you what a cool experience it is to see a simple assembly code you wrote run on a microprocessor simulation you wrote. This can lead to getting involved in emulation but I didn't do that. I'm in the chip design business now so I write simulations and models of all kinds of analog and digital circuits and it is a blast.
One small project that also gives you a useful tool is building a really simple web front-end for a database. I'm not talking about anything complex like a CRUD layer, just an HTML form with a multi-line input box where you type your query; then when you submit the form, produce an HTML table with the result rows/columns.
To get started, you don't need a database server - you can just use SQLite. You also don't need a web framework - you can just do it as a CGI script initially. Then once you have something working there are many directions you could take it ... allow the user to select CSV output rather than HTML; 'port' it to work with a real DB like Postgres or MySQL; reimplement it using a web framework (say bottle); allow the user to save/recall/edit queries; make the UI 'smarter' by having the backend provide a list of tables/views and columns and use JS to make some sort of query builder.
Try adding new features to your existing simple projects. If for example you are a musician, your beginner project might have been a simple metronome app. You could then hone your UI skills by creating a new interface for easier dialing in a tempo rather than the simple text field widget you used initially. Or you could try enhancing it to accent the downbeat for various time signatures (for which you will also need to come up with more advanced UIs). Then you can enhance the beat generation code even further to play custom rhythms rather than a constant beat. Poke around in the audio APIs a bit to allow a choice of what sound is played for each beat. Before you know it, you have built a beatbox app.
I wouldn't recommend that sort of tinkering on a production app, but for personal projects coming up with new features for existing projects is a great way to hone your skills as you can make each step as big (today I will explore the MIDI APIs) or as little (today I will learn how to use a number spinner widget) as you want.
I'd go for the classic medium and I want to get better SICP.
Online course: http://ocw.mit.edu/courses/ele...
Online book + problems +... http://mitpress.mit.edu/sicp/
This book more than any other will take your programming to a new level.
If you are really trying to get to an "intermediate" level you could start doing simple data structures and algorithms. Learn the classic sorting routines, linked lists, etc. Once you understand those you can start seeing how they are used in large programs. Look at some of the annotated programs -- the Lion's book on Unix is a good collection of readings to see how an operating system is structured for example. Games are a great way to develop your skills but you may not have enough background yet to get very far. Read the Python source code - you may not understand all of it but you will learn how a language interpreter is put together.
Welcome to a long and twisty path as a programmer. Something new to learn every day.
Grab a C compiler like GCC and program a simple game, a torrent defense game us a good challenge, After that grab a micro-controller and write a simple real time operating system.
You'll learn a ton, many of them no longer suck, and it can definitely speed-up the development time of future projects.
On the web I work primarily with PHP and for a long time the frameworks weren't any better than reusing my own class libraries. These days there's some very comprehensive ones that do things faster and simpler than I do already, and have been well worth my time to get better at.
A quick Google search shows there's some mature ones for different use cases of Python as well. Research a few and give them a try. You might just find their automating of the less fun parts of programming to be a huge boost to your development work.
--- Need web hosting?
Specifically, try doing past algorithm competitions - probably starting with their High School level competitions (that may sound insulting, but there's some very good programmers in that division). Once you've done some TopCoder, the data manipulations and calculations you do in "normal" programming will seem really easy. And they always post good solution explanations (or you can look at other people's solutions) to get you started.
Algorithm work like this isn't the end and and be all of programming, but getting good at it will make you better at everything else you do - and you'll understand algorithms at a much deeper level once you've used them hands on at your own prompting (rather than using Dijkstra at the end of the chapter on Dijkstra). You'll also be directly prepared to implement the algorithms you need for games, physics simulations, efficient data processing, and all sorts of "heavy lifting" programming work that many experienced programmers fail at.
Let's not stir that bag of worms...
Block/Tetris pun intended?
Find a simple processor and make your own assembler. Understanding assembly is a great way to appreciate what computers do from a technical level, making a language with a context free grammar delves into computer science, and a wide range of simple data structures like lists and trees are used. It may sound technical, but you if you program in C you only need to be familiar with stdio.h and stdlib.h.
Alternatively make a simple graphics program. If you take the time to learn basic linear algebra you can make your own 3d graphics engine. The input could be an ascii file defining geometry, and the output could be to some basic format like PPM. This would help you learn linear algebra (arguably the most important math for science and engineering) and develop an intuition for it. And besides graphics are fun.
Codecs are also fun, be it they for audio or images. They also have the benifit that you can check the functioning of your work by encoding then decoding data and checking if it matches (resembles if lossy) the original.
I know these sounds like a lot of work, but I'd wager with some effort you'd be able to do it learn some cool useful stuff.
The best learning experience that you can obtain is by re-implementing individual UNIX commands. Start by reading the manual pages of programs like wc, cut, paste and build basic versions, then add some of their more advanced command line options.
Go spelunking at sourceforge!
Game development.
Its a good segue into Java, which is marketable, and advanced OO techniques. The name is unfortunate but it is very useful. It is in fact said it should have been named JavaScript, but the name was taken.
What does intermediate mean? I am not sure. But I would first ID what sorts of problems interest me and then start chipping away at simpler sub-problems related to those problems or problem domains. The as time went on take on more challenging problems in the same problem domain.
putting the 'B' in LGBTQ+
It's really hard to suggest specific projects because "intermediate" is such an imprecise term. Stay away from anything security sensitive, especially WEB FACING security sensitive applications. Web scripts get attacked several times per day.
Other than that, something that can really teach you a lot in a short time is to become familiar with a low-level language like C (not C++). Even if you don't USE C much, being familiar with it will let you understand your Python code so much better - you'll know WHY sort() is so slow in any language, and how to get the top 10 items much faster, without sorting the entire list. Most languages are themselves written in C, so understanding C will let you understand a bit about how every other language works behind the scenes.
Learn a high-level language like Perl, PHP 5.3, or in your case Python. The Perl programmer can finish writing the software while the C programmer is still declaring her variables.
Learn an object-oriented GUI language and subclas one gui element. Microsoft does a great job in this class of languages. (Not printing html, but actually manipulating GUI objects). When you become familiar with VB.NET or C#, and subclass just one gui element you'll "get it" as far as object-oriented programming goes. Python can do objects, Perl can use objects, etc. but they aren't the best way to LEARN objects. The GUI languages let you see objects and by subclassing one you'll understand the power of object-oriented programming.
When I find my code in tons of trouble,
Friends and colleagues come to me,
Speaking words of wisdom:
"Write in C."
As the deadline fast approaches,
And bugs are all that I can see,
Somewhere, someone whispers:
"Write in C."
Write in C, Write in C,
Write in C, oh, Write in C.
LOGO's dead and buried,
Write in C.
I used to write a lot of FORTRAN,
For science it worked flawlessly.
Try using it for graphics!
Write in C.
If you've just spent nearly 30 hours
Debugging some assembly,
Soon you will be glad to
Write in C.
Write in C, Write in C,
Write in C, yeah, Write in C.
Only wimps use BASIC.
Write in C.
Write in C, Write in C
Write in C, oh, Write in C.
Pascal won't quite cut it.
Write in C.
Write in C, Write in C,
Write in C, yeah, Write in C.
Don't even mention COBOL.
Write in C.
Hard to suggest because you don't have a stated goal.
I think you would be challenged by working with selenium and webdriver to control web browsers for developing web tests. This will involve learning xpath which is recommended knowledge if you don't know it. This skillset is marketable, I might add.
That was the turning point of my life--I went from negative zero to positive zero.
A text editor is a project of substance but not too hard. Advantages:
A nice way to learn is to fix bugs in software you use. You will get familiar with the software architecture, and if it is well written, you may get good habits.
The two bits of advice that I have given to a zillion beginning and intermediate programmers are games and ProjectEuler. First project euler is great because it will exercise your math abilities and problem solving abilities in any given language. Few CS people realize how powerful properly applied mathematics can be. PU will get you in tune with that ability.
Secondly I recommend making some games. Pacman, space invaders, something 3D. They don't have to be good. But ideally you move onto multi player.
Basically if you can make a multi-player multi-platform pacman in an isometric view in OpenGL driven 3D with a server(SQL/NoSQL) driven leaderboard with a distrubution/installer module for each platform then you are done. There isn't a whole lot of programming that you can't do.
Not to mention your friends will think that you are a whole lot cooler making a game than when you try to explain the challanges of problem 132 in Project Euler.
Many people here are mentioning Arduino (which I love) it is a cool thing to add to your resume but unless you do something fairly strange then it won't expand your programming skills much. Arduino programming is usually fairly straight forward act / react. Although dealing with crappy sensor data and having motors not do exactly what you meant and then having to compensate is both frustrating and oddly satisfying.
When I moderated a programming forum that had a fair number of beginners I was impressed by how many were implementing systems to keep track of their leagues - Bowling, Golf, Football (soccer), whatever. Pick one and write a system to manage the rosters, schedule, stats, etc.
A really basic and powerful thing to learn: grit! It has helped me tremendously. Continue humbly improving your project, source file after source file, and never give up. Learn to finish a project properly from start to beginning. You will need this skill anyway, when you ultimately delve into the bigger projects, as they tend to get rather complex. But complexity can be managed too, so don't worry about it too much.
Write a calculator.
Sounds easy right?
Good luck.
Stop thinking in terms of difficulty levels and programming problems. Go out there and just do stuff, easy or hard, with the objective of making something meaningful happen. Have another look at Open Source - maybe you don't grok open source and the ecosystem yet, but give it a bit more time and start with the simplest bugs rather than feature development.
Something that I have found particularly helpful is having a go at using open source tools and libraries and then when you find something hard to use (and with a lot of swearing, eventually understand it) go and write a tool or a library to make it easier. There's so many rough edges out there that you can smooth out and these problems tend to have a fairly confined complexity in my experience. You've already started this with your scripting so take it to the next level.
There are a number of problems that are often used as exercises. Textbooks at any level from high school to grad school have examples; here are a few off the top of my head: Games: start with something really easy like tic-tac-toe, then try more interesting games. 8 queens: put 8 queens on a chessboard so that none of them checks any other. The easy version is to just find one solution. It gets a lot harder if you want to do it efficiently and/or find all possible solutions. Doing it in reasonable time for N queens on an N by N board is really hard. Markov chains: Analyze some large sample of text to count how often combinations of words or letters turn up. Then write a program to generate text using those statistics. How long a chain do you need to look at to get more-or-less sensible output?
I'm trying to do a similar thing. I'm pretty decent with Perl (or at least used to be) and know enough C and Java to get myself in trouble. I'm trying to learn Python now.
So... my other hobby is video production. One of the things that's expensive to do is to track a camera so that that it can be replayed to CGI software. This allows almost seamless effects. For example, film an object against a green screen as the camera pans. In normal chromakey, it's quite obvious because the background doesn't track the same way as the camera. You can minimize this by choosing distant backgrounds but this limits you quite a bit. Anyhoo, I'm trying to use the positional sensors in a smartphone to track the movement and later replay it to software such as Blender. It hasn't been easy. In the process I am learning a lot about a lot of things.
What I'm trying to say is that you may learn a lot from complex projects even if you don't succeed in your goal.
You want to use Python, which is a good language for text manipulation. That suggests various projects based on scanning through text. Take any interesting large piece of open source software. How many switch() statements lack a default: case for error handling? You can get a first approximation with a few lines of shell & grep, but doing it right would need a language like Python and a moderate amount of work. What else would be easy to check? Take text samples from several different news sources. How do their vocabulary choices differ? Does that indicate their political biases? Can you program some of the standard indicators of reading level (see Wikipedia)? Do they get different scores?
Find an existing medium-sized project that you use and seems well designed. Look at their bug list. Pick something that seems pretty small, but not completely trivial, then work out how to fix it. This will get your eyeballs on a larger code-base, where you'll see various design patterns in use, and have to work out a clean way to make the fix within that context.
You didn't say directly which OS you're programming on but I'm going to infer it's Linux (common I think with python/open source types). Since one thing I did recently was root my galaxy nexus with the windows-only Wug's Nexus Root Toolkit I would suggest creating something similar to this for Linux. It always seemed strange to me that so many Android rooting tools were windows-exclusive. Doesn't have to be for a galaxy or nexus device obviously, any/all models of android/I'll leave that up to you. This particular root toolkit seems like it would be relatively straight forward to re-create/I don't think it would even take that long and it is actually needed...
I should mention I'm kind of new to android rooting and I have no idea if the equivalent drivers for the various phones exist for Linux as they do for Windows.
"UNIX is very simple, it just needs a genius to understand its simplicity." -Dennis Ritchie
I would move past writing software for yourself. While "intermediate" is obviously subjective, you are very unlikely to be at that skill level if you have never sold software or written software for money. Writing software for yourself is so much easier. You can change your goals based on what is easier or what skills you already have. You don't have to figure out difficult problems just because that is what the customer wants.
Since it can be so hard to find work with no experience, and with no academic credentials, a close second is to write software for free for someone else. I started developing software without a degree by writing CRM/ERP software for small companies (not that I even knew what those initials meant at the time). It taught me not only how to write better software, it taught me how to gather requirements and deal with customers. There will probably still be huge gaps in your abilities because of a lack of mentoring from someone in the industry, but it help you prove yourself enough to get a job in the industry.
Even if you can't find anyone who wants your help with software, a fake web-based CRM/ERP software project is a great way to learn skills that are actually useful in industry. And you will still have something to show employers if they want an example of your work.
-- All that is necessary for the triumph of evil is that good men do nothing. -- Edmund Burke
to start something you're not sure you can finish. i wrote a framework in perl to generate some pdf reports, complete with graphs and automated text. took me quite a while, and a lot of "i'll come back to this part later". i went from the script being used to piece together bash/shell commands, to it doing everything.
but the point is, i kept at it. taking a little part at a time and futzing around with it till it worked a little better.
this is just a placeholder till i send back my real sig from the future.
If you need an easy problem that quickly turns into a nightmare, try writing a program that allows the user to map one set of database/data structure/XML fields to another set of database/data structure/XML fields.
For bonus points the user can use javascript to do the transform, as well as using a nice GUI.
That was actually funny .. I think. ok it was. But it's starting to not be. ok now it's gone.
You're asking the wrong question. Programming isn't an end in itself, it's a means to an end. Ask yourself what practical application you want to accomplish, then teach yourself the appropriate language.
Personally, I always liked website development. I like that I can keep my fingers in a few pies that I enjoy -- graphic design, sometimes photography, the occasional copy writing and the code to put it all together. So, naturally, I gravitated towards PHP, JavaScript, HTML and CSS (OK, those last two aren't really programming). I'll admit, I like the instant feedback and gratification of interpreted languages.
So come up with an end goal that interests you, then do some research to find the best language(s) suited to the task. If it seems too complicated, scale back your ambitions a bit until you find something suitably challenging without being overwhelming, then work your way up. You'll find that many of the skills and principles you learn from one language translate pretty quickly to others.
Make some character generators, weather generators, dungeon generators or the like. Slow or involved number crunching for your games that is drudgery on paper but easy with a program. Mass combat resolution using old D&D WarMachine rules and a spellbook generator were my first mid-range projects outside of school projects (which were much more involved).
Do the pretty impossible ones. It is a lot more fun and you will learn a lot more.
I'm an American. I love this country and the freedoms that we used to have.
If you like Python you might like Ruby too (I love em both). I always wished I had learned Ruby with ruby warrior:
https://www.bloc.io/ruby-warri...
https://github.com/ryanb/ruby-...
Complexity Happens
I would suggest writing a DB app to organize your CDs.
Oh well.
Never answer an anonymous letter. - Yogi Berra
A few suggestions:
1) program a sudoku solver.
2) program a Mastermind game. The computer poses a problem, the user suggests solutions, the program responds with numbers of correct colors and color+positions.
3) learn Python and tk, and make a graphic interface for #2.
The behavior of the games above are well-defined, and the goal of playing a game you wrote yourself will keep you engaged.
How about a Core War simulator? It's essentially writing a very, very simple operating system, so it's easier than a full OS or compiler-level project, it's graphical, so it's got visual feedback, is a game, so it's fun, has TONS of "unit tests" in the form of 30 years of programs.
Scripts are usually not referred to as "code".
A very skilled boss told me once that you can complete any project if you break it into small enough pieces.
The most gain is with the most pain. If a project feels overwhelming, you're about to learn something. Even if you never finish, it's worth every minute trying to figure out how to find a solution. You'll be surprised how much it comes in handy somewhere else.
And honestly, solutions are made for problems. Find problems to solve... And start using python to do it.
And so I don't sound like a douche stargazing, get a github account, a stackoverflow account, download an IntelliJ editor from JetBrains and set a goal.
When I am learning a new language, I usually try to think of something cool to do, that would be pretty difficult, and then challenge myself to actually do it. Using the many resources available on the web you should be able to figure out any problem you run across. I am personally more into utility type apps, so that's the sort of things I have done, but if you are more into games or whatever you can do that too.
Technophile
Write all the parts...:
You can do this in C. C comes with EVERY Linux distribution so no additional parts or bits required. If you can do this, you really can do most anything and further more you will understand some of the more advanced concepts of computer programming, one of the most important is Memory Management. Now I know that with languages like Java you are far removed from those concepts bust just understanding what you have to do to manage your memory footprint will help you in those languages as well since you will have a much clearer understanding of what is going on under the hood. If you push a few boundaries you will understand some of less obvious parts of other languages.
Hey KID! Yeah you, get the fuck off my lawn!
I find a hexadecimal dump utility to be an easy starter project for a new language. You have to learn how that language handles file I/O, the program will be short, probably under 20 lines, and the utility can actually be useful. Can also whip up a program to do the reverse. Occasionally I've worked on bare bones UNIX systems like old versions of HP-UX that didn't have all kinds of handy utility programs, but did at least have a C compiler.
Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
Seriously not kidding here:
1) Stick with Python; great language. All kinds of cool stuff in it, and then, in the libraries, standard and otherwise
2) Go after AI. It's the most important problem of our time, you'll learn an astonishing number of things, it'll push you into every corner of Python eventually, which is entirely a good thing. Did I mention it's the most important problem of our time? There are plenty of small things to do on the learning curve. And Python's a great language to probe the idea of associative memory, play with the idea of what *types* of associations, etc.
You'll either not solve AI (you should prepare for this), or you will, in which case... well, you know. But there is no more fun, or tough, or important, problem out there to work on, learn about, or resolve.
After a year or so of this, those problems you think are mid-level problems will have turned into small problems. And you'll have built programming chops you can't even imagine right now. Trust me on this.
You don't seem to have any itches to scratch with coding. So why not check one of the open source projects, check their junior jobs list or their bug tracker?
You ll solve real world problems, get code review and they ll likely help you to improve.
KDE for example is doing their own season of code (besides having a junior jobs list, bug tracker etc), you get a mentor and do something useful. Unlike googles summer of code you are not getting paid - but you are almost certain to get a spot. Good luck and have fun with coding!
Excellent fun! (and no, I'm not kidding)
http://codegolf.stackexchange....
MouseClass extends ScrollClass, which extends TabClass, which extends SidebarClass, which extends PowerClass, w
Fractals are complex images generated out of amazingly simple algorithms and math.
You can quite easily go from easy to sophisticated solution, you'll get exposure to different aspects of programming, and it's something you could spend as little or as much time as you'd like. They literally go on for infinity so in addition to the mandelbrot set and the julia set that you have probably seen a million times before, you can create many amazing different images from them.
Plus you'll get a "cool man" feeling when you print up a giant psychedelic sized poster and people visiting comment on how awesome it looks.
A good way to increase your skills is to try to do something which is a bit above your current skill set.
Look at your list of "impossible" projects, and choose one of them, which sounds so "cool" to you that it's guaranteed to keep you motivated for a while. Then, split the project into smaller chunks, which are easier to learn when you start as a complete beginner.
For instance, suppose you have this great idea about a computer game. Then you split it up:
-> It will have 3D graphics: you need to learn how to do that
-> search for programming examples on the internet
-> make an informed choice on what technology to use (e.g. OpenGL vs. Direct3D)
-> download and test some tutorial source code, and try to understand it
-> using chunks of example code, make something that resembles what you'll want in your game
-> It will have network communication: you need to learn how to do that
-> search for programming examples on the internet
-> make an informed choice on what technology to use
-> download and test some tutorial source code, and try to understand it
-> using chunks of example code, make something that resembles what you'll want in your game
-> It will have sound: you need to learn how to do that
-> etc...
These are a sort of "mini-projects", which are doable for a beginner. Once you've done these, you're no longer a beginner, and your big, cool project isn't "impossible" anymore.
If you are into learning, and don't already have a specific goal you can work towards, I strongly suggest re-inventing the wheel, specifically the file manager wheel, it covers a LOT of ground and will earn you invaluable experience. After writing one you will have solid experience in
Notably, this lacks some other fundamental stuff to programming: SQL (a little knowledge here goes a long way too), graphics coding (the basics I learnt before openGL have stood me in good stead over the years), and I'm sure there's more. Still, a file manager is a good choice IMHO
First, I had to know what I wanted to build. You have to have a project you're passionate about, or the challenges of figuring out layered dependencies will be demotivating. This is probably the hardest step of all: what do you want to achieve.
Determine the key requirements of your project. For mine it was speed and that it was multi-platform (its an app). Once you've determined the requirements, ask around for the what the best tools are to meet your requirements. In my case: Corona SDK / Lua (for multiplatform), and SQLite for the on-device database.
With what to build, and the tools in hand, you can start building and learning. Then it doesn't matter if your project is easy or hard.
My first project is a beast of a project with all kinds of features to figure out. social media integrations, database syncronization between a device and a remote server (this alone required thinking about database design, JSON, and settingup an appropriate webserver with the right components that will eventually also meet the requirements of the back-end). I'm sure an experienced programmer makes these choices without thinking about it, but it took me a year to figure it all out and build v1. But the beta tests are done and its going live next week :)
besides those already mentioned, codechef.com is good for a beginner; so, I understand, is spoj.com though I haven't tried them. topcoder.com isn't bad either.
Grab yourself :
- Qt http://qt-project.org/
- Bass API http://www.un4seen.com/bass.ht...
Get coding. Make it a simple MP3 player, or, expand on it until your hearts content.
Qt is great for making quick apps and learning a bit of C++ in the process.
The rest of time, you'll be learning "Qt functions", not a bad thing, as it pretty much contains everything you'll need to make a cross platform GUI program. Qt is quick to learn, very simple compared to most things out there.
If you prefer Visual Studio, or prefer more of a challange (and care about resource use of your program), use that with C++ and MFC, or C if you like.
Think simple, start simple then expand on your project if your enjoying it. This way, you'll learn quicker and get satisfaction out of doing it.
Best of luck.
Python is just the right tool for that.
If you are at all interested in enterprise java, you could do a lot worse than learning about servlets. Im sure there are equivalent constructs in python. You might like to try programming against a restful api, or even writing your own web services
Learn You a Haskell for Great Good!
http://learnyouahaskell.com/chapters
And by mazes I mean mazes that can make your Nethack/Rogue happy bits twitch. Out of boredom I started making a cave and dungeon generator like the one Nethack/Rogue has. Here's the resources I used to put together what I have so far in Java.
Topic in General
http://www.roguebasin.com/inde...
Caves
http://www.roguebasin.com/inde...
Dungeons
http://www.roguebasin.com/?tit...
Procedural Content Generation Wiki
http://pcg.wikidot.com/
BSP Dungeon Generation
http://doryen.eptalys.net/arti...
Use one of the examples those places provides or do like I did and strike out on your own method to solve the problem of cave and dungeon building. I got a cave screen shot of one test generation.
My Cave Generator Output
http://imgur.com/9O9Niae
~~ Behold the flying cow with a rail gun! ~~
"Intermediate" means whatever you think it means, but I'm assuming you know language constructs and data structures. For me, "intermediate" means "knows enough to do some real damage". So at this point I recommend that you learn those things that are common to all programming languages: software design patterns.
Many people would point you at the book "Head First Design Patterns" and that would be a good choice. But there's also a Dummies book that's written by someone who is an expert in that area. I don't have the details to hand but if you're interested you'll find them easily.
Once you know the name of a few patterns you'll find that you can do a lot of learning/research on Wikipedia, because they're pretty much all up there. To start you off, you could take a look at the Model View Controller pattern, implemented in Java and other high-level languages, and think about how you might refactor one of your existing projects to incorporate it. And MVC can easily lead you into the parallel study of frameworks.
A good knowledge of patterns and frameworks will not only keep you out of trouble but also increase your employability, should that be your intention.
Garry Knight
Same thing with programming. Forget that intermediate stuff bullshit. Jump into the deep end, and learn to code or sink trying. Either way, you'll know what your limits are, fast.
Chances are that all of the software you know is written in an imperative language that is derived from C. It's pretty much any language that uses curly brackets: {} Note that even Python and JavaScript share a lot of concepts with C.
Try a Lisp family language to get exposed to functional programming. Scheme has already been mentioned via SICP. Or go further with functional programming and do ML, Ocaml, Haskell, F#, Scala.
Prolog. Declarative instead of imperative programming.
If you've never done assembly get a microprocessor like Arduino and control something in the physical world. Combine C and assembler. Or try x86 assembly. I would do the AVR micro on the Arduino before x86n since it is much more regular and doesn't have all the legacy architectural issues.
Forth. Low level but not assembler.
Erlang. Lots of parallelism with a "shared nothing" Actor style of code.
MATLAB or OCTAVE. Start thinking in terms of vectors and arrays.
Don't worry about the language being "useful". The point is to expose yourself to a different way of thinking about how to program. It will make whatever you code better.
Why is Snark Required?
Many of the suggestions are good but I don't see anyone mentioning that any FOSS project that has participated in Google Summer of Code (college focused) or Goog!e Code In (high school focused) should be adept at mentoring and will have a list of projects they really would like done. So you could get some practice, have a mentor, and produce code which someone will use and you can point to as experience.
FWIW RTEMS.org has a number of open projects of varying complexity and length. We are in the process of moving to a Python-based build and testing system and there are lots of useful projects of varying durations.
i would like to recommend 'turing omnibus' and 'the magic machine' by a. k. dewdney. there are some available on amazon right now for $0.01 and $0.35 respectively! it is a collection of topics drawn from the old computer recreations column in scientific american. topics are laid out in pseudocode so it is not tied to any language in particular and thus remain timeless. really, no programmer's library is complete without at least one of these fine books.
You're an arrogant fool and would be downvoted if I'd not already posted on this article.
I taught myself programming on Z80 and 6502 machines many years ago and I could lose and find a lot professional programmers these days. University graduates in particular seem to have no idea how the systems work, god knows why, you'd think they'd teach the basics but apparently not everywhere!
Do you wear a suit to work? You sound like you do.
Find a open source project that you like. Down load the sources and build. Go through bug reports and start fixing bugs. Pretty soon you will be working on code with tons of dependencies, but most of them are already written and supported. By and by you would end up almost "owning" a serious chunk of code.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
Why not volunteer to write some documentation? Lots of projects have good code; good documentation is a whole other matter. It would be a chance to go through the code, figure out exactly what all the parts are doing, probably uncover some bugs in the process, and ask lots of interesting questions about the project code base while you're at it.
Another good project would be test code. Lot's of projects support "make check" (and lots don't), but writing good tests is time consuming and requires some advance planning. An intermediate programmer should know enough to write a test suite that checks whether a portion of the project is doing what it claims even if you don't understand every detail of how the project is doing it.
-JS
crgrace: r.e. micoprocessor simulator, that is a smashing idea... it sounds very cool.
orignal poster (an anonyous reader): Let's assume you're doing this for fun - as a hobby.
car analogy: I read that you don't need to know how an engine works to drive a car, but a good racers will know something about engines.
So... if you want to really learn programming, learn some assembler - doesn't have to be a lot, but every little bit you do learn will help you. Simpler chips are probably better to get started with than jumping into contemporary laptop CPU's. Maybe Arduino? Sounds like you an get plenty of online help with that (example: http://stackoverflow.com/questions/14464713/arduino-assembler-programming-nothing-happens), and they have a 8-bit processor that should make a fine research project for you.
Then learn a compiled language, probably some straight up C.
Once you understand how a cpu works you'll have a deeper appreciation of what CPython's virtual machine is doing, or what 'just in time compilation' is doing for PyPy.
othoh, if just coding Python is fun then have fun. Nothing wrong with that; you don't have to learn assembly... but if you can wrap your brain around assembly, it will certainly raise your game.
I think the best answer is to start off asking yourself the question, "What are you interested in building". Technology and programming languages should be thought about after you figure out what you want to build. It doesn't make sense to think about what kind of building materials your interested in using before you know what kind of house you want to build, right? If you want to build an open source based dynamic web site, for example, then you will need to learn some Apache, PHP (probably), CSS, MySQL (probably), Debian (hopefully), Javascript, some regex, the list goes on (and it can be a long list). You could be spending up to the next 5 months learning how to build a dynamic web site, but the time spent is well worth it because it will teach you lots of other things like whether your interested in front end (like CSS) or back end (like MySQL) tech. You will also learn about cloud servers like Amazon Web Services or whether you would like to build something on a DIY system like Raspberry Pi or, my favorite, Cubieboard. You'll also need a StackOverflow account to ask questions for when you get really stumped.
So, yeah, just figure out what will keep you interested for a few months then go for it.
I found 2 cool pages to check out. Try the python challenge. http://www.pythonchallenge.com/ Also check out code chef. http://www.codechef.com/
The SpamBayes email filter hasn't been updated in forever. The actual filtering part works great. The problem that needs solving is that it needs to be updated for Outlook 2013 (using the Ribbon) and for 64 bit platforms. It's open source, and written in Python.
http://spambayes.sourceforge.n...
Are you trying to practice basic coding and logic skills?
Project Euler, as many have said, or similar sites.
Are you trying to learn a specific technology?
Then go through a tutorial. Notice anything stupid/wrong/incomplete/ambiguous about that tutorial? If not, please share this unique example of completely flawless information transfer between humans. Otherwise... rewrite it yourself, in your words. Think about other directions the tutorial could have taken. Tinker and experiment.
Are you learning programming to accomplish a specific task?
In that case, you already have your answer. Write what you can. Learn to write the other parts. The code will grow as you grow.
Think about programming like carpentry. If you want to do a carpentry project, you can choose:
1) An design that emphasizes core skills, but isn't particularly useful, although it isn't *useless*. In carpentry, that would be a puzzle box, or a birdhouse, or some other small bauble. The goal was to perfect tool usage, not produce something useful. That's like Project Euler stuff.
2) A design that emphasizes one particular tool, but because of that isn't particularly practical either, and almost completely useless. You know, some complicated, ornate thing that's only meant to really show off a scroll saw, or using a lathe to make a complicated-looking curtain rod. That's like the tutorial option.
3) You build a simple table... even if it's just four 2x4s screwed to a piece of plywood and doesn't even bear loads well. You work up from there... you learn about cross bracing and railing. The screws are ugly, so you learn about countersinking and hole plugs. You might even have to start from scratch, but that's OK... you'll redo everything twice as fast the second time. Then maybe you route the edges of the table when you learn to use a router so you have a nice beveled edge. Then maybe you buy a lathe, and turn the legs of the table into something more fancy... and then you add scrollworked cross-braces... That's a real world project.
All three of these will help you become a better carpenter/programmer, but you will never become a master carpenter/programmer until you do option 3.
Here's a hint for trying to work sizeable free software projects: Don't try to read the whole thing. Especially don't try to read the whole thing with all dependencies. Instead, try to figure out where it does something that you want to modify and look only at as much code as you need to figure it out. Of course you first need to find something you want to change. Looking at lists of open issues or requested features is one way, but those often lead to things that are not very fun to work on (otherwise they would have been done already). Try fixing a bug or adding a feature to scratch your own itch.
Sure, knowing the whole thing can come in handy and I'm sure it feels good being able to say "I understood project X completely," but for real projects it's often not feasible. Trying to navigate other people's code is also an important skill. You still get to take a fascinating peek into the other programmer's brain, even while just doing this.
P.S. Stay away from web development. That way lies madness. It's also hard to do securely and getting hacked is not much fun. Maybe if you have an experienced developer to audit your code for you, it would be doable.
As someone who's been programming for right around 30 years, more than 20 of it professionally, and has written a number of books along the way, I get asked for advice fairly often. One of the questions I get asked most is a variation on this one... for me, the answer is always the same: WRITE A GAME!
What developers often don't realize is that few programming projects touch on as wide a range of topics and disciplines as games do. Things like data structures, AI, file handling, input processing, obviously graphics and sound, networking sometimes, performance tuning... all of this comes into play in a game to varying degrees and in many forms. Very few things you'll ever program in a professional setting will be as wide-reaching... in fact, in my 20+ years of professional development I can't think of a single thing that has!
Even things like usability and UI design, project planning and many other "soft" skills come into play when you're a one-man show.
The best part about a game project is it can be as challenging as you want and it can grow in complexity over time. Start with a simple Pong clone. That's not too tough. But then, update the code to add more intelligent paddle movement of the computer opponent. Then modify it so you can play against a friend over a network. Then change it to a 3D view. And so on and so forth. Each step of the way increases the challenge and also the learning.
Plus, of course, being a game that you're making, it tends to be FUN! Both in developing and testing. It also tends to be very demonstrative in terms of progress... you can SEE what's being produced and little changes in the code can make a big difference on the screen, which makes you feel pretty good and that in turn makes the project continue to be fun to work on, which means more opportunity to learn. Hey, I get paid good money to write financial software all day... I even enjoy it most of the time... but it's nowhere near as gratifying as the game programming I do on my own time!
Game programming is also almost entirely technology-agnostic. There's virtually no language, no platform, no set of new tools or libraries that can't be used to make a game of some sort. That makes it the ideal tool for learning a new set of technologies. Gotta learn HTML/CSS/JavaScript? Write a game! Moving on to Java using Spring and running on Tomcat? A game, sir! Whether you choose a new game concept each time or just keep recycling one (making it a porting exercise, which is a great way to learn a new toolset) it'll work for you.
Also note that you don't need to write the next 3D masterpiece here... in fact, writing a Zork-style text adventure game can be a huge learning exercise on its own, especially if you write a natural language parser (though, again, it's up to you: you can start with a simple keyword analyzer that you can bang out in an hour at most and grow it from there). Graphics and sound are a great learning experience on their own (I can't tell you how much better at math, always a weak subject of mine, I've gotten by working on games!) but they aren't required for a game... though, I've also gotten pretty adept at working in various graphics editors, which definitely has helped me in my day job (I'm still no artist, but I can manipulate existing graphics quite well now, which will make you a more valuable asset as non-graphic artist developer).
Whatever the concept, whatever the toolset, whatever the learning goal, a game is the way to go in my opinion. It's how most of us now old-schoolers got started frankly and it has served us very well over the years. Some of us still write games of course because it's fun and we continue to learn from the experience... and also, especially with the rise of mobile devices, there's an opportunity to make money! Look at some of the recent hit games and it's obvious you don't need to write the next Titanfall to make some good coin. It's a secondary benefit to be sure, but it's nice to know it could be one :)
If a pion (n-) collides with a proton in the woods & noone is there to hear it, does lamdba decay into the source pa
See subject-line: Applying it to a problem YOU have = best way (you're right as rain man - keeps you motivated too).
APK
P.S.=> I miss when this place had NOTHING but comments like yours (now, it's 1/2 infested with trolling scumbags that are utterly useless, producing nothing of worth in code, let alone decent posts)... apk
I would suggest check Python code examples posted in this website by community to everyone:
http://code.activestate.com/
IFF you have even done wget/tar xvf/patch/make/make install - and wondered,
if this process could be ever improved and make sense, you have found your project!
EasyBuild allows you to tame scientific software of the following type:
* Download and build GROMACS over FFTW/3.3, applying patches X,Y,Z, using CUDA for speed.
Here is your initial reference: http://hpcugent.github.io/easy...
And here is the juice: https://github.com/hpcugent/ea...
The code lives across 3 repos on github, I am sure you will find your way.
The first mountain I ever hiked was K2. Takes one to know one, tool.
When I want to learn a new language, I go into my list of ideas for tools, pages, apps, whatever that I think should exist. Even if I'm the only end user, each project is something I think should exist (or should exist in a different format) so my interest in completing it is higher than if I were building someone else's idea.
Hello, perhaps I can be of some small use. I learned python3 as my first language. I was not sure what to do. Linux was great, flowers were blooming, and the whole world was friendly and inviting, albeit complex. I choose to learn C, I was and still am, interested in the Linux kernel. Don't you think it's so cool?! Anyways, long story short, I still have not yet made any contributions. It's only been 2 years since I started learning C, and I decided that before I tried contributing to any real Linux project, I had an obligation to see to it that I coded well. You may view my long and arduous task that I've set about as foolish or not so, but in either case, hindsight and a bug in openssl has shown me that I am at least a responsible developer. I have in the mean time created many "pet" projects that have made my life easier. I have learned an enormous amount in doing so. And I am soon to release an alpha version of a secure skype program. Ultimately, you will decide your own destiny, but here is my advice to you, passed down through several generations, "Discover what you're capable of." and another one, more learned from experience than anything else, "If it's complicated or difficult. If it's labeled as `If you don't know what FOO means you don't need it,` learn it; for everyone else is learning the easy stuff, and who shall challenge the clever and the rich, who shall set anew the boundaries of the known universe and pull down the multiplicative verbosity of the fool, if not you, then who, for surly you would not expect more willingness in others then in yourself, O mortal man?" (Please forgive the assumption, I can't really think of a good sounding nondescriptive noun for that sentence.) And, you are welcome.
I recently had to refresh my C++ skills, so I decided to write a sudoku solver. The neat thing about this particular problem is that it can be as complex as you want it to be. There are a large number of techniques available to solve increasingly difficult puzzles (check the sudoku wiki if you aren't an avid fan of sudoku), and you can implement as many of them as you want as optimizations before resorting to brute force. You can further challenge yourself by setting different requirements. For example, I tend to work in the embedded space where memory resources are not plentiful, so I focused on solutions that were memory efficient.
Its very handy to have a lightweight web server running on your machine that you control completely. You will immediately start learning about sockets, TCP-IP, and HTTP. You can set up a home page with useful information [e.g. how many cats do I own and what are their names]. Plus if you ever open a port on your router, you will quickly learn lots and lots about why security is important.
Make a jeopardy game. Clearly defined rules and mixes interface, data and logic.
If you like Minecraft, you can program server plugins in Java for Bukkit, or perhaps mods for Forge if you can get someone to do the artwork. I love doing this and there is a Bukkit subforum just for plugin requests if your brain runs dry.
Get a couple of library books, one should be any simple beginners book, e.g. "Complete Idiot's Guide to ...", anything will do, it will teach you the basics of coding and using the IDE, and build your confidence. Next get the most advanced book you can handle, e.g. a Programmers Reference. This will read like an encyclopedia but simply browsing it can provide lots of clues about what is possible in future programs. ... That will keep the process as light and fun as possible.
Next find people who need programs, a) at your workplace, b) anywhere else. There's nothing better than walking past offices or cubicles at work and seeing your programs on computer screens. That's a huge confidence builder for a beginner. Decide on the top 3 programs you'd like to build if you could, google for code examples and search PlanetSourceCode, and determine which one you can actually build. Then get started.
Also if you can, find one person who will help you make the program look good visually, and find one person who will help you with the cli or gui to make it as intuitive as possible. It's hard to anticipate every need, input, or output someone somewhere will want your program to have, so be prepared to make a basic version, then polish and enhance it in the next version. But don't form a committee, get one person who you think has good taste for each department and stick with them. Let them be your beta testers if they are willing to do this, and reward them for their time with beers, pizzas,
Just my 2c.
And what simple program doesn't have ample opportunities to increase in complexity?
What could possibly be boring in newt farming?
Seriously. Every huge, impossible project is made up of a bunch of smaller projects that are totally doable, plus maybe a couple that are actually hard. Divide and conquer is one of the most important skills you can develop as a programmer. Start with the first easy thing you can think of that you'll need to do before you get to the big hard thing, and get some code on the screen. Keep doing that. Pretty soon you'll find you have most of it done.
And as for the reading thing, you should expect to be spending more time reading than writing code. I think my time is about 50/50 now, and I've been coding professionally for three years, after doing a BS and about 70% of a master's in comp sci.
Under capitalism man exploits man. Under communism it's the other way around.
Write a program to find all solutions to the pentomino puzzle. It will force you to consider algorithms, binary trees, recursion, and data representation. http://en.wikipedia.org/wiki/Pentomino