- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I agree it can change - "the number theory" is not a constant in my opinion also Katja seems very nice and those 186/61 are just the perfect measures and if she keeps it constant - I'll marry her =)))
Admin
Sigh. It has been pointed out already that x/3 is far slower than x*oneThird. This is basic optimisation folks, if you divide by a constant a lot then you should get its inverse once and then multiply by that. Of course that doesn't excuse the horrible names and pintless calculations when you are writing the value in the comment anyway.
Admin
Man, that was funny! LOL
Admin
I can explain every single one of those constants in three words.
Tab Auto Complete.
Admin
While I can see the spirit of the code...I think the ghost whisper is calling you to cross over...
Admin
I'll admit to haven written code much like this. While my name perhaps made a little more sense (similar to
) I do have a large file of constants like this. However, it is just a library, in perhaps a more traditional sense - I 'borrow' code from it that I actually need into programs that need it, and have it in their files, or at least a library just to go with that application that includes the necessary ones, since I can't see any programs that will be requiring the Euler-Mascheroni constant any time soon. At least if I do have to put in something, I won't have to look it up again.