« Previous - - Next »

[LAMP + Ajax] naming rule

4 October 2007

I couldn’t find naming rule for LAMP + Ajax. So, I am making my naming rule. This rule might reduce bugs in javascript and php.

In HTML tags

  • tag id attribute must be lower case and finished at “_id”
  • tag class attribute name must be finished at “_class”
  • tag name attribute is not added anything.
  • In Javascript

  • local variant must be Hungarian notation with mixed lower case and upper case without _
  • strTopic (string), elmTopic (element), objTopic (object)

  • global vaiant must be Hungrian notation with only lower case and _
  • str_topic (string), elm_topic (element), obj_topic (object)

    WordPress

    Posted in programming | Trackback | del.icio.us | Top Of Page

    No comments yet

    Leave a Reply