3 ms·
You say you can't code and can't focus. But what specifically stops you? How far have you gotten? Without knowing, here are some general ideas: 1. Stop expect
by tlack 7y ago
You say you can't code and can't focus. But what specifically stops you? How far have you gotten?
Without knowing, here are some general ideas:
1. Stop expecting to understand the program at the "macro level" and the "micro level" at the same time - just accept that there will always be some unknowns. For instance, don't think about how the processor or memory works while just writing a few lines of Python to read a file.
2. Try to understand the code's structure and flow rather than specifics - do you understand how functions call each other, how module systems work, etc?
3. Try to start with an existing open source project and then modify it to your liking. As you dig around figuring out where your changes go, you'll appreciate more about how it all comes together
- greenyoda 7y agoI think that trying to understand an open source project is excellent advice for someone who already knows how to code and wants to get to the next level, but not for someone who is just starting to learn how to code. When you're starting to code, you need to start with very small programs and work your way up to bigger ones, not by trying to navigate through thousands of files filled with millions of lines of code. Understanding vast extents of other peoples' code is something that even experienced programmers struggle with.
- tlack 7y agoI didn't mean to attempt understanding the whole thing - just to understand one tiny part of it for your improvement, and by that route, come to understand how it's all interconnected. It would be impossible to "read" and understand the whole of a huge project as an inexperienced coder, of course.