4 ms·
Try to make the beginning part of the name unique. If you follow the Hungarian notation, put that at the end of the name not the beginning. Bad example strnam
by sloaken 7y ago
Try to make the beginning part of the name unique. If you follow the Hungarian notation, put that at the end of the name not the beginning. Bad example strname, straddress, strphone. Better: namestr, addressstr, phonestr.
- tcbasche 7y agoArguably both of those are terrible. It's just fluff for no real benefit. Why do you not know what data type those things are? What's wrong with 'address' or 'phone_number' or something to that effect?
- sloaken 7y agokey phrase was 'IF'. I typically do not apply type info, as I care about its logical purpose when debugging. Most modern IDE will tell you the type when you hover over them.