crislivinitup Posted April 20, 2010 Share Posted April 20, 2010 Hey guys, I was doing some programming and I am working with a huge amount of variables, arrays, handles, etc. and I was wondering what habits do the experienced programmers have to prevent them from getting confused with all the thousands of variables. Simple question; a little expertise would be appreciated . Thanks ahead of time for any replies Link to comment Share on other sites More sharing options...
crislivinitup Posted April 20, 2010 Author Share Posted April 20, 2010 Myself, I always spell everything out completely--that way I tend not to get confused. Ex. "$savednamelistboxGUI"... The only problem is, lines an get quite long and it looks very ugly (not that it has to look pretty, but at least a little more professional). Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 20, 2010 Share Posted April 20, 2010 I don't strictly follow any rules, but I usually have the UDF Standards in mind so at least I know what type the variable is .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
crislivinitup Posted April 20, 2010 Author Share Posted April 20, 2010 I don't strictly follow any rules, but I usually have the UDF Standards in mind so at least I know what type the variable is This was EXACTLY what I was looking for; I don't typically distinguish between integers and binary but, it would be important for more advanced programming than what I'm currently doing (especially with the use of the dll functions). Link to comment Share on other sites More sharing options...
crislivinitup Posted April 20, 2010 Author Share Posted April 20, 2010 Wow, I forgot to say thanks... My mother would be appalled. Thanks for your reply. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now