Jump to content
  • Advertisement
Sign in to follow this  
Noods

Learning a library...

This topic is 3871 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The other day I asked someone for a open file dialog box solution and they came up with it pretty quickly. The fact that others could find information so fast raised a question. Are people memorizing whole libraries? (Win32, DirectX, .NET) Is it because they have learned by experience? Are some just good at parsing the MSDN? Aside from asking other people, how do you all go about finding code solutions?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Are people memorizing whole libraries? (Win32, DirectX, .NET)
Some do.
Quote:
Is it because they have learned by experience?
Some have
Quote:
Are some just good at parsing the MSDN?
Some are.
Quote:
Aside from asking other people, how do you all go about finding code solutions?
Google and other search engines, as well as various wikis, books, reference manuals, any reference repositories actually.

Share this post


Link to post
Share on other sites
Keep in mind that opening an open file dialog is a pretty common task and it's also a fairly common question on the forums, so a quick answer doesn't necessarily indicate memorizing MSDN. If you use a library enough you will eventually memorize common functions to use or at least be able to think something like "I think the function name I need is either BarFoo() or FooBar(). Let's look up both and see if either is what I wanted."

For MSDN, it's often good enough to be able to think of a name of a related function even if you don't know the exact name of the function you want. For example, if you want to find a function to find a file's size, you don't necessarily need to know that it's GetFileSize(). Instead, you can look up CreateFile() in the index section MSDN, and hit the sync button to show the contents section for file management functions and then scan the list of functions for something that sounds right.

Share this post


Link to post
Share on other sites
I could never be able to memorize one hundred mathods and classes names, to not say thousands. Code completion and other IDE features help you with that, hyperlinks in the documentation pages give another help. And, of course, there is google and forums.
The thing becomes even harder when dealing with multiple similar libraries (i.e. Java, C# ) at the same time (how many times until a few months ago I kept writing System.out.println() in place of Console.WriteLine() in my C# programs...)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!