I've been trying to build a socket server but I'm struggling to write my own code. I've read through the Linux socket documentation, but whenever I try to code without looking at examples, I hit a wall. How can I get better at this and start creating my own useful code?
2 Answers
Just knowing how sockets work won't cut it—you need to see how they're applied in real projects. Think of it like how they teach programming in school. Read through various examples, try them out, and then tweak them to make them your own. The more you dissect existing code, the easier it will be to craft your own.
It's totally normal to feel stuck! I think looking at examples is key. A lot of my searches are usually just different examples of whatever class or function I’m working with. Check out GitHub or sites like Stack Overflow for practical examples. It really helps to see how others have implemented their ideas!
I get that, but how do those developers create their own stuff from scratch? Aren’t they just building on others' code?