Relative Content

Tag Archive for syntax

How can you learn names of methods or classes of a framework or an API?

I’ve been programming C++ for a year now. I’ve gone through the language features and I’ve written good programs with it, so I decided to move on to OpenGL. At first it seemed confusing. As I kept going through tutorials it appeared to be easier, but I can’t remember the names of classes, methods, arguments, etc.

Why store a function inside a python dictionary?

I’m a python beginner, and I just learned a technique involving dictionaries and functions. The syntax is easy and it seems like a trivial thing, but my python senses are tingling. Something tells me this is a deep and very pythonic concept and I’m not quite grasping its importance. Can someone put a name to this technique and explain how/why it’s useful?