Ya, coding conventions!
(for the OCD developer)
- Follow coding conventions in your projects. That way you write clear and concise code. The problem is there are many conventions. In reality “conventions” is really a code word for someones arbitrary opinion on how to write neat code. So…which one do you follow? It doesn’t really matter; just follow one. Adobe recently lays one out and I can agree with most of it. It is not complete and just because it is by Adobe does not mean it is the end all be all.
While reading the document, I couldn’t help but feel like I was being scolded by my parents. Take a look:
public function set label(lab:String):void
- Stick to those conventions! I have to admit it is hard but practice it all the time. Remember this is not the fun part of Flash & Flex development and it never will be but make it a habit.
- Lastly, you will eventually run into someone who doesn’t agree with your conventions. In that situation just think about my first point.
Now time for me to go back to my old code and see what mistakes I’ve made.