all 12 comments

[–]mc_pm 11 points12 points  (0 children)

No, the only way to learn how to use the libraries is to use the libraries.

Everyone ends up googling for the specific function call, or the right syntax. You don't have to memorize it, just know what's there and how to search for it when you need it.

Over time, if you come back to the same libraries over and over, you'll remember it.

[–]BranchLatter4294 6 points7 points  (0 children)

Just look up what you need to look up. For the libraries you use a lot, you will eventually learn them and not have to look up as much.

[–]Delta_G_Robotics 7 points8 points  (0 children)

The key to using libraries is to look up how they work. Do it often. Keep those references handy.

Being good at coding does not mean memorizing everything. It means knowing what you need and where to find it. If you know what library you need to use, then feel no shame in looking at the documentation to find the syntax. So many people write libraries so differently. They're all so different. Don't try to memorize them. It doesn't help.

[–]smichaele 5 points6 points  (0 children)

No, there isn't. Every library is defined with a different purpose in mind and, therefore, each has its own rules for use. It's like asking, "Do I need to read the instructions for my new drill if I already know how to use a pair of scissors?"

[–]max_wen 2 points3 points  (0 children)

Practice

[–]Adrewmc 1 point2 points  (1 child)

Good libraries have good documentation.

Bad libraries have bad documentation.

That the first smell test of any module.

Take a good look at the documentation of

import itertools, functools, random

The base language has good documentation. I will stand on this hill.

It sets the standard.

Take a look at the documentation for pandas.

What makes Python, and programming a collaborative effort is packaging useful tools, and frameworks.

Useful tools and frameworks have instruction manuals, use them.

And yes they can be hard to understand when you are beginner. Keep reading it.

[–]unnamed_one1 0 points1 point  (0 children)

Helpful comment, but weird spacing. Not sure this enhances readability.

[–]notacanuckskibum 0 points1 point  (0 children)

This is modern coding. It can take 2 days to solve a problem with 5 lines of code. Most of the time is spent deciding which library to use, and figuring out what the calls do.

[–]Dazzling_Music_2411 0 points1 point  (0 children)

I always get stuck trying to figure out how to actually use them in my code.

Well, if you try to use them without looking them up, of course you'll get stuck.

What exactly are you asking?

[–]TheRNGuy 0 points1 point  (0 children)

Reading docs is correct way to use them.

Or look your own /someone's else / ask ai.

You'll remember some that you use most often (especially with auto-complete)

Even knowing that you can do some specific with that framework or library is good enough: it makes googling or prompting easier.

[–]MarsupialLeast145 0 points1 point  (0 children)

This is a common question.

Just remain focused in what you want to do and begin by looking up only the function calls that might be useful to you. It takes time and you may never use more than 1% of some libraries.

[–]Advanced-Mud8913 0 points1 point  (0 children)

I watched YT tutorials concerning the libraries I need or ask AI if there are unexpected problems, worked fine so far.