I'm currently learning about the Linux file system, but I'm finding my teacher's code demonstrations and explanations to be pretty fragmented. I'm not sure which parts of the code I actually need to reproduce, or if I should implement everything they demonstrate. Any advice on how to approach this would be appreciated!
3 Answers
Implementing the code your teacher shows is definitely beneficial to your learning. But if the code feels fragmented, you'll need to connect the dots yourself. For instance, if your teacher shows a fragment like `printf("Hin");`, it won't work on its own—you'd need a complete program structure. Completing the snippets can help reinforce your understanding and expose any errors you might not notice otherwise.
I get that your teacher's examples might sometimes feel incomplete or confusing. If some code is meant to demonstrate how a file is structured in memory or to trace a program's execution, try typing it out—doing that can improve your grasp of the topics being covered!
It's a good idea to ask your teacher for clarity on what they expect you to learn! Sometimes that can clear up any confusion about the importance of the code they demonstrate. They might have specific goals or highlights in mind that could guide you better on what to focus on.

That makes sense! Sometimes I see a code fragment just to illustrate concepts. I guess I should reproduce those when I can, especially if it's important to understand the underlying logic.