You are reading a single comment by @andyp and its replies. Click here to read the full conversation.
  • I'd agree with Lenny. Avoid global variables at all costs.

    Making code readable is a matter of opinion, so be flexible and consider input from others. I worked with someone who insisted on using Hungarian Notation once and his code was freaking impossible to read. (As an aside, the project we were working on had a massive code base written by west coast acid casualties and no-one really understood it - it took me two weeks to change one input text box to make it Y2K safe. The moral is, always get your code reviewed if possible and include readability as one of the aspects to be covered by the review).

About

Avatar for andyp @andyp started