r/learnprogramming • • Aug 19 '22

Learning to code is one thing, learning to complete a project is a totally different beast

One of the things I struggled with when I began coding was starting a million projects and finishing exactly zero of them. Tell me if this sounds familiar:

  1. Get awesome idea for new project

  2. Start coding immediately, hard and fast

  3. Get something that starts resembling parts of what you want to make

  4. Not know how to continue or what else to add to it

  5. Get frustrated trying to add more things because now it's all a gigantic mess of sloppy code and throwaway implementation

  6. Forget about it forever and ever because you're genuinely terrified to touch it.

Right? Well that's okay, that's how you learn to become focused and to figure out what's important, what isn't and how to improve. The key to breaking that chain is learning to apply some project management principals to your work that will make you as questions such as "Do I really need this bit of functionality?" "Is this really what I should be doing right now?" "How can I simplify this to make sure it actually sees the light of day?"

Project management methodologies, especially agile ones, are your friend here. Most companies use them in their day to day operations because it allows teams and projects to remain focused and code to remain clean. Now you're probably not a team, but you're also not a god, and keeping track of everything you need to do and in which order, in your head, leads to the cycle above every time you're making something that takes longer than a couple of days.

To kill that cycle, I've made this handy tutorial on how to manage any kind of personal project (not just dev projects) using Kanban. But, because I'm not tone-deaf, I made it in plain English without using any industry-specific terms so that anyone with zero experience can follow along. It's a very simplified version intended just for one individual, or at most a team of up to 3. Give it a shot, and I'm confident that you'll find building and tracking your personal projects a LOT more pleasant and effective with a much higher completion rate.

Edit: wow did not expect this kind of reception. Thank you everyone for all your comments. Unfortunately I can't reply to your comments as I'm out on a mini vacation but know that I've read all of them and there are a lot of valid points in there. A good day to you all!

1.9k Upvotes

68 comments sorted by

383

u/babayetu1234 Aug 19 '22

6. Forget about it forever and ever because you got an awesome idea for a new project.

There, fixed it for you.

100

u/[deleted] Aug 19 '22

Recursion 😂

73

u/[deleted] Aug 20 '22

We’re all programs making programs at the end of the day.

And someday we will all eventually return 0;

46

u/Maros_99 Aug 20 '22

This is deep. Take my poor man's gold.

⠀⠀⠀⠀⠀⣤⣶⣶⡶⠦⠴⠶⠶⠶⠶⡶⠶⠦⠶⠶⠶⠶⠶⠶⠶⣄⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⣿⣀⣀⣀⣀⠀⢀⣤⠄⠀⠀⣶⢤⣄⠀⠀⠀⣤⣤⣄⣿⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠿⣿⣿⣿⣿⡷⠋⠁⠀⠀⠀⠙⠢⠙⠻⣿⡿⠿⠿⠫⠋⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⠞⠉⠀⠀⠀⠀⣴⣶⣄⠀⠀⠀⢀⣕⠦⣀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⢀⣤⠾⠋⠁⠀⠀⠀⠀⢀⣼⣿⠟⢿⣆⠀⢠⡟⠉⠉⠊⠳⢤⣀⠀⠀⠀ ⠀⣠⡾⠛⠁⠀⠀⠀⠀⠀⢀⣀⣾⣿⠃⠀⡀⠹⣧⣘⠀⠀⠀⠀⠀⠀⠉⠳⢤⡀ ⠀⣿⡀⠀⠀⢠⣶⣶⣿⣿⣿⣿⡿⠁⠀⣼⠃⠀⢹⣿⣿⣿⣶⣶⣤⠀⠀⠀⢰⣷ ⠀⢿⣇⠀⠀⠈⠻⡟⠛⠋⠉⠉⠀⠀⡼⠃⠀⢠⣿⠋⠉⠉⠛⠛⠋⠀⢀⢀⣿⡏ ⠀⠘⣿⡄⠀⠀⠀⠈⠢⡀⠀⠀⠀⡼⠁⠀⢠⣿⠇⠀⠀⡀⠀⠀⠀⠀⡜⣼⡿⠀ ⠀⠀⢻⣷⠀⠀⠀⠀⠀⢸⡄⠀⢰⠃⠀⠀⣾⡟⠀⠀⠸⡇⠀⠀⠀⢰⢧⣿⠃⠀ ⠀⠀⠘⣿⣇⠀⠀⠀⠀⣿⠇⠀⠇⠀⠀⣼⠟⠀⠀⠀⠀⣇⠀⠀⢀⡟⣾⡟⠀⠀ ⠀⠀⠀⢹⣿⡄⠀⠀⠀⣿⠀⣀⣠⠴⠚⠛⠶⣤⣀⠀⠀⢻⠀⢀⡾⣹⣿⠃⠀⠀ ⠀⠀⠀⠀⢿⣷⠀⠀⠀⠙⠊⠁⠀⢠⡆⠀⠀⠀⠉⠛⠓⠋⠀⠸⢣⣿⠏⠀⠀⠀ ⠀⠀⠀⠀⠘⣿⣷⣦⣤⣤⣄⣀⣀⣿⣤⣤⣤⣤⣤⣄⣀⣀⣀⣀⣾⡟⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢹⣿⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠃⠀⠀⠀⠀⠀

3

u/[deleted] Aug 20 '22

Called on itself in its confusion.

6

u/time_as_tribute Aug 20 '22

Nice to know programming is like producing music lol

1

u/GemAfaWell Aug 20 '22

Can confirm - been doing the latter for 18 years, issa labor of love, fam 🤣😭

3

u/Tre3beard Aug 20 '22

Im in embedded so you can add the step where you accumulate all the necessary parts and components to fill up the garage 😅

2

u/EmptyBarrel Aug 20 '22

Fill up the garbage. FTFY

1

u/CompilerCarl Aug 20 '22

This happens in the professional world too.

1

u/coder58 Aug 20 '22

This is me with Unity3D lol

But great post!

144

u/Pantzzzzless Aug 20 '22

Learning to complete a project is one thing, learning how an enterprise level app with 10 different teams involved works is a a tooooootally different beast

40

u/[deleted] Aug 20 '22

All the microservices.. so.. many.. microservices..

46

u/cssegfault Aug 20 '22

Wait why is it a 404? Why 500?

Oh they deprecated? No? Oh they got rid of it entirely?!? What do you mean they changed the parameters around? Was there an email or update about it?

What do you mean they changed the secret location and pushed to prod? No, I don't give a fuck what upper management wants and no I don't want the meeting cause I need to triage this shit with other engineers not with Dave from accounting for some feature discussion. I don't have time for grooming and story pointing.

20

u/Pantzzzzless Aug 20 '22

Oh getUserByIdAndDefinitelyNotByLocationRegionHash.V3 is down again? Great!

1

u/ziaalich Aug 20 '22

i had variables like this in a small project of mine which i never completed, wow what rubbish code i must have wrote lol

2

u/Pantzzzzless Aug 20 '22

Most of the remote service calls my company's app make read like this lmao.

2

u/curiouscase215 Aug 20 '22

This just gave me PTSD

12

u/jack-dawed Aug 20 '22

2

u/[deleted] Aug 20 '22

Good god this is my life in a YouTube video. I swear this week I had to set up a meeting with 4 other people just to add a user to our system so I could dev/test email functionality through a CRM.

60

u/green_meklar Aug 20 '22

Yep, you nailed it. I remember gradually realizing, as I learned more about programming and undertook larger projects, that the limiting factor on my projects was increasingly less about my understanding of the language and more about planning out the program structure in a way that permitted itself to be extended. That's a whole skill on its own that you don't really notice at first and it really makes a big difference once you're expanding your projects beyond the first few thousand lines.

5

u/lesbiansexparty Aug 20 '22

That's ultimately what turned me off of programming when I first tried it out. since then, organizing flowcharts, brainstorming really mapping or anything has helped out. tutorials are fine for learning the languages and concepts.

53

u/EngineeredPapaya Aug 20 '22

"Programming is easy, software engineering is hard" - someone on HN

21

u/nedrawevot Aug 20 '22

I couldn't agree with you more. I am trying to work on a alarm clock program with my husband and I got some buttons implemented and they work but aren't connected and I am working on that. I am 100% set on completing this program though and figuring out github and collaborating as I know that's a big part of programming..it's hard

2

u/[deleted] Aug 20 '22

Cool! What does it run on? A phone or raspberry pi maybe?

4

u/nedrawevot Aug 20 '22

We are going for a phone app but a raspberry pi would good idea too! We are excited to make something that actually works.

6

u/Dvmbledore Aug 20 '22

Don't know if this still works but I found that hosting the server on a Raspberry Pi Zero computer is cheaper than paying Apple/Microsoft/Google for an annual developer's certificate for signing an app.

So basically, you host on the inexpensive Pi computer and use Adobe PhoneGap to write the app.

1

u/nedrawevot Aug 20 '22

Oh that's awesome. Thank you!!

2

u/[deleted] Aug 20 '22 edited Aug 20 '22

Best of luck, it’s such a great feeling when it works! If it becomes too difficult then move to something easier so you don’t get disheartened!

I would offer to help but have no experience with phone stacks

2

u/nedrawevot Aug 20 '22

Thank you! I think I have about 10ish projects I'm "coming back to" lol, so I'm determined this time

17

u/Innominate8 Aug 20 '22

One thing that has surprised me is how many competent developers cannot begin or architect even a small project.

22

u/Cczaphod Aug 20 '22

That last 10% is the difference between a hack and an engineer.

Just learned today that United Airlines is still using a reservation system my Uncle worked on in the 60's. You know software is well built and stable if it's still in production use over 50 years later. IBM really had their $%#S together in the 60's, sending Men to the Moon and building software systems that lasted for decades.

6

u/Dvmbledore Aug 20 '22

Twenty years ago I designed and built a backend for a stock market custodial service which is still running today on the same hardware. The magic is that all the servers create a RAM drive and copy all the programs they'll need into that. In this way, they weren't thrashing their hard drives to death over two decades of production.

It even has an automated robotic tape archival system to push off month-old data to storage.

8

u/LadyFerretQueen Aug 20 '22

I thought it was just me and that I'm totally incompetent because everyone kept casually saying to just create something as if it's so simple.

For me the worst was that I had no idea what ideas I'm capable of executing so the ideas I had were impossible to begin with for my level. I would then spend days stressing and crying over one aspect and give up because just thinking about the code would give me anxiety.

6

u/apatheticonion Aug 20 '22

I always get hung up on design. I get enthused by an idea I know I can build end-to-end.

I spend an order of magnitude more time on UI design than I do on coding, it always ends up looking terrible and I give up thinking no one will use such an ugly application.

0

u/[deleted] Aug 20 '22

[deleted]

1

u/apatheticonion Aug 20 '22

Honestly it's the visual representation that gets me. I usually plan business logic out pretty comprehensively, I'll make flow wireframe diagrams and schemas but when it comes to turning that into a responsive UI that doesn't look over or under stylized it gets.

I think I'm just a perfectionist with UI and it's counterproductive though finding UI inspiration on Pinterest helps

6

u/plaregold Aug 20 '22

A lot of it is also proper planning before starting the actual coding. How many of you actually go through the exercise of writing out user stories, features, flowchart, architecture, and maybe even a prototype/wireframe. That would address a lot of the problems you listed out regarding questions like if you even need that functionality. You don't have experience, so planning and some forethought can reduce the trial and error

6

u/100BottlesOfMilk Aug 20 '22

Why spend 2 hours planning when you can spend a month or two on spaghetti?

21

u/CodeTinkerer Aug 20 '22

This is the most professional video I've ever seen posted to this subreddit (btw, the accent seems slightly Serbo-Croatian, but your English is great). I can't imagine how much time you spent putting this together.

It takes an interesting angle using project management skills to decide what to build, so that's quite unique.

OK finally to the example, which is building a motorcycle. The nice thing about this example is that people can probably relate to what a motorcycle is. The motorcycle literally exposes many of its inner parts, and we have some knowledge of what components are needed. There is a hugely visceral aspect of the motorcycle.

Based on your example, you can obtain equipment by ordering it. This is like putting together a computer by buying parts. Or building some kind of circuit by getting parts. This works because many things are pretty standard, and that with some research, you might be able to get such a list.

Software, unfortunately, doesn't have this quality. In particular, although people have thought "Wouldn't it be great to have software built out of something like Legos?" Using your motorcycle example, you can buy an engine. It is, more or less, its own thing. Its connections to other parts is well-established.

To give a computer example, it's good that each technical device tend to use the same connectors. USB, USB-C, and so forth. Imagine if everyone produced different connectors. It's bad enough that Apple had their Thunderbolt and what-have-you.

But software components doesn't seem to be a thing. Worse than that, software has an invisible quality to it. We don't visualize software like we do a motorcycle or building a computer. And motorcycles and computers tend to have the same components.

I once heard a radio show where the guest complained that software should be like cars, and why didn't wasn't how things worked. The hilarious part of the conversation was the host was something of a nerd, knew some software, even though he was a news guy. He said that we keep expecting more and more from software, and with cars, we don't expect huge changes. The core parts of the car are still there. Software can be all over the place.

There are also other issues. Part of the problem is something always asks. Which language to pick? It would be nice for the components to communicate without exposing language details. To some extent, a web application does that. Maybe you do a REST call to a backend. Ideally, you can swap out the backend and still create a REST endpoint, have a JSON reply. So maybe software needs a universal standard to communicate (this is a bit of joke, as xckd has made, that you have 12 standards, and let's combine it, and now you have 13 standards).

Because software lacks this component feature (it has some, but not nearly easy enough to identify), then there is semi monolithic approach of building software, and it also makes it difficult to decide what the pieces. You may know little about motorcycles, but it seems a LOT easier to identify what makes a motorcycle than what makes a project?

You may know you need an engine, but you know you don't have to build it from scratch, which would likely not work and be a total disaster. But people kinda do this with software.

Web frameworks try to do something like that, but again, it's a bit of a mess. There's not exactly the same thing? Maybe a 3D printer where there's a few built in things? But again, a 3D printer still makes distinct components. And if you're learning a web framework, now you have to factor that in. You can spend months trying to get an idea of how these things work. There are concepts that don't seem clear why to use it, e.g., one-way data binding or two-way data binding. The motorcycle example doesn't seem to have some thing you need to do that requires a deep study. If you created the engine from scratch, you would need to learn how engines work, how thermodynamics work, how to machine an engine, and wow, why did I have to learn that?

And imagine the person wanted to be original, and wanted to build a motor unicycle, i.e., a motorcycle with one wheel. How would they do that? At that point, is it even realistic?

And because software is invisible, even deciding what you need and don't need is pretty hard. People use browsers every day and it hides all the parts. If someone wanted to make a web browser, it would be hard to think what exactly would you need? You could hope someone has made a basic browser (it has happened, but what if you didn't know that, how do you even know how to research), and eventually, you realize it's potentially a huge, huge, huge task.

And that's assuming you can kinda build the parts off. Heaven forbid bugs appear, and the framework gives you almost no information on why it's behaving the way it does. Indeed, web apps have a ton of interactive aspects where writing a program in a programming language, you can write small things. Here's a sorting algorithm.

A project typically requires a lot more steps, within a framework that you need to understand, as well as potentially more things to learn (what's REST, what's HTTP, what's MVC, etc). It would be so much nicer to get software components and connect them up to get an MVP.

But great video. It would be interesting to see how you would present this with some software application.

5

u/[deleted] Aug 20 '22

Tl dr

3

u/_88WATER_CULT88_ Aug 20 '22

Then there are people like me who do that too much already and just need to code.

3

u/solderfog Aug 20 '22

Even if you get past your 6 steps, actually completing a project often falls into the 'last 10% of the work takes 90% of the time' concept!

3

u/Confident_Fortune_32 Aug 20 '22

It's the last 10% that takes 90% of the time and energy (old project management joke)

5

u/[deleted] Aug 19 '22 edited Aug 19 '22

To be honest, I've been there just once. It was years ago and that's why today i focus on doing very, very small stuff rather than a full fledged project.

2

u/qonra Aug 20 '22

Cost and time estimations may as well also be it's own thing, if you've ever freelanced solo I can guarantee you will get burned by making crap shoot estimations many, many times. Highly recommend just working with an agency for anyone who plans to go the freelance route.

1

u/flauner20 Aug 27 '22

Where would I find such agencies? Or just info about these agencies?

--Thx.

2

u/ChyrNoble Aug 20 '22

My problem is the opposite. I have a hard time determining when to stop.

"Let me add this last one little thing and then its good... Oh wait, it'd be really cool if i added this."

1

u/toop_a_loop Aug 20 '22

I’m close to deploying a live demo version of a project and as I’ve gotten closer I’ve made a lot more “I don’t need this right now” and “this isn’t actually important” and “simpler is better” kinds of decisions to get to the finish line. It’s really helped me focus and keeps the momentum going.

1

u/[deleted] Aug 20 '22

I agree, my first web app was in Sinatra with Ruby. If anyone wants a super simple web framework, Sinatra is a great place to start. Maybe even use RSpec & Capybara for testing if you’re feeling cool

1

u/gregraystinger Aug 20 '22

I’m about to start a c# class and I’ve already made plans for a game. So far I have all my basic rules and limitations planned out in python, but I hope the game will turn out well by the end of the year. Gonna have to learn a lot.

1

u/jimi060 Aug 20 '22

Yup, as a professional software engineer having a plan when you start is essential. Be it a list of user requirements or tickets in an agile style method, making a list of the functionality you want to implement and breaking it up so they can be ticked off one by one as you code is the goal, that way you can track progress and know when you're done, at least with 1.0.

1

u/Mage-Tutor-13 Aug 20 '22

Hello darkness my old friend...

1

u/bad-and-ugly Aug 20 '22

For anyone wondering, the art installation in the photo is made by Brazilian artist Cildo Meireles. The title is Babel. A tower of (working) radios. https://ogimg.infoglobo.com.br/in/22611717-91b-f7d/FT460A/Cildo-Meireles-Babelcred-SOPHIE-MUTTERER.jpg

1

u/CaptainPickyEater Aug 20 '22

I don’t know what I’d rather prefer that ‘beast’ or look into crap like maintaining code in a corporate environment such as fixing CVEs, updating test cases, test coverage/code coverage/code smells/any other Bs name that applies whenever you change one small thing in the code, automate build pipelines only to find limitations so now you either have to find an alternative way or stick with some janky method etc etc

1

u/Dvmbledore Aug 20 '22

For my open-source projects if the project is larger I tend to create a checklist in the readme file to indicate progress. Later, if I return to that and see unchecked entries then it reminds me that I had intended more work.

1

u/paper_thin_hymn Aug 20 '22

You described songwriting too haha!

1

u/polmeeee Aug 20 '22

The opposite is true for job interviews. Companies rather you can complete an algorithmic challenge perfectly on the spot rather than take your past work experience into account (other than quantifying years of exp).

1

u/[deleted] Aug 20 '22

I think it goes well beyond programming, it's kind of an ethos for living. It's one of the (many) reasons most people become employees and not upper level (I'm not talking about managers or supervisors because there are a million reasons to not be one of those lol). People who are disorganized, lack self-discipline and motivation, and don't collaborate well with others have almost zero chance of being great at anything. You can certainly become a programmer without any of those positive traits, and most programmers are that way simply because of how "average" works.

The good news is you can learn all those things.

0

u/[deleted] Aug 20 '22

[deleted]

11

u/musti30 Aug 20 '22

What does “I’m a cat” mean. Are you a literal cat? How can you work on new projects with your bean 🫘 fingers?

5

u/Single_Profession_37 Aug 20 '22

Cannot fight the urge to constantly sit on the computer when using it

10

u/[deleted] Aug 20 '22

[removed] — view removed comment

10

u/Rebombastro Aug 20 '22

I read it somewhere too but in regards to the mental burden, unfinished tasks are placing on you.

The more unfinished tasks you got, the lower your motivation will be to finish them because of the perceived amount of work that needs to be done.