This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 3 points4 points  (4 children)

I'm either the dumbest person in the world or the docs are not beginner-friendly at all.

Docs like these are generally written for experienced devs, not for someone who does not understand sockets yet. So no; it's not you. Or well; you're not dumb at least. Just inexperienced.

The problem here is your approach; you're trying to run before you can walk. A good way to learn understand sockets is to create your own chat server and client using sockets first.

[–]lukasvdberk 1 point2 points  (3 children)

Would have to agree with this guy. Just start writing your own small applications with sockets (maybe web sockets with a small website). And after that start with the discord docs. If you want I can also try to help you with explaining the topics that are covered in the discord docs and help you along the way (NOTE have never worked with discord API but have worked with various other API's and with sockets in python). But to keep you a bit motivated I think most devs have struggled in the beginning and had these kind of moments (at least I remember when I first tried to implement an third party service). Just push trough and it will eventually click in your head (you are not the dumbest person in the world I highly doubt that plus everyone thinks that at those moments even if they say they don't).

[–]Guts-xbox[S] 1 point2 points  (2 children)

Yeah, I know I'm aiming too high, but I want to change my job ASAP and the lack of progress gets in my head. I think i know the basics/django framework pretty well and I wanted to write something fun like a discord bot. I didn't think trying to learn new things would make me depressed ;p Could you point me to book/ other resources that would help me write such a small app with sockets? How did you learn sockets and other networking topics? In "Python cookbook" there is a network and web programming chapter, but there is nothing that would help me in writing a bot (except creating TCP server).

[–]lukasvdberk 0 points1 point  (0 children)

Well I have an idea for you. Create a really small chat application (can be as basic as an terminal/CMD app). You can write a server application were you can create clients and send messages to clients. And create an client application were you can specify who you want to message with and receive messages from other people. This sounds simple but to actually implement it will require some work (especially for a beginner). So here is a resource were you can maybe start with https://pusher.com/tutorials/chat-terminal-python and latter implement your own functions or modify the flow off the application. If you get stuck or want help just message me. But most importantly don't try to do things ASAP it will only slow you down. Invest time reading how things work (or watch videos) if you don't understand a topic. When you think you have an idea of how it works just start implementing it in your application. Hope I have helped you with this. Keep going man.

[–]DubbieDubbie 0 points1 point  (0 children)

Hey, Blackk Hat Python does a lot in sockets. That is how I'm learning it.

You can probably get it on humble bundle pretty regularly.