r/coding • • Jan 28 '20

Challenging projects every programmer should try

http://web.eecs.utk.edu/~azh/blog/challengingprojects.html
387 Upvotes

25 comments sorted by

80

u/drbob4512 Jan 28 '20

Challenging project? Debug my code ;)

-11

u/Slavichh Jan 28 '20

Shouldn’t be much of a challenge if you have good documentation...

6

u/Thatguyflippaz Jan 28 '20

Okay big horse

1

u/Slavichh Jan 28 '20

Call like you see it

19

u/[deleted] Jan 28 '20

Thank you. I was actually looking for projects to work towards in order to better improve my programming skills in c++. Currently a second semester freshman with about 3 years of off and on self taught learning. Nothing concrete.

All of them sound like quite the challenge and really seem to make you think outside the box, especially the text editor one without using a GUI capable framework.

Once I build up a little more experience in the lower leagues I am going to start cracking at these. :)

12

u/dethb0y Jan 28 '20

I'm always finding enough challenges in the things i need to do without seeking out more!

10

u/astrange Jan 28 '20

I guess I'll accept "challenging", but people should really not put compilers under "difficult" projects. They're not hard, the problem is your compiler textbook is poorly written.

Also, I think you should write a .mpg player.

0

u/[deleted] Jan 28 '20

[deleted]

6

u/astrange Jan 28 '20

I won't deny it wasn't challenging, but in the end if you can divide up the work and conquer each part separately everything becomes managable.

Right, I think this is what makes it not difficult. A lot of projects turn into a ball of spaghetti (take any large C++ app and try to find the part that does something useful - you can't!) but a compiler has a simple structure. It's just a set of passes that run one after the other. That means it's easy to test and it's easy to learn how a production compiler works by reading the debug output.

4

u/baby_chaos Jan 28 '20

Living my life is just challenging enough ;)

1

u/TheJReesW Jan 28 '20

These sound great! Definitely going to try these out.

1

u/chasesan Jan 28 '20

I have done all of these general examples except for the spreadsheet (like I didn't do a basic compiler, but wrote my a compiler for my own language). I really need to finish my gameboy emu at some point.

0

u/[deleted] Jan 28 '20

AKA "wheels every programmer should reinvent". Why should programmers do these exactly?

You'll gain a lot more from trying to contribute to open source versions of each of these things. And after you've done that for a while, maybe, just maybe, you'll see some improvements that are both impossible to make in existing projects, and big enough improvements to be worth making, and *finally* you'd be in a position to actually create one of these from scratch that is actually worth creating.

But hey, if you want to write a huge project that even you won't want to use, have at it.

3

u/bahgheera Jan 28 '20

It's not about reinventing anything, it's about practicing coding. The point is not to write your own word processor or compiler, it's to exercise your programming skills and hone them.

3

u/[deleted] Jan 28 '20

I understand that it's about practicing coding. What you don't seem to be understanding is that what I'm suggesting is also about practicing coding.

Coding occurs in a context, and by reinventing the wheel with a completely new project, you're practicing a bunch of skills which you already have. The average coder is more than adequate at reading their own code and writing things to a spec they make up as they go along. This is not what coding is 99% of the time, however. The vast majority of coding is working with other people's code and collaborating with other people, so it makes sense to practice *that*, not some greenfield project that only you care about.

3

u/Texas1911 Jan 29 '20

Good point.

It’d be interesting to take a project and with two or more people you write sections of the code, as if it were a story being progressively written by multiple authors. Kinda like /r/writingprompts

1

u/[deleted] Jan 29 '20

I've never tried that, so I don't know how it would play out in practice, but I suspect that there would be a tendency to shirk parts of the process and focus on easy stuff you already understand, because you're not actually trying to create code for real users.

Code review? We're just practicing, no need to get bogged down in that. Testing? Bugs aren't a big problem because we don't have users, we can skip that. Running a linter? Sure, that's easy, let's paint that bike shed.

Coding for the real world has a way of focusing you on what actually matters.

Another big downside to practicing by writing toy projects, even as a team, is that you miss the opportunity to work with much more experienced programmers and get feedback from them.

2

u/NonreciprocatingCrow Jan 28 '20

practicing a bunch of skills you already have

That's just it though, most of the people who engage in these kinds of projects don't know enough to meaningfully contribute to open source projects. It's exactly as you say: the vast majority of coding is figuring out other people's code, building to other people's specifications, and figuring out what needs to be done.

The time and effort it takes to make ones first bug fix or feature addition to established projects (especially the kind mentioned in the article), submit it through the proper channels (e.g. the LKML), and get it approved (AKA, clean up the whitespace) is equivalent to any of these projects.

So, as a student working on their free time, would you rather write your own arcade game from scratch or fix the fourth thousandth string bug in the Linux kernel?

2

u/[deleted] Jan 28 '20

That's just it though, most of the people who engage in these kinds of projects don't know enough to meaningfully contribute to open source projects.

Not true. There are lots of projects with lots of low-hanging fruit. Some projects even keep a separate backlog of bugs and features which are suitable for beginners.

The time and effort it takes to make ones first bug fix or feature addition to established projects (especially the kind mentioned in the article), submit it through the proper channels (e.g. the LKML), and get it approved (AKA, clean up the whitespace) is equivalent to any of these projects.

Yes. I'm gathering by your tone that you think this is a problem?

The fact that it's hard is exactly the point. If it weren't hard, why would you need to practice it?

So, as a student working on their free time, would you rather write your own arcade game from scratch or fix the fourth thousandth string bug in the Linux kernel?

I know that's intended as a rhetorical question, but it isn't. I'd absolutely love to have a bugfix in the Linux kernel on my resumé.

But this is an example you picked to prove your point, and it's rather silly. Obviously mature, decades-old C projects are going to be outside the purview of all but a few programmers. But I doubt you'd have any trouble at all contributing to a project like Preact or Django. You could literally Google "open source projects for beginners" and get a long list of projects that a rank beginner could easily contribute to. Some people have even compiled those lists so you don't have to.

Obviously, the arcade game is going to be more fun for most people, but if that's your entire point, then just be honest about why you're doing it. You're not doing it because you should, you're not doing it because you're practicing coding, you're doing it because you enjoy it. And there's nothing wrong with doing things for fun--let's just not romanticize it into some self-improvement pursuit.

-1

u/NonreciprocatingCrow Jan 28 '20

My point is there's a mixture of motivations involved. Playing video games is much more fun than making them (true for professional and hobby level games). Let's not pessimise the latter into the same category as the former.

1

u/[deleted] Jan 29 '20

My point is there's a mixture of motivations involved.

Really, that's your point? How was this completely wrong statement intended support that point?

That's just it though, most of the people who engage in these kinds of projects don't know enough to meaningfully contribute to open source projects.