Monday, July 26, 2004

PERL enthusiasts-Everybody's code is flawed unless proven otherwise

There is a better way to write code in my opinion.The same can be said for most languages I think.

The fundamental rules I apply to evaluating any opportunity are:

1)The opportunity should save time,money and resources for a company and its buyers.
2)The opportunity should be from a new business wanting to expand in my place or country and the company should request me for help.
3)It can be from an established company looking to expand into diverse regions where I can help them out.
4)Even today there are plenty of opportunities and all one should do is look around and keep the eyes and ears open.
5)The opprtunity should benefit me and all others including members of society.

http://www.perlmonks.org

I have found the monastery for PERL. I to believe in three things the author has pointed out:

It is not personal

Forget about code ownership. You may think yourself an artist, but even the old Masters produced a lot of crap. Everybody's code is crap, which means my code is crap and your code is crap. Learn to love that. When you have a problem, your first thought should be ``Something is wrong with my crappy code''. That means you do not get to blame perl. It is not personal.

Forget about how you do things. If the way you did things worked, you would not be reading this. That is not a bad thing. It is just time to evolve. We have all been there.


Personal responsibility

If you have a problem with your script it is just that---your problem. You should do as much to solve it by yourself as you can. Remember, everyone else has their own scripts, which means they have their own problems. Do your homework and give it your best shot before you bother someone else with your problems. If you honestly try everything in this guide and still cannot solve the problem, you have given it your best shot and it is time to bother someone else.

Change how you do things

Fix things so you do not have the same problem again. The problem is probably how you code, not what you code. Change the way you do things to make your life easier. Do not make Perl adapt to you because it will not. Adapt to Perl. It is just a language, not a way of life

No comments: