Problem Reduction is what I call when a given problem can be expressed in terms of or solved using a solution to an alternate problem.
Take for instance, the word distance problem: Find the shortest distance between two words in a given set of words. Following is an unanimous solution, I suppose:
Continue reading Problem Reduction
semantics1 | /sɪˈmæntɪks/ | noun (functioning as sing)
- the branch of linguistics that deals with the study of meaning, changes in meaning, and the principles that govern the relationship between sentences or words and their meanings
- the study of the relationships between signs and symbols and what they represent
- the study of interpretations of a formal theory
- the study of the relationship between the structure of a theory and its subject matter
- (of a formal theory) the principles that determine the truth or falsehood of sentences within the theory, and the references of its terms
Semantics is ever more important in programming.
Continue reading Importance of Semantics
Yes, there is a difference. Although both produce the same end effect, an iterator is not the same as a generator. The difference is in the way it is implemented and also consumed.
Continue reading Iterators vs. Generators
In his talk at the CppCon 2014, Bjarne Stroustrup explained, politely and brilliantly, how to write succinct expressive yet intent-ful code. The task is especially hard when there are parties interested in trolling rather than contributing. Like Stroustrup explains back, it is difficult to find the real meaning out of a large block of (legacy) code.
Continue reading JINQ
I have been using Android for quite some time now, and only recently I noticed that Android pops up a notification reminding you of a reminder. It says “Upcoming alarm – Buy Milk”, where Buy Milk is the reminder I had set.
Is it smart enough to help a lazy volatile minded guy like me or is it trying to be my wife who would not rest until I buy milk? Don’t know.
This post is primarily a personal reference. I also consider this a tribute to Oleg, who played a big role in improving my understanding of the jqGrid internals – the way it handles source data types, which, if I may say, led him in discovering a bug in jqGrid.
Continue reading jqGrid: Handling array data !!!
I received quite a lot of criticism for Dealing with Bad Code. The criticism was mostly along these lines – There is no good or bad programmer. The good programmer thing is more of an illusion. When you place a programmer in a domain in which he has little or no experience (like a PHP web programmer writing C++ code), he will soon be seen as a bad programmer. What is branded good or bad is subjective.
Continue reading Clean Code