Lo and Behold

A few days back, I published an article Lo and Behold here on my blog, and also publicized on Medium and LinkedIn.

The article, inspired by Werner Herzog’s documentary Lo and Behold, is my opinion on one of the anecdotes (Robots that are being designed to beat Messi).

Does the anecdote grab your attention? Then you should find my article interesting.

Let me know what you think.

Writing sonnets in C++

Recently, I came across this post – Write a URL in a C++ program, one of those C’s tricks. If you have not already read the post, I will wait until you read and return …

waitingWaiting …

The crux of the trick is the protocol part of the URL – http:, becomes a goto label and the rest of the URL starting with // becomes a comment. Sweet 🤗

My turn My turn …

Continue reading Writing sonnets in C++

Compiler aided overloading

I was playing with xUnit.net for a pet project of mine. I wasn’t writing test cases with xUnit rather I was using the underlying xUnit engine to discover test cases and invoke calls that execute desired test cases. Forget the details of what I was doing, let us talk about it in a different post. But for now, I was consuming xUnit’s backend library.

XunitFrontController is the gateway to xUnit’s world; AFAIK. You create an instance of the controller specifying the target assembly.

var xfc = new XunitFrontController(
  "{full path of the assembly where the test cases reside}"

Continue reading Compiler aided overloading

C++/CLI Primer – An Apress Book

Earlier this year, I wrote about publishing C++/CLI Primer on LeanPub.com. I wondered if there is anybody else besides myself and Microsoft using C++/CLI but readers surprised and humbled me with their support. Seems C++/CLI is here to stay. Know why?

A couple of months back Apress Publications took notice of the book and offered to publish/print. So here it is: C++/CLI Primer for .NET Development, my first book; who would’ve thought 😎

I don’t see this publication as a great achievement or something for there are “miles to go … miles to go”. But it is a little thing to celebrate; cute moments of life.

In penning down the book I was just the vehicle. Friends and family are the wheels and fuel of the vehicle.

Thanks to Apress – Steve, Mark, Amrita and the team.

Thanks to my wife and my brother who always supported and encouraged me to write.

Thanks to Sanjeev and Sammy for not letting my fire within die.

Finally, also taking liberty on behalf of Sanjeev: Special thanks to Tom Craig. Yeah, we would still have been in software development, made names and everything. But without his guidance and inspiration we wouldn’t have known what makes programming a joy.

Problem Reduction

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

Importance of Semantics

semantics1 | /sɪˈmæntɪks/ | noun (functioning as sing)

  1. 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
  2. the study of the relationships between signs and symbols and what they represent
  3. (logic)
    • 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

Application Models

A typical business application is composed of several flows or use-cases. Also, these flows consist of logical ones like a transaction that spans several flows. Take for instance an e-commerce application which consists of user registration/login, product lookup, and one of the most important interactions in an e-commerce application – the shopping cart, and much more. Although these application flows might appear to be discrete and independent of one another, it is after producing a working solution that we realize that these flows are inherently interrelated for one reason or another. The idea of designing stateless application flows is many times confused with the relation between the flows.

Continue reading Application Models