Changes between Version 21 and Version 22 of HowtoGoodProgrammingTechniques


Ignore:
Timestamp:
May 11, 2014, 11:43:46 AM (11 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoGoodProgrammingTechniques

    v21 v22  
    7979
    8080It is good to know what's exactly that variable, to know if we are dealing with a file, with a directory, or with a value, I personally use for that a suffix (ending in) in the variables like '''_v''' for values, '''_d''' for identifying directories, '''_f''' for identifying a file, there's also a good practice to use '''_''' as ''prefix'' for any local variable.
     81
     82=== Big Applications ===
     83Big applications are very hard to found where a bug is to fix it, very hard to maintain, etc, the best way to avoid these pains are:
     841. Keep everything modularized but independent, this means that every function, tool or feature, can be called independently without depend of any other thing, think about use external commands
     851. When those external commands or global tools/functions are called, make sure to include a debug entry showing how it is called, on this way you can easly reproduce the same callback outside the application
     861. Never delete or rename old functions, you will have tools that still depend of it, instead, replace it with the new function and add a warning line telling the user that this function is deprecated
     871. Never refactor changing the final behaviour, unexpected results will happen to applications that uses these functions
    8188
    8289