Saw "The Hire" series today .. these are short ad movies of BMW done by directors like John Woo, Guy Ritchie.. i saw some of them on my way back to home from office in shuttle .. during car chase sequences i felt like i was there in real :)
There are many things a compiler does which helps a programmer. Let me give an example of my recent experience
String name; if (i == 0) { name = getName(); if (name.equals("x")) { doSomething(); } } else { name = getAnotherName(); if (name.equals("y")) { doAnotherThing(); } }
this is perfectly okay .. if we had forgotten the call name=getAnotherName() in the else condition, compiler would crib saying that name is not initialized.
Now in many code i see that people have a tendency to declare String name = null;
in this case if you had forgotten to call name=getAnotherName() in else, the compiler would pass as name is initialized to null. And at runtime you will get a NullPointerException as you are doing null.equals("y")
In some places initializing to null cannot be avoided, but i believe, wherever possible dont initialize to null, it will help you
My team has gone for outing, I'm alone in my bay, Entire people(IMS group) at my floor are celebrating their 3rd year with grandeur, I have cancelled my leave for next week and i'm cancelling my bus ticket to hometown where i meant to go after one year, Team mates call me and say "Fuck You" and i'm searching for String.EqualsIgnoreCase in C# .. i'm loving it :) .. reminds me of my final days in Cognizant ..
"Remember, when in doubt.. Fuck" Al Pacino to his cat in Scent Of A Woman
There's a lady who's sure all that glitters is gold And she's buying a stairway to heaven. When she gets there she knows, if the stores are all closed With a word she can get what she came for. Ooh, ooh, and she's buying a stairway to heaven.
There's a sign on the wall but she wants to be sure 'Cause you know sometimes words have two meanings. In a tree by the brook, there's a songbird who sings, Sometimes all of our thoughts are misgiven. Ooh, it makes me wonder, Ooh, it makes me wonder.
There's a feeling I get when I look to the west, And my spirit is crying for leaving. In my thoughts I have seen rings of smoke through the trees, And the voices of those who stand looking. Ooh, it makes me wonder, Ooh, it really makes me wonder.
And it's whispered that soon if we all call the tune Then the piper will lead us to reason. And a new day will dawn for those who stand long And the forests will echo with laughter.
If there's a bustle in your hedgerow, don't be alarmed now, It's just a spring clean for the May queen. Yes, there are two paths you can go by, but in the long run There's still time to change the road you're on. And it makes me wonder.
Your head is humming and it won't go, in case you don't know, The piper's calling you to join him, Dear lady, can you hear the wind blow, and did you know Your stairway lies on the whispering wind.
And as we wind on down the road Our shadows taller than our soul. There walks a lady we all know Who shines white light and wants to show How everything still turns to gold. And if you listen very hard The tune will come to you at last. When all are one and one is all To be a rock and not to roll.
Hello. Is there anybody in there? Just nod if you can hear me. Is there anyone home?
Come on, now. I hear youre feeling down. Well I can ease your pain, Get you on your feet again.
Relax. I need some information first. Just the basic facts: Can you show me where it hurts?
There is no pain, you are receding. A distant ships smoke on the horizon. You are only coming through in waves. Your lips move but I cant hear what youre sayin. When I was a child I had a fever. My hands felt just like two balloons. Now I got that feeling once again. I cant explain, you would not understand. This is not how I am. I have become comfortably numb.
Ok. Just a little pinprick. [ping] Therell be no more --aaaaaahhhhh! But you may feel a little sick.
Can you stand up? I do believe its working. good. Thatll keep you going for the show. Come on its time to go.
There is no pain, you are receding. A distant ships smoke on the horizon. You are only coming through in waves. Your lips move but I cant hear what youre sayin. When I was a child I caught a fleeting glimpse, Out of the corner of my eye. I turned to look but it was gone. I cannot put my finger on it now. The child is grown, the dream is gone. I have become comfortably numb.
Where were you when I was burned and broken While the days slipped by from my window watching And where were you when I was hurt and I was helpless Because the things you say and the things you do surround me While you were hanging yourself on someone else's words Dying to believe in what you heard I was staring straight into the shining sun
Lost in thought and lost in time While the seeds of life and the seeds of change were planted Outside the rain fell dark and slow While I pondered on this dangerous but irresistible pastime
I took a heavenly ride through our silence I knew the moment had arrived For killing the past and coming back to life
I took a heavenly ride through our silence I knew the waiting had begun And I headed straight..into the shining sun
I loved the San Marino race yesterday. Michael the man!, of course ppl are bound to disagree for some reason or another. But i loved every moment Alonso tried overtaking Michael and failed. Inspirational :)
You can watch it for at least the Salma Hayek dance sequence. The song+dance was one of the best, and she's got the young innocent look. Ive been infinite looping on that song over the weekend.
which reminds me of the movie Four Rooms i saw sometime back. It is directed by 4 ppl with Quentin and Rodriguez among them. It is a funny movie and Tim Roth rocks.
I have been reading Robert Jordan's "The Wheel of Time". It is a great fantasy book(s). Currently im approximately in the middle of first book (The Eye of the World). If everything goes well, i plan to read the series completely (Currently there are 11 books and dog knows how many more he has planned.) I only hope he doesnt die before he finishes.