Passing function as a argument to another function

Swift is new language on the block, I recently started playing with it. Until now,Objective-C was prefered choice for iOS apps, but future is going to be more and more swift. So today is really day 2 with swift but I wrote some example code to test out the feature of Swift that allows passing function as an argument to another function, and I just can’t stop thinking about it. This programming language concept is usually supported in language where functions are first class citizens like JavaScript, so I have used this before , but the way it is supported in swift is just amazing and smooth. Take a look at the below code

func popNumbers(numbers : [Int],condition : (Int -> Bool) ) -> [Int] {
var numbersToBePoped = [Int]()
for number in numbers {
if condition(number) {
return numbersToBePoped

func lessThanFive(number:Int) -> Bool{
return number < 5

func oddNumber(number : Int ) -> Bool{
return number % 2 != 0

func threeDigitNumber(number : Int ) -> Bool{
return number >= 100

var resultArray = popNumbers([12,2,135,45,3,209], lessThanFive)
var resultArray2 = popNumbers([12,2,135,45,3,209], oddNumber)
var resultArray3 = popNumbers([12,2,135,45,2,209], threeDigitNumber)


Strategy – What is it good for?

Strategy is something when you spot a completely new pattern in existing dots, and then bring in resources from thin air to convert that pattern into a unidirectional path.

– Hard definition to maintain dignity of word – “Strategy”

(Come across a facebook update  from fellow entrepreneur regarding the miss-use of word strategy and how simple explanation kills its meaning, so thought let me write something that I think strategy is, but in language that is hard enough to maintain the dignity of the word)

Ciao Ciao.. Webonise !

They say “It’s all about the journey, not the destination!”. When I heard this first time, I thought what a “Really smart, intelligent Class-A level bullshit is that!!“

But over period of time I realized how that is nothing but “simple truth”.

One of my mentors and someone who was the first investor in Webonise told me that, “ Process of making money is extremely slow, hence it is important to work on something that you really love”. I would like to little extend on that today “It is not only important to work on something that you really love, but also with people that you like and enjoy working with.“

As we graduate from one stage to another stage of life, our destinations, targets, individual goals and even our routes to achieve those keeps changing.

Today, my destination and route is changing, this is my last month with Webonise as Chief Operating Officer and on the Board of Directors. I will be stepping down from all executive roles, but will continue to be shareholder.

It was nothing less than a privilege to work and lead amazing people. You guys made this journey fun and enriching, 30KG weight which I added while building Webonise is totally worth it!

When we started Webonise in early 2009, we didn’t really know what exactly we are going to do, but we knew few things which we are not going to do.

One, I was really sure that we don’t want to build ownership driven, a lala or sethji type company. As I move on and Webonise continues to prosper and grow is the proof of that. Among the many things which I am personally proud of that we were able to achieve at Webonise, this one top’s the list!

In the last one year, after merger with the US entity, I started handing over responsibilities to the New Management team, specifically the CEO-Rob, Director-Chris and CTO-Rich. These are some remarkable and experienced people, I am very certain that they will continue to grow Webonise and take it to new heights.

Recently, Bob Young — the founder and Ex-CEO of open source Linux leader RedHat and has joined Webonise as an investor and board member. Clearly shows that exciting time is ahead for Webonise.

I am not really a big fan of word “Legacy”. Whenever I hear that word, only two things comes to mind. First, the face of Amitabh bachchan from the movie Mohabbatein, we all know how boring that movie was. I tried watching it two times & every-time I was found sleeping like a baby. Second, most people who talk about legacy usually don’t have any future left which they can look up-to. They think that their good days are behind them and they don’t have confidence in themselves that they can achieve some amazing things in the future.

I am less of a businessman and more of an entrepreneur. Yes, there is a difference in those two. For starters, Entrepreneur are usually blessed with little extra adipose whereas businessmen are skinny — No.. No..! I am kidding 🙂 !

Many of you have worked very closely with us from early days and I hope we were able to influence (If not influence, then at-least decrease the bar so low that if these clowns can do then I can try too) some of you with the entrepreneur spirit and attitude. A Lot of you have already got bitten by entrepreneurial bug — did you notice that itch sometime? Its that bug, who is doing it’s job.

I would really like to see, what lies ahead. How that itch convert into infection and take over your mind and body. How many of you really take that Entrepreneurial bug, eat it, chew it hard and start something of your own. (little too dramatic but you got the point 🙂 )

One last thing which I learnt in the last couple of months as I started looking for the next exciting thing to do,

Be a little Unreasonable , Be a little Lazy!!
Do get Bored & Don’t get Impressed that Easy!!

University Exam of One – Part 1


A tale of Embarrassment ,Self-Discovery and Hypocrisy — Part 1 

“But I learned that there’s a certain character that can be built from embarrassing yourself endlessly. If you can sit happy with embarrassment, there’s not much else that can really get to ya.” – Christian Bale

It was almost over a week , I didn’t go to the office for this day.I was finally about to attend final paper for my final chance to be engineer.

I left for college around 12.30PM , exam was about to start at 2PM, but I had one more daunting task before that ,this one made sure that even back in my regular engineering days , I didn’t really attend too much of college. My college is like all beautiful things, is at odd place and hence little difficult to get to. A beautiful campus on Hill surrounded by trees and every corner with nice view of city , but I care less,(Pretty sure even Himalaya is beautiful and a view from there ), but if parking is at bottom, Then I am not going at either places !

But then I thought , wait a minute ! let me make some use of my older looking outlook now. I have seen security guard letting professor or parents cars through main gate , and once they are through main gate, car can really go till computer science department building .Awesome ! I did shout to my daughter , “Swaraa , where is my office ID card ?” — she is 11 months old, she didn’t really know what I am asking her , but my wife Nirmala heard that, she found it somewhere and gave it to Swaraa , and asked her “Give it to Daddy “ , my 11 month old walked across hall in very cute baby walk , like she is on mission or something . (Great, That is not just cute but useful too!! , Now I have my own new “Cute in-house transporter for all small things” )(Ohh, come-on , you all do it(or will do it if not already ) , use your kids to do things in household that we think are extremely boring , but would be cute to see them do it. )

So I wore ID card around my neck , idea was to trick security guard in thinking its College ID, while I will sport my big glasses which make me look even older than what I am already , and then show a fake confidence that depicts attitude of “I am regular here , and you are new, so open the gate , you sucker!”

I was almost 150 meters away from gate, security guard looked at me , I kept my game face on , gave him a stare, then looked around a little , but not too much. In my head, – “there is no way I am going to climb this hill in hot afternoon” ,I am attending this paper against of my will anyway , if he don’t let my car in , I am gonna consider this as a personalized sign/signal from God almighty(Like he has nothing else interesting to do!!! ) and turn my car around, watch whatever next movie available for next 3 hours ,switch off my phone so everyone else think in exam hall.“ (yeahh, I have done that before, we all have our weak moment)

Just give me a reason , and I swear I will take it.

But It turns out , my game face worked, he opened a gate and I drove through. Hmm.. well , lets see through this then as If I am anyway already in campus ,“ But First thing first, off to Anna’s Canteen which is very strategically housed just below girls hostel — next 45 minutes, Some Exotic Bird watching could relax me which is much needed for exam !! “ (Not revision , see that is the difference between you and me !! )

Look I get it , I almost spend last 5 paragraphs talking about how much I planned ahead to just get my car inside campus, Its seems very trivial thing , and I completely agree with you. Believe it or not , but this was one of the main reason why I hardly attended my engineering college.( Or At-least in retrospective I think it was 🙂 )

Sometime pure laziness of not doing trivial things, could lead to more interesting and challenging tales.

But in my case , giving Exam after around 7 years and 30KG extra weight I have been carrying around !!

Well Hold ON ! , Story Is not Finished yet, What happened till now was nowhere close to what Happen Next ! So get ready for some more humor in Part 2 this series, as they say “one’s tragedy , for others its comedy “

Image Credit :

Yogurt Labs – What is it not?

We are not working on following at Yogurt Labs

“Enterprise SAAS based Yogurt Making Process Automation Tool which is derived from Cloud based Analytical Dashboard churn by our Proprietary Big Data Implementation”

If you are not able to understand what I mean by above , Its ok , neither does any one of those poor fells that I tried Explaining it as a part of Pre-idea brain storming session .

But everyone loved it and said “Its a great Idea” 🙂

(To find little more about Yogurt Labs, you can go to )