Thursday, July 21, 2011

Facade Design pattern in Jaane Tu Ya Jaane Na

Recently I've been finding lots of similarities between technical and psychological stuff, maybe now it's time to take formal education in psychology. Human behaviors, their varying responses - be it of a happy go lucky bus conductor or be it of carefree school children, or be it of ever complaining S/W engineers like us – each one offers a different case study – Certainly an interesting project to work on.

Couple of days back, I was watching Jaane Tu Ya Jaane Na. I've watched it several times – So most of dialogues, scenes were by heart. But this time, something new was found –Implementation of Facade design pattern.

Imran's girlfriend – not Genelia - other one played by Manjiri always play game "What's this?" It never clicked me what was director trying to say through this, but now I got it. That was Façade. Her parents do not get along – and she wasn't ready to accept it – she couldn't do anything about it – so what can be done – she built up Façade to fool herself – Game where she sees what she want to see and ignores the reality. This way, she is able to convince herself that all is well, although it is not. Exactly this is how Façade is defined on Dictionary.com – "An outward appearance that is maintained to conceal a less pleasant or creditable reality".

Hats off to the Director/Writer for putting such a well thought character and displaying minute understanding of Psychology.

P.S. On the same note - recalled one book - Tao of Physics - recommended by geek friend of mine which talks about places where modern physics meets spiritual world, it seems its time to pick that one up now.

Monday, July 18, 2011

Web development teaches Philosophy of life...

I always tend to call ASP.NET as first love(of course technical :)). Somehow windows apps never appealed me as much as Web apps. Maybe because, I first learned web development and then Windows or maybe because they are little more tricky than Windows (now that's unnecessary pride) or maybe simply because I find them easier to
develop :) I love playing around with JavaScript, PostBacks, sync-async requests and in general the Get - Post mechanism. And of course evergreen Cross browser issues!!

Now, I have found one more reason.. and this is gonna sound insane.. Web development teaches Philosophy of life...now I'm sure most of the you are going to say I am crazy.. but let me offer you an explanation..

What do sages ask us to do? - Do not live in past, it increases "Tamogun" - Do not worry about future - Do your Karma - Live in present..
Or for that matter Katrina in Zindagi na milege Dobara tells the same to Hrithik..
Or again Amir says in RDB - "humara ek pair future mein - aur ek pair past mein, isliye aaj pe *** **** hai"

So what is the relation with Web!!! Isn't the web stateless? It does not bother about what was previous requests, what will be next.. what it cares is - What it is supposed to do right now!! That is ..living in present.. Waw.. that's the place where Technology meets Philosophy...Unusual Sangam...and I'm loving ..(catch-line courtesy: MacD)

Wednesday, July 13, 2011

मोगरा फुलला!!!





(हा ब्लॉग मुद्दाम मराठीत लिहत आहे, कारण मोगरा फ़क्त "मोगराच" असू शकतो, जस्मिन हा शब्द मोगर्यासमोर समोर अगदीच तोकडा वाटतो )

एक अभि-"यांत्रिकी" पदवीधर असल्यामुळे, मी दिवस-रात्र यंत्राबरोबर काम करतो असतो, अणि ते यंत्र आहे, संगणक. अणि काय काम करतो तर म्हणे, "Automation, Integration, Value-addition"...बरेच जड शब्द .... म्हणजे आणखी यांत्रिकीकरण!!!

चोवीसपैकी बारा तास यंत्रांसमोर घालवल्यावर निसर्गातील अगदी साध्या (वाटणाऱ्या परंतु नसणाऱ्या) गोष्टींचे सुद्धा अप्रुप्र वाटतं, आणि तसंच काहीतरी मोगर्याबरोबर झालं. रोजचे साधारणपणे एकटाकी काम आणि त्यासारखाच यांत्रिक(वाटणारा पण नसणारा) प्रवासात एकदा मोगर्यानी माझं लक्ष वेधून घेतलं. ऑफीसपासून बस stop पर्यंत जाताना मी तीन सिग्नल ओलांडतो. कर्कश होर्न आणि लढायला निघालेल्या गाड्यांना मी बहुतेक वेळा नावं ठेवतंच असतो. अशाच एका सिग्नलवर नावं ठेवतं असताना, त्या धुरात एका मंद सुगंधानी माझं लक्ष वेधून घेतलं. तो मोगरा होता... गाड्यांच्या गर्दीत कुठे तरी गजरेवाला होता, मी त्याला पाहू शकत नव्हतो, पण सुगंध माझ्यापर्यंत पोहचला होता..

हळूहळू तो गाड्यांच्या गर्दीतून बाहेर आला आणि मोगर्याचा सुगंध आणखी पसरला. अर्थात, मी काही गजरा खरेदी करणार नव्हतो, तरी त्या मोगर्याकडे बघून एक छान हसू मात्र उमटलं.. आता रोज सिग्नल क्रॉस करताना मी मोगरा
शोधत असतो..

असंच पुन्हा केव्हा तरी गुलमोहर आणि उडळ विषयी... उन्हाळ्यात लालबुंद बहरलेला गुलमोहर आणि हिवाळ्यात गुलाबी फुलांनी डवरलेला उडळ, कधी जाणवला नसेल तर जरूर बघा, त्यांच्या कडे बघून सुद्धा हसू नक्की उमटेल. :)

ता. क. यात काही शुद्धलेखनाच्या चुका आहेत, पण मी कितीही प्रयत्न केला तरी, मला Google Transliterate वर बरोबर जोडाक्षर टाइप करता येत नव्हती..:(

Sunday, July 3, 2011

Why did I become Engineer?

Most important question...Three and half year spent as a Software engineer....Few more; rather many more would pass as a engineer - But do I know why did I choose this profession..? did I really choose amongst options... or did it happen to me...With benefit of hindsight, I can say, I never choose the profession... But it happened to me...

अनंत फांदींचा फटका अनुसरण सोपे होतं...
बिकट वाट वहीवाट नसावी, धोपट मार्ग सोडू नको.....
To answer the question, I will have to go little back.. How was I in my studies...Good...amm..rather not so good not so bad...between 5th to 15th rank...i.e. that's always on the hinges...potential to top... never realised....with no regreats

Subjects I liked..It's mixed bag..Doesn't fit in any conventional stream our system has...Marathi, History, Geometry, Biology, Civics..

So I went ahead with usual choice that people follow.. the Science stream...
And similar thing happened after higher secondary, usual choice that people with "average" marks follow - get an admisstion in some xyz engineering college.. so did I...got an admission for B.E. (I.T.)..

How much did I knew about I.T. then..? Maybe just one thing.. that I would get some job with better salary if I pass.. that's it...No other thing.. Some relatives working in IT, going abroad, earning in Dollars; was kind of enough information to decide what I would be doing for rest of the life..Was that really enough.. I would have to put question mark here. ..

"Was that really enough infomation to decide what I would be doing for rest of the life?"

That's not a boolean answer, so I would neither say Yes nor will I say No.

So with days passing, exams approching, semesters rolling, I learned programming... The S/W Engineering....And that was bound to happen, once commited...(naah... admitted in college), I did it... and I know, I did it better....
As expected got a job after college; In company known for better engineers...Learned the ways of business... months passed by and are passing by...I am doing my bit...Yes the word is "BIT"...it fits correctly ... smallest entity in computer parlance.. I try to be best in doing my bit, but I know its only0 "BIT"..smallest entity...


Do I enjoy the work I do..?
Do I add value with my work?
Or
The most important question is.. .
Have I reached to my potential best?
Let's target one by one...

Do I enjoy the work I do..?
It feels good to hear Steve Jobs saying "Do what you enjoy most doing".. It can be easy for some.. But Its difficult for me...

I would enjoy being soldier and dying in battle killing few Kasab's
I would enjoy being librarian and sitting in library; reading for complete life..
I would enjoy being primary teacher and teaching kids
I would enjoy being in govt.services to push India forward.. (might sound over ambitious, but it's true)
And I do also enjoy writing code and delivering the best quality S/W..

So comes the next question..Does it add value..?
I feel most of the times...No... Problems that I solve being an engineer are different from the world I live in. I know - "Automated Integrated systems, High reliability, Better user experience, Increasing efficiency, Better output" - these are the words used to market S/Ws. But at time using heavy words hides truth...and I know my truth, and will leave your truth to be found by yourself... (Topic of this write up is not to analyse advantages of IT, hence I won't enter in this area.)

In one liner, Equation of "Life as Input" and "Value added in S/W I build" .. Doesn't match... rather there is no match.. Life is too big to compare...

Now the last question, Have I reached to my potential best.? Did I push myself to excellance?.
.
.
.
.
This is very difficult and embarrasing. In my heart, I know that what I am doing now as S/W engineer can be done by any Tom, Dick and Harry..And by saying that I am admitting that, I have turned into -
"Stupid common man working for earning living; who seems to have forgoten that Living also means Living the dreams; Reaching ones potential best"

So what is stopping me from reaching potential best? Is it cushion, safety provided by IT job. Why I am not daring to leave safe IT job and enter into field of uncertainity of govt. service? ..Yes its the cushion..

Sudhir Phadke's song describes this very correctly -

आकाशी झेप घेरे पाखरा, सोडी सोन्याचा पिंजरा ||2||

तुज भवती वैभव माया,
फळ रसाळ मिळते खाया ||2||

सुख लोलुप झाली काया,
हा कुठवर घेशी आसरा,

सोडी सोन्याचा पिंजरा ||2||

घर कसले हि तर कारा
विष समान मोती चारा
मोहाचे बंधन धारा
तुज अडवितो हा कैसा पिंजरा

सोडी सोन्याचा पिंजरा ||2||

तुज पंख दिले देवाने,
कर विहार सामर्थ्याने,
दरी डोंगर, हिरवी राणे,
जा ओलांडून या सरिता सागरा

सोडी सोन्याचा पिंजरा ||2||

आकाशी झेप घेरे पाखरा, सोडी सोन्याचा पिंजरा ||2||

कष्टाविन फळ न मिळते,
तुज कळते तरी ना वळते
हृदयात व्यथा हि जडते,
का जीव होई पामरा

सोडी सोन्याचा पिंजरा ||2||

घामातून मोती फुलले,
श्रमदेव घरी अवतरले,
घर प्रसन्नतेने नटले ||2||
हा योग जीवनी आला साजिरा

सोडी सोन्याचा पिंजरा ||2||

आकाशी झेप घेरे पाखरा, सोडी सोन्याचा पिंजरा ||2||

सोन्याचा पिंजरा...बरोबर...हाच शब्द आहे..

सोन्याचा पिंजरा...
सोन्याचा पिंजरा...

(After writing this, I found this as little negative writing, but I want to put things as is.., there is nothing negative, positive, It Just "IS")

Saturday, July 2, 2011

Personal Budget Spreadsheet on Google Docs

This is something that I came across while browsing, keeping track of ones own expenses is always advised, but I am rarely able to follow that. What if someone gives me ready made tool to track them, just found that on Google Docs. Login to Google Docs, look for template gallery and you can find Personal/Family - Monthly/Yearly different types of budget sheets. They seem to be really useful, of course if I am able to use them :P

ययाती

लेखक : वि. स. खांडेकर

काही गोष्टी घडण्यासाठी योग असावे लागतात हेच खरं नाहीतर मी आतापर्यंत 'ययाती' न वाचण्याला काही कारणंच नव्हत. शाळेतल्या अगदी सातवी-आठवी पासून मी 'ययाती' चं कौतुक आलो होतो. पन्नाशीच्या दशकात प्रसिद्ध झालेली हि कादंबरी आजही सर्वांच्या मुखी आहे, ययातीला ज्ञानपीठ पुरस्कार सुद्धा १९७४ साली मिळाला आहे. दर वेळेस मराठी साहित्यावर चर्चा करताना तू ययाती वाचलीय का? या प्रश्नाला नाही उत्तर देताना मला लाजचं वाटायची.

शेवटी एकदा अनपेक्षित पणे तो योग आला. उगाच फिरता फिरता अक्षरधारा नजरेस पडल, आणि वेळ घालवायचा म्हणून आत शिरलो. एक-एक पुस्तक चाळत मी ययाती पर्यंत पोहोचोलो. अनायासे पुस्तक हि समोर होतं, वेळही होता, वाचायला घेतलं, पहिल्या एक-दोन पानातच निर्णय झाला, आणि मी ते खरेदी केलं.

'ययाती' हाती घेतल्यावर पुस्तक खाली ठेवणं शक्यच झालं नाही. खांडेकरांच्या साहित्याबद्दल 'पुस्तक खूप चांगल आहे', असे म्हणण वेडेपणाच ठरेल., उत्तुंग हिमालयच तो, त्याचे मी काय कौतुक करणार. कथेच्या ओघात मध्यरात्र झाली तरी ते पुस्तक खाली ठेवाव असे अजिबात वाटले नाही.

पुस्तक निम्म्यावर आला तरी मला मुखपृष्ठावराच्या घोड्याचा अर्थ समजला नव्हता. मी विचार करत होतो इथे घोडा कशासाठी आहे. आणि मग ययातीच्या एका स्वप्नात- स्वागतात खांडेकरांचे ते रूपक समोर आलं.

ययाती वाहवत गेलाय, बरोबर-चूक हे त्याला कळेनास झालंय, आणि या अवस्थेत त्याला स्वप्न पडतं. तो एका रथात बसलाय, रथ एका अरुंद रस्त्यावरून चाललाय, रस्त्याच्या एका बाजूला उंच पर्वत आणि दुसरीकडे खोल दरी. पाच घोडे रथ ओढत आहेत, ते बेधुंध होऊन धावतायेत, आणि त्यांच्या या बेधुंधपणाची ययातीला भीती वाटतीय, आणि ती भीती खरी ठरते, एक घोडा बेभान होऊन दरीकडे पळत सुटतो. ययातीच्या प्रयत्नांना दाद न देता,तो घोडा, रथ आणि स्वत ययाती दरीत पडतात. आणि ययाती खाडकन झोपेतून जागा होतो. मदिरा
आणि मदिराक्षी (खांडेकरांचे शब्द) यात नखशिखांत डुबलेल्या ययातीची मनस्थिती, त्याला वाटणारी भीती, यांना दर्शवणारं हे रूपक अगदी नकळत पणे संयमाचा संदेश देऊन जातं.
असेच अगदी दुसरं स्वागत, ययाती वडिलांना म्रुत्युशय्येवर पाहताना एका विलासी राजपुत्राची आणि मृत्यूची झालेली पहिली नजरानजर...

या आणि अशा अनेक प्रसंगांनी 'ययाती' एक उत्तम कादंबरी म्हणून साहित्याचा विलक्षण अनुभव करून देते.आणि ती उशिरा का होईना पण मी ती वाचली आहे, याचा मला आनंद होतोय!!