I'm new to programming. I chose Nim because it's an emerging language and friendly to newbies.
I'm trying to learn networking in Nim but struggling. It seems like various AIs like chat GPT, Duck AI, Lumo, etc... are good at generating ideas but when it comes to providing bunch of lines of code in networking, there are always errors and none of them are helpful getting rid of the bugs whether I write my own code or not in networking.
Ofc I learned the basics of Nim, but when the level increases it's hard to progress. Just reading the net module, openssl and other documentations isn't enough because they don't provide projects as an example.
I realized that using AIs for network programming is not very supportive since they often provide wrong lines of code that lead to errors. Regardless. they are efficient in explanations.
Don't get me wrong, I was able to code many basic projects but networking is different. Understanding TCP/IP UDP and ports doesn't automatically lead to writing code. On Github, many Nim project codes are outdated that result in error on IDE.
Can any experienced programmer offer me some advice/guide please? I'm kinda lost... I'm stuck and feel like giving up....
I will expand on @darkestpigeon asked and recommend- as an experienced programmer- that you pick a specific, well-defined and useful goal.
I am really quite certain that vibecoding network programming works really well, but you need the correct technical terms for what you want to achieve- and to get those, you need to chose the exact technology you want to use, and that in turn defines which technologies are appropriate.
Realtime coop gaming? I think treeform has a library for that. And you should always use his library for that when treeform has one- no one ever got fired for using a treeform library :-)
Sending commands? Use a web server like mummy or even asynchttpserver.
File sync? Use direct sockets, Nim's interface is built in.
File transfer? Use a web server.
A lot of questions have the answer 'use a web server'.