Tuesday, June 30, 2009

Rant # 1

I really love consistency in my program variables. I'm writing in PL/SQL at work now, and our convention is to use pvariablename for all of our procedure parameters. Then we use vvariablename for all of our in procedure variables. It really pisses me off when I'm working on a project with a coworker and she uses a liberal mix of variables starting with p and parameters starting with v.

Also, I really like to handle all my error checking, parsing and stuff on the database side. And she likes to do everything in JavaScript. And our forms are inconsistent. I use three input boxes for a phone number, but she uses 1, with lots of JavaScript control. Again, I control error checking on the server side here, not in JavaScript on the client side.

I think that either way is fine really. I just think that when building a program/website, we should pick a method to do something and use it everywhere instead of just having two or three different types of phone number input fields depending on which part of the app you are looking at.

I bet there are a lot of blogs like this. I seem to get this feeling of frustration quite often while programming, and I'm at a computer with web access, and blogger makes it pretty easy to start a new blog if you want. Lately its almost like, instead of just posting a new blog entry, I'll just make a whole new blog... Should have some option to auto-link all of your blogs if you chose... Maybe I'll build that feature for mine...

Enjoy!

No comments:

Post a Comment