Skip to main content
Home
Richard Harrison's development notes

Main navigation

  • Home
  • Aerodynamics
  • Emesary
  • FlightGear
  • Journal
  • Portfolio
  • Vault
  • Wordpress
  • Showcase
User account menu
  • Log in

Breadcrumb

  1. Home

Advice

The dangers of global variables revisited because of PHP.

In 1985 after about two years of full time programming I had an epiphany; realising that global variables are a very bad idea. Roughly 20% of the bugs that I kept finding were down to abuse or misuse of global variables, so I stopped using them, apart from the time when you really should use one (e.g. for a pointer to global shared memory that never changes).

So here I am over 20 years later, and I've just realised exactly the same thing, except this time it's in PHP not 'CORAL' '66'.

The danger of the using words new latest and old updated newer in any names

The danger of using the words that relate to time and freshness in names, such as old,newer,latest and updated.

Advice

Site Contents

  • Home
  • Aerodynamics
  • Emesary
  • FlightGear
  • Journal
  • Portfolio
  • Vault
  • Wordpress
  • Showcase

Search

RSS feed
Powered by Drupal