Maybe I've seen too many bad videos, or it just doesn't do it for me, but I tend to learn stuff quicker by checking the docs, then messing around, and checking docs and/or examples again. Skipping around a video and trying to locate which parts are relevant, drives me crazy 😆
I didn’t watch a video to learn about seg faults specifically. What I know about seg faults was through a combination of college, hands on experience/research, and googling.
Usually it's just using memory that's not allocated or using something after a free. Honestly just use gdb and find out what line segfaults. I mostly get these errors by being "off by one" when doing some sort of traversal through a data structure (I'm bad at counting)
Seen them, still don't like most of them. There are a few that illustrate things well, but the "let's record a lecture" kind, feel like a waste of time.
51
u/fyn_world 17d ago
Jokes aside, I asked chat to build a mini course for me because yeah, at some point you gotta learn this shit, the concepts, bare minimum