I think awkward abbreviations like btn are a thing of the past thanks to IntelliSense. I always type out full names. I used to use something like validateButton, but I think buttonValidate would be better, since all buttons would be grouped together, along with the button event handlers that get auto-generated. I wish IntelliSense could group variables apart from functions. I hate scrolling through the mixture of the two. Though, I do believe prefixing could solve the sorting issue. Prefix controls with c_, properties with p_, etc. I don't like it, though.
ITGFanatic
Posts
-
What do you think? -
IQ coefficientI thought that there was actually a method for developing cognitive tests that avoids testing for general knowledge (like history), but instead relies on things that intelligent people should be able to notice (like "which of these does not belong" type stuff) This sort of test was devised in order to compare (for example) aborigines (who could not even read English) to Americans.
-
Why do people cut themselves?Why do people assault others? Why is there rape? People are such odd creatures, and there is almost always more than one reason for any given behavior. I believe SI is sometimes an expression of hatred for yourself. Like when you get mad at something, and you hit it. Sometimes, you feel better after the violence is over. Other times SI is a call for help. Someone is alone and they are too scared to ask for love, or flat out reject love that they really want deep down (such rejection being a metaphysical attack on their self). Still others are just masochistic. Some people like pain, they like pushing their own buttons and testing their body's resilience. Others use the pain to distract them from something else. Oh, and as far as sharing cutting utensils...I've never heard of ANYONE who shared a used razor blade for cutting. In fact, I think cutting is something you almost always do alone. You don't get a bunch of emo kids hanging out in a basement after school cutting themselves up together. Plus, razor blades are cheap and easy to get a hold of, unlike needles. I've even heard some people who use rubbing alcohol or peroxide, to clean the wound and to make it hurt more.
-
Software licenseHow is the LGPL ambiguous? I thought you could use it for freely for commercial works - isn't that what the OP wants?
-
Evil for loopThat's the reason the change from int to size_t broke the code, right? By testing for when an unsigned variable becomes negative, it becomes stuck in an infinite loop. I don't see any other plausible reason for such a simple change to break code. Besides that, you shouldn't have to do reverse iteration. Wouldn't the compiler figure out that it's more efficient to iterate in reverse, and automagically add the appropriate code? I'm recalling a quote by some Knuth guy :) about premature optimization and the root of all evil... I mean, if they're going to the trouble to reverse iterate, why not cache string.length() into an int? One might think that repeatedly calling string.length() is going to be detrimental to performance...
-
Mental prowessI'm not exactly sure how to go about this. Ultimately, after showing that for k=n=5 the inequality is true, you have to prove it for k=n+1, right? That boils down to
2(n+2) - 1 > 2n2 + 6n + 5
The left side of the inequality has exponential growth, while the right side has quadratic growth. So of course for all values greater than some critical value c (which can be determined by setting them equal to each other) the left side will always be greater than the right side. Outside of just knowing that exponential growth > quadratic growth, how else can you do this?