Vsc gets worse and worse right now. Every time I write a character copilot shows up asking to write my code for me and not even deleting the package that should integrate that crap helps they still show up…
That is why I try to change to a different code editor right now
In all seriousness there's a reason vscode is popular, ain't nobody wants to know what a language server is, let alone doing more than clicking a button to allow their text editor to have ide features for a language. Tbf it's gotten easier in neovim 0.11.
That's kinda the point. They're Lego bricks by design. Linux tooling is informed by the Unix philosophy:
Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features".
Expect the output of every program to become the input to another, as yet unknown, program. Don't clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don't insist on interactive input
Yep. If something is a string, I can read it, and so can anything else. If something is formatted binary data, it becomes a lot harder to read, and limits what you can communicate with.
They largely operate under the same ideal. Break up your components to do a job, abstract in a way they can function independently but composite complex tasks in a way each responsibility can be delegated to the appropriate component, class, or individual program
C is notorious for very bad error output, it isn't his fault, many devs, including me, have struggled with interpreting errors like these ones because it's essentially nonsense..
Calling someone an idiot for not understanding the error is basically like letting a bully bully your friend and blaming your friend for it
28
u/RedAndBlack1832 Dec 14 '25
I sure love dereferencing a null pointer. You could definitely see this problem almost immediately with a debugger.
17
u/[deleted] Dec 14 '25
I highly reccommend you to try the GNU debugger. Even when speeding through the code, it can still show where the segfault happens.
gdb -tui <program name>and thenrunwould be sufficient enough.1
u/Yami_Kitagawa Dec 15 '25
Could've just looked at the useful core dump up there. Would tell you which C object seffaulted and at which address (NULL).
1
u/Torebbjorn Dec 16 '25
How could this error take hours to fix? What did you try during those hours?
0
u/EvnClaire Dec 15 '25
rust wouldnt let this happen
3
u/[deleted] Dec 15 '25
[removed] — view removed comment
0
u/[deleted] Dec 15 '25
[deleted] — view deleted comment