r/AskComputerScience • • Aug 09 '20

Learning higher level programming

Hello

I've been programming for about 5 years now, and I have a decent understanding of several language (mostly C/C++, as well as some assembly and python).

While I do feel that I have a decent knowledge of the detailed, technical stuff (algorithms, data structures, languages and concepts, etc), I'm lacking in the higher level program... design. How do I design and structure larger applications?.
For example, how would I know if I should design something as an object or function? What should I run as separate threads, and how do I figure these things out on my own?

Links or references to informative litterature or articles are highly appreciated, as well as comments!

Thank you in advance.

28 Upvotes

14 comments sorted by

View all comments

26

u/NewThrowawayALready Aug 09 '20

Looking for literature and articles is your mistake. You need to start *BUILDING STUFF*.

You're caught in the student-trap, like many before you. Stop reading and start writing. It doesn't have to be anything magic, try making a calculator with a UI or something. A text based RPG, a URL shortener, anything.

Start writing software, that's it.

4

u/[deleted] Aug 09 '20

Sure, I see your point: experience is worth a lot. However I think it's better to read up on something and then gain further understanding by trying to implement it.

If I wanted to learn how vectors work, I wouldn't blindly bruteforce different methods to try to figure it out; I would do some research, watch a few examples then implement one myself.

I stand by the same principle in this post.

4

u/mplang Aug 09 '20

Be careful of analysis paralysis. You already have the foundations necessary to start building things, and that's really what you need to do. Advance your knowledge incrementally while working your way through problems.

That said, I am by no means advocating against book learning! It's important to build your vocabulary -- you're not going to learn to recognize certain patterns and understand when and how to use them without doing some research. Get a book on design patterns (the Gang of Four book, or something language-specific if you prefer). "Code Complete" and "The Pragmatic Programmer" are also really good reads. You can readily find plenty of other book recommendations.

Don't go to crazy, though, because no book is going to prepare you for what it's really like to design and navigate a large system. Eventually, you're going to have to jump-in and write code. Contribute to an open-source project! See what others are doing, how they solved particular problems or structured certain components. Put down your crutches and run!

2

u/moieoeoeoist Aug 09 '20

I think the open source project idea is the most important one here. Get involved with a project where you're actually working on a large-scale system. Be part of a team. See how others are tackling this problem. Learning through real-world experience is going to level you up so much faster than reading about theory.

I'm a backend software engineer working on enterprise web applications, and I have passed on people in interviews who have a masters and a ton of theoretical cs stuff on their resume because they clearly have no idea about design, SE principles, or real-world debugging strategies. 6 months to a year of real experience will get you over that hump.