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.

-16

u/NewThrowawayALready Aug 09 '20

OK, good luck with that.

If you want to learn to do something, eventually you have to do it, but sure, go study more, everything is to be found in a book, right?

0

u/[deleted] Aug 09 '20

[deleted]

-3

u/NewThrowawayALready Aug 09 '20

I do have an interest in fucking up the online ad model. What's the connection to my post? lmao

Getting a lot of downvotes, it makes me think this sub is made up of CS students with no experience.

What OP is looking for is not found in a book, he's asking "how do I know how to structure my code", the answer is "write some code and find out". I've seen plenty of aspiring programmers caught in the same trap of "studying".

It's like an apprentice carpenter asking "are there any books on how to hold a chissel properly when wood turning?"

4

u/[deleted] Aug 09 '20

This post happens when you have no theoretical grounding. "Write some code and find out", and how should one know that the code they write is good or not? Also there is something called good practices. And the can be found in books.

-3

u/NewThrowawayALready Aug 09 '20

" This post happens when you have no theoretical grounding "

m8, I've got a degree in CS just like everyone else. The only theory for what OP is asking are some design patterns, but knowing design patterns doesn't tell you how to organise code the right way. Instead of thinking "what DS do I use", he'll ask "what pattern do I use".

Software development is a craft, you git gud by doing it, not by reading about it. OP (and most of this sub) are stuck at the "beginner" stage, scared to try actually making something not explained step-by-step in a book for them.