r/learnpython • • Nov 13 '24

Question about libraries

I don't understand how I should learn libraries. Let me explain: reading them I often don't understand what is written, it's all so difficult and technical. So I think "maybe I should watch an introductory video?" but I don't do it because it seems ethically wrong, I think I should learn by myself and not relying on someone's help every time. Can you tell me how you understand a library? Or a set of libraries needed to create a type of application (even more difficult since I don't even know which library to start with).

0 Upvotes

15 comments sorted by

11

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Nov 13 '24

I don't think there's any shame in watching videos if that's what you find the easiest way to learn. We all have our own preferences.

Stop worrying about it and just do it!

0

u/UnViandanteSperduto Nov 13 '24

Thank you 🄹

4

u/Binary101010 Nov 13 '24

but I don't do it because it seems ethically wrong,

Why do you think that?

I think I should learn by myself and not relying on someone's help every time

One of the advantages human beings have over basically every other animal on earth is that we can learn from the successes and failures of others.

0

u/UnViandanteSperduto Nov 14 '24

you’re right, you convinced me

4

u/logseventyseven Nov 13 '24

ethically wrong? wtf?

1

u/ConDar15 Nov 13 '24

There's nothing wrong with a good video tutorial to help you understand, people learn in different ways, you might just find it easier to absorb information audibly rather than visa text and that's both fine and normal. Being able to read and comprehend technical documentation for a new library is a developed skill and takes both time and practice.

Additionally most good and larger libraries have one or more tutorials to work through that can help you understand what they do and how to with with them a bit at a time. Oh, also on that note, you do not need to know everything about a library to stay using it - get started with what you can understand and then when you hit a block look at the documentation again, or reach out for help (here or stack overflow can help with that).

1

u/UnViandanteSperduto Nov 13 '24

Thank you very much

1

u/copperfoxtech Nov 13 '24

I agree with u/Diapolo10 and u/ConDar15. Watch the video to get an intro to it and get rid of this freezing up that you have. Take some notes. When something new comes up, pause, ready the docs, play with the new idea in your IDE and keep this cycle going. Keep your mind open while watching to allow yourself to come up with cool things to do with it. There is No shame in watching at all. I do it all the time, but after I build things with the knowledge, make mistakes, look up the docs to solve.

1

u/UnViandanteSperduto Nov 13 '24

Thanks 😭

1

u/copperfoxtech Nov 13 '24

you got this! Dont listen to what people say, lol yes I guess me too, and just do what works for you as long as you are progressing.

3

u/[deleted] Nov 13 '24

Ethically wrong lol videos are awesome wtf

3

u/backfire10z Nov 13 '24 edited Nov 13 '24

Which libraries? Why are you learning them?

Typically, if I need to understand a library, it is because I am using it. In that case, I only need to understand the part I need to use, rather than the entire library. Usually I know about the existence of the library from a stack overflow post or something of the sort or because its documentation was linked when I searched for how to do something, so I’ll have an idea of what I actually want to use. Then, I’d consult the official documentation and just try things until something works.

I don’t just pick up random libraries and try to memorize all of its available functionality and how to use it. I’d never remember what I tried to learn this way.

I’d say ā€œlearning librariesā€ is a slightly different mindset from mine. Libraries are just code. They export functions and classes to you like any other code. The only difference between a library and your own code is that someone else wrote the library. There’s nothing wrong with a video here if it is the best way for you to get exposure to what the library is capable of/why it is used.

TLDR: Learn a library because you need to use it. Use the official documentation to write up something that eventually works.

1

u/KingsmanVince Google YOUR questions and errors first Nov 13 '24

Soon or later you will have to read. Enjoy watching videos.

1

u/Enmeshed Nov 13 '24

Part of the joy of libraries is that you don't need to know exactly how they work in order to be able to use them. We are all using libraries every day that would take a huge amount of work to really understand. Looking at the internals is a great way to up your skills, but don't let that put you off actually using them!

1

u/Quillox Nov 13 '24

Read the official documentation.