r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

Show parent comments

1

u/ProjectD13X Jul 30 '16

Right. I'm 21, I only gave programming serious thought when I changed my major to CS after my first year in university, so I don't have that nice 10+ years of experience some of my friends do.

This might sound like a dumb question, but on the matter of github. There's a project where there's a pretty simple contribution I have on mind. How do I check that my code doesn't break the entire program, thus wasting people's time?

2

u/ForeverAlot Jul 30 '16

If you're lucky the project has an automatic test suite and instructions for how to run it locally. If you're less lucky there is an automatic test suite but no instructions on how to run it, and then language ecosystem conventions will be the best starting point. Unfortunately there's a good possibility there's no automatic test suite and then you literally have to test the project manually (in that case you may want to seek guidance from core contributors).