02. April 2009

The Programmer’s Reference: Looking at the Right Places.

This is a guest post by Binit Thapa, Chief Software Architect, InRev systems (http://www.in-rev.com/)

Anyone is a programmer in today’s world. Whether you like it or not, knowingly or unknowingly, you’ve come across bits and pieces of programming. Even if you haven’t made your hands dirty with languages like C/Java or Perl, you must’ve done some Microsoft Excel (VBA) programming or writing Ms word macros. Whatever be the case and your programming experience, it always helps to have a place, a temple, where you get help from. While this exact place may vary among us, fixing one always comes in handy. Here I’m compiling a few such places, the ones I loved, which I’m sure you’d like it too for the programming languages that I’ve used.

For Qbasic, and this is the first programming language I learnt, the best place I’ve found is its in-built help. As a high school student and unaware of the power and limitations of programming languages, I used to read this a lot. The examples provided there will always guide a student.

Next is C-Unix/Linux. The in-built manual pages is a very handy reference. Though it serves just as a reference and not learning or exploring new functions, this is a time-saver as you won’t have to open the browser and visit the web for such a trivial thing as syntax. Manual pages (the man command) is very extensive too. From finding help for the system commands to the shell programming (bash/ksh/sh/csh) do the man and find it out.

Perl. Once you learn this language, you start knowing the limitations of C. C is fast, Perl is easy. The Perl’s help system, the way modules are installed (perl -MCPAN -eshell), all these are unique and make it all the more powerful. For standard Perl functions and the run-time options, for the special variables and regular expressions there’s perldoc. Then for new modules (which you’ll almost certainly require), we have CPAN (http://search.cpan.org). Mostly written by the module owners, the Perl’s contributors are many; yet I’ve found it to be largely exemplified and serving the purpose.

vim/gvim. The editor that is lightweight and yet supports every complex operation to do your job fast. When you learn this, you know its “optimized for speed” for the same things might require a long,long time in any other “flashy” editor available (except of course, emacs). The vim’s starting tutorial is very good for beginners. The in-built help is very extensive but I’ve found it unnecessary to dig-in unless you want to become an expert in vim customization. You can open files across ftp and make changes as if its local, you can check-in and check-out files, you can run cscope commands, you can even compile applications all with this lovely editor.

Microsoft technologies (C#, VB, VC++). I’ve done little work in this arena but digging into MSDN always helped me a lot. The examples provided and descriptions given have never disappointed me. IMO developers can work even without an internet connection and having the MSDN provided.

Google has spoiled developers. Yes, it has got answers to all questions but its always easy to directly hit the bird rather than proxying through google. And if you’ve the habit of finding help in a common place, you already know the interfaces and chances are likely that you’ll look into the right places and find the solution faster. But for troubleshooting and quick-fix solutions, nothing beats google.

 

23. March 2009

POEMS FOUND IN TOILETS


THE ‘FUTURE’ IS IN YOUR HAND, HOLD IT GENTLY’

Excellent poems by not so famous poets… Found on toilet doors and walls…

A budding poet trying his best… 
Here I lie in stinky vapour,
Because some bastard stole the toilet paper,
Shall I lie, or shall I linger,
Or shall I be forced to use my finger.
Before he graduated to be a poet, he wrote this…
Here I sit
Broken hearted.
Tried to shit
But, only farted.

Someone who had a different experience wrote:
You’re lucky
You had your chance
I tried to fart,
And shit my pants!

Perhaps it’s true that people find inspiration in toilets.
I came here
To shit and stink,
But all I do
Is sit and think.

There are also people who come in for a different purpose… 
Some come here to sit and think.
Some come here to shit and stink.
But, I come
Here to scratch my balls ,
And read the bullshit on the walls….

Toilet’s walls also double as job advertisement space… (written high upon the wall) 
If you can piss above this line,
The Singapore Fire Department wants you.

Ministry of Environment advertisement.
We aim to please!
You aim too! Please

On the inside of a toilet door: 
Patrons are requested to remain seated throughout the entire performance.

And finally, this should teach some a lesson… Sign seen at a restaurant: 
The hands that clean these toilets also make your food…please aim properly.

17. March 2009

The Barber & haircut

A guy stuck his head into a barber shop and asked, “How long before I can get a haircut?”

The barber looked around the shop full of customers and said, “About 2 hours.”

The guy left.

A few days later, the same guy stuck his head in the door and asked, “How long before I can get a haircut?”

The barber looked around the shop and said, “About 3 hours.”

The guy left.

A week later, the same guy stuck his head in the shop and asked, “How long before I can get a haircut?”

The barber looked around the shop and said, “About an hour and half.”

The guy left.

The barber turned to a friend and said, “Hey, Bill, do me a favour.

Follow that guy, and see where he goes. He keeps asking how long he has to wait for a haircut, but then he doesn’t ever come back.”

A little while later, Bill returned to the shop, laughing hysterically.

The barber asked, “So, where does that guy go when he leaves here?”

Bill looked up, choking on laughter, tears in his eyes, and said, “Your house.”

25. February 2009

Mindset !

As my friend was passing by an elephant, he suddenly stopped, confused by
the fact that these huge creatures were being held by only a small rope
tied to their front leg. No chains, no cages. It was obvious that the
elephants could, at anytime, break away from the ropes they were tied to
but for some reason, they did not. My friend saw a trainer nearby and asked
why these beautiful, magnificent animals just stood there and made no
attempt to get away.

“Well,” he said, “when they are very young and much smaller we use the same
size rope to tie them and, at that age, it’s enough to hold them. As they
grow up, they are conditioned to believe they cannot break away. They
believe the rope can still hold them, so they never try to break free.” My
friend was amazed. These animals could at any time break free from their
bonds but because they believed they couldn’t, they were stuck right where
they were.

Like the elephants, how many of us go through life hanging onto a belief
that we cannot do something, simply because we failed at it once before? So
make an attempt to grow further…. Why shouldn’t we try it again?

“YOUR ATTEMPT MAY FAIL, BUT NEVER FAIL TO MAKE AN ATTEMPT.”

10. February 2009

Full Form of OBAMA - Lol

OBAMA

O- Originally
B - Born in
A - Africa to
M - Manage
A - America

08. February 2009

Layoff and how it happens !!

Once upon a time the government with Ruling Party XYZ.. had a vast scrap
yard in the middle of a desert.
Ruling Party XYZ Said.. - “Someone may steal from it at night.”

So they created a night watchman position and hired a person for the job.
Then Ruling Party XYZ Said..

- “How does the watchman do his job without instruction?”

So they created a planning department and hired two people, one person to
write the instructions, and one person to do time studies. Then Ruling
Party XYZ Said..,

- “How will we know the night watchman is doing the tasks correctly?”

So they created a Quality Control department and hired two people. One to
do the studies and one to write the reports. Then Ruling Party XYZ Said.. ,

- “How are these people going to get paid?”

So they created the following positions, a time keeper, and a payroll
officer, then hired two people. Then Ruling Party XYZ Said..,

Who will be accountable for all of these people?”

So they created an administrative section and hired three people, an
Administrative Officer, Assistant Administrative Officer, and a Legal
Secretary. Then Ruling Party XYZ Said..,

- “We have had this command in operation for one year and we are $18,000
over budget, we must cutback overall cost.”

So they laid off the night watchman.

« Previous Entries   Next Entries »