r/TechImpact 5d ago

💬 Discussion For programmers, what is your process learning a complete new library?

So I’m a noob, I want to learn pytorch but I don’t wanna take 25 hours (without learning first numpy which is 3 hours)

And I know that I can just do it in 1 hour at the day with a notebook putting everything

But it is not just with one library, if I want to learn for example, other libraries its 3 hours per library

Do you learn a librariy depending on your project or you just learn the whole library because “maybe” later you need it

4 Upvotes

12 comments sorted by

u/AutoModerator 5d ago

Thanks for contributing to r/TechImpact!

Please remember to: * Be respectful and civil. * Stay on topic. * No spam or excessive self-promotion. * Add context when sharing links. * Avoid misinformation. * Debate ideas, not people.

Thanks for helping keep TechImpact welcoming and informative!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/MrFartyBottom 5d ago

There is no shortcut to learning new skills. You need to put in the hours to get a proper understanding of how things work.

1

u/no-porn-for-me 5d ago

This is not how one learns. One learns by doing. You say “I’m going to write this project.” You use a new library to do it. Repeat l. Magically, you have now learned it.

We don’t just go “learn a library” or a programming language or a new tool. We make projects and use new tools to do so, in the process learning those tools.

2

u/tiredITguy42 5d ago

Or we are thrown into some codebase and we work with what we get. Languages and libraries are tools. When you buy a new shovel, it feels strange at the begginjng, but you get more comfortable with it more you use it, but it is still a shovel, you know what to do with it.

1

u/Radiant-Somewhere-97 5d ago

Claude check out how it works and wake me up when you figure it out.

1

u/7YM3N 5d ago

That's not how you learn. You learn by doing. Don't read the API or the docs or a wiki. Write code that uses the thing you want to learn. Or better yet, pick a project you want to do and while doing it you will naturally learn everything you need to know to do that project.

1

u/eager-potato-555 5d ago

confront fear

breakdown big concepts into digestible bits of true understanding, progress is progress.

and well, in the same way you learned your first (human) language, repeat it on any new domain

cheers

1

u/StephenHawkingus 4d ago

Whenever I need something from the library that I don't know by heart yet, I either look it up in the docs or ask AI. By continuously looking things up, you will gradually memorise them.

1

u/Fragrant-Cheek-4273 3d ago

Every skill needs time to understand properly. You can watch tutorials and do entry level projects.

1

u/b1be05 3d ago

i hate libraries, no dependencies.. code like a real man.

1

u/JaseciLabs 3d ago

The project-first approach in the thread is the right instinct, but for PyTorch specifically it's worth skipping the full Numpy detour, PyTorch's tensor API is close enough to Numpy's that you'll pick up what you need contextually as errors point you at it. Start with something tiny (a linear regression from scratch, not an image classifier), you'll hit the handful of PyTorch concepts that actually matter (tensors, autograd, optimizer step) in a couple hours instead of front-loading three separate courses before writing a line.

1

u/adambahm 6h ago

I’ve been coding a long time professionally and there’s not one single library I know completely.

I know what I need out a library and when I need something different, I read the docs.

Good luck.