Hey folks! I'm about to start my computer science degree and I'm eager to get ahead. I've got the basics of Python down, including dictionaries and lists, but I'm still getting my head around object-oriented programming (OOP) and data structures and algorithms (DSA). I'm also a beginner with SQL and web design, so there's a lot on my plate.
Here's the deal: I had an AI create a website for me to get a feel for real-world coding, and I noticed that it heavily used functions like 'get.db()' and various imported functions. This got me curious about how to find and use APIs and libraries for my programming needs.
I want to know: How do I locate an API or library when I'm facing a coding challenge? Should I be using these tools, or is it better to build everything from scratch? Once I find an API, how do I navigate all the functions available? Also, how often will I really be using APIs and libraries in my future job? Is GitHub a good place to learn how others structure their projects, and how do I start analyzing that code?
4 Answers
Libraries can be a programmer's best friend! It's common to leverage existing tools instead of starting from scratch—it's what most devs do to save time and effort. For finding libraries, a great tip is to search PyPI based on your project needs, check the most downloaded ones, and start with their quickstart guides before diving deep into the documentation. That's how you'll become familiar with what tools are out there and useful for you!
Finding APIs is a crucial skill as you grow as a programmer. A lot of what you learn about specific libraries will come from hands-on experiences or tutorials that address specific challenges—like searching for how to connect Python to a MySQL database. As you learn, focus on using the parts of libraries that are relevant to your project instead of trying to master everything! Also, experiment with building something from scratch occasionally; it'll help you appreciate the work that goes into libraries without relying on them all the time. Just remember that the journey is about balancing using libraries and writing your own code!
Be careful relying on AI while you're still learning programming. It's a great tool when you're already comfortable, but as a beginner, it can hinder your understanding and problem-solving abilities. Programming involves developing a different mindset, and that process is vital for your growth!
When it comes to using tools, absolutely—use them if they solve your problem! Before you even install a library, read its documentation to ensure it fits your needs. You'll be using APIs and libraries quite regularly in your work, and over time, you might end up creating your own solutions, especially if you find something isn't meeting your requirements. For GitHub, just set up an account and utilize the search feature to locate repositories that interest you. Diving into how others build their projects is a fantastic way to level up your skills!
Thanks a lot!

Noted. Thank you!