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

What are important languages to learn to understand different approaches and concepts? [closed]

Matters of practicality are highly subjective, so I will simply say that learning different language paradigms will only serve to make you a better programmer. What is more practical than that? Functional, Haskell – I know you said that you didn’t want to, but you should really really reconsider. You’ve gotten some functional exposure with … Read more

What is the difference between Type and Class?

The following answer is from Gof book (Design Patterns) An object’s class defines how the object is implemented. The class defines object’s internal state and the implementation of its operations. In contrast, an object’s type only refers to its interface – a set of requests to which it can respond. An object can have many … Read more

What is eager loading?

There are three levels: Eager loading: you do everything when asked. Classic example is when you multiply two matrices. You do all the calculations. That’s eager loading; Lazy loading: you only do a calculation when required. In the previous example, you don’t do any calculations until you access an element of the result matrix; and … Read more

The term “Context” in programming? [closed]

Let’s say you go to the dentist to have a tooth pulled out. When the receptionist asks you for your name, that’s information they need in order to begin the appointment. In this example, your name is contextual information. So in the context of visiting the dentist, you need to provide your name to get … Read more

Are there any legitimate use-cases for “goto” in a language that supports loops and functions?

Everybody who is anti-goto cites, directly or indirectly, Edsger Dijkstra’s GoTo Considered Harmful article to substantiate their position. Too bad Dijkstra’s article has virtually nothing to do with the way goto statements are used these days and thus what the article says has little to no applicability to the modern programming scene. The goto-less meme … Read more

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