What is the difference between Caching and Memoization?

Memoization is a specific form of caching that involves caching the return value of a function based on its parameters. Caching is a more general term; for example, HTTP caching is caching but not memoization. Wikipedia says: Although related to caching, memoization refers to a specific case of this optimization, distinguishing it from forms of … Read more

Coarse-grained vs fine-grained

From Wikipedia (granularity): Granularity is the extent to which a system is broken down into small parts, either the system itself or its description or observation. It is the extent to which a larger entity is subdivided. For example, a yard broken into inches has finer granularity than a yard broken into feet. Coarse-grained systems … Read more

What is a callback URL in relation to an API?

A callback URL will be invoked by the API method you’re calling after it’s done. So if you call POST /api.example.com/foo?callbackURL=http://my.server.com/bar Then when /foo is finished, it sends a request to http://my.server.com/bar. The contents and method of that request are going to vary – check the documentation for the API you’re accessing.

Difference between framework vs Library vs IDE vs API vs SDK vs Toolkits? [closed]

An IDE is an integrated development environment – a suped-up text editor with additional support for developing (such as forms designers, resource editors, etc), compiling and debugging applications. e.g Eclipse, Visual Studio. A Library is a chunk of code that you can call from your own code, to help you do things more quickly/easily. For … Read more

What is a ‘SAM type’ in Java?

To summarize the link Jon posted1 in case it ever goes down, “SAM” stands for “single abstract method”, and “SAM-type” refers to interfaces like Runnable, Callable, etc. Lambda expressions, a new feature in Java 8, are considered a SAM type and can be freely converted to them. For example, with an interface like this: public … Read more

What is “Orthogonality”?

Orthogonality is the property that means “Changing A does not change B”. An example of an orthogonal system would be a radio, where changing the station does not change the volume and vice-versa. A non-orthogonal system would be like a helicopter where changing the speed can change the direction. In programming languages this means that … Read more

Scalar vs. primitive data type – are they the same thing?

I don’t think they’re interchangeable. They are frequently similar, but differences do exist, and seems to mainly be in what they are contrasted with and what is relevant in context. Scalars are typically contrasted with compounds, such as arrays, maps, sets, structs, etc. A scalar is a “single” value – integer, boolean, perhaps a string … Read more

What exactly is the meaning of an API? [closed]

Searches should include Wikipedia, which is surprisingly good for a number of programming concepts/terms such as Application Programming Interface: What is an API? An application programming interface (API) is a particular set of rules (‘code’) and specifications that software programs can follow to communicate with each other. It serves as an interface between different software … Read more

What is the difference between a directory and a folder?

Check “The folder metaphor” section at Wikipedia. It states: There is a difference between a directory, which is a file system concept, and the graphical user interface metaphor that is used to represent it (a folder). For example, Microsoft Windows uses the concept of special folders to help present the contents of the computer to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)