Core Spring Data
Written by: Oliver Gierke
Featured Refcardz: Top Refcardz:
  1. Git
  2. Prep for CD
  3. DNS
  4. Data Mining
  5. Spring Data
  1. Data Mining
  2. Spring Data
  3. DNS
  4. Machine Learning
  5. MongoDB

Link Details

Link 93287 thumbnail
User 111696 avatar

By bloid
via codeodor.com
Published: Jul 08 2008 / 11:55

Several days ago I wrote about common excuses people use for commenting code and things you can do to get rid of them. I took the stance that rarely is there something so complex that it really requires comments.
  • 5
  • 2
  • 1731
  • 6

Comments

Add your comment
User 282283 avatar

Tantalus replied ago:

0 votes Vote down Vote up Reply

So, before it was open sourced and famous, if you came across this bit of code:

float InvSqrt (float x){

float xhalf = 0.5f*x;
int i = *(int*)&x;
i = 0x5f3759df - (i>>1);
x = *(float*)&i;
x = x*(1.5f - xhalf*x*x);
return x;
}


you wouldn't want a little comment hint to help you out?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (2)