d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Make Me A Better Programmer - From Step 1
Prev1192021222356Next
Add Reply New Topic New Poll
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
May 9 2013 11:25am
Quote (irimi @ May 8 2013 06:35pm)
Eclipse really isn't that bad anymore.  I'd probably be happily using it if I weren't already so used to doing things on IntelliJ.


Have they fixed their maven, git and database integration yet?
Member
Posts: 4,541
Joined: Sep 15 2011
Gold: 10,391.00
May 9 2013 03:06pm
No idea. I don't use it. :) I just remembered it being not as bad the last time I opened it up to try it out.
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
May 9 2013 05:50pm
Quote (irimi @ May 9 2013 04:06pm)
No idea. I don't use it. :)  I just remembered it being not as bad the last time I opened it up to try it out.


The maven thing especially sucked for me. My work codebase is huge (2.5+ mi LOC) and highly modular and the Maven builder would just cause a continuous re-build to be triggered on every single save that would rebuild almost everything. It made our machines unusable.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
May 10 2013 05:32pm
someone linked me this today, was a great read:

http://kotaku.com/5975610/the-exceptional-beauty-of-doom-3s-source-code

was telling a friend on facebook that thanks to a recent class I was able to understand some of the stuff going on in this function, lol (mainly the bitwise ops)

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;

}



*great read even though I don't really plan on doing any game development.

This post was edited by Eep on May 10 2013 05:40pm
Member
Posts: 18,450
Joined: Jul 5 2008
Gold: 9,921.91
May 11 2013 04:59pm
Quote (Eep @ May 10 2013 06:32pm)
someone linked me this today, was a great read:

http://kotaku.com/5975610/the-exceptional-beauty-of-doom-3s-source-code

was telling a friend on facebook that thanks to a recent class I was able to understand some of the stuff going on in this function, lol (mainly the bitwise ops)

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;

}



*great read even though I don't really plan on doing any game development.


This is an old post and it's basically a circlejerk. I wouldn't regard this as anywhere near a "great read" ...
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
May 11 2013 05:17pm
Quote (Remembrance @ May 11 2013 05:59pm)
This is an old post and it's basically a circlejerk.  I wouldn't regard this as anywhere near a "great read" ...


depends what you take out of it. I personally was one who was told comments are god in the right context but the right context was never made clear to me.

I also never thought about the const functions and only having i or o params for functions.Then again I have never done any game development or worked on any big projects so maybe that is a factor.

Don't see the circle jerk necessarily though.....it was one authors article and I didn't bother reading comments. The author just happens to be a fan of Carmack.

With respect to game development though, I was curious why he was harping on setter/getter methods for classes. What I was taught (and what I have gathered from various resources online) is that the point of making fields private is because of the amount of code reuse you might do with objects/classes.

Maybe it is different for them because they don't use many classes? (Carmack has a strong C rather than C++ background apparently)

too much I don't know but I still enjoyed reading it. I like reading stuff written by experienced developers.

This post was edited by Eep on May 11 2013 05:18pm
Member
Posts: 18,450
Joined: Jul 5 2008
Gold: 9,921.91
May 12 2013 01:42am
Quote (Eep @ May 11 2013 06:17pm)
depends what you take out of it. I personally was one who was told comments are god in the right context but the right context was never made clear to me.

I also never thought about the const functions and only having i or o params for functions.Then again I have never done any game development or worked on any big projects so maybe that is a factor.

Don't see the circle jerk necessarily though.....it was one authors article and I didn't bother reading comments. The author just happens to be a fan of Carmack.

With respect to game development though, I was curious why he was harping on setter/getter methods for classes. What I was taught (and what I have gathered from various resources online) is that the point of making fields private is because of the amount of code reuse you might do with objects/classes.

Maybe it is different for them because they don't use many classes? (Carmack has a strong C rather than C++ background apparently)

too much I don't know but I still enjoyed reading it. I like reading stuff written by experienced developers.


Take a lot of it as a grain of salt in my opinion. Sift through some of these comments from Reddit when the thread was originally posted > 3 months ago.

http://cp.reddit.com/r/programming/comments/16k7hm/the_exceptional_beauty_of_doom_3s_source_code/

To sum things up, Kotaku blows and this article is pretty shit. I'd avoid the entire thing.

This post was edited by Remembrance on May 12 2013 01:46am
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
May 12 2013 03:21am
Quote (Remembrance @ May 12 2013 02:42am)
Take a lot of it as a grain of salt in my opinion.  Sift through some of these comments from Reddit when the thread was originally posted > 3 months ago.

http://cp.reddit.com/r/programming/comments/16k7hm/the%5Fexceptional%5Fbeauty%5Fof%5Fdoom%5F3s%5Fsource%5Fcode/

To sum things up, Kotaku blows and this article is pretty shit.  I'd avoid the entire thing.


wow. Reading through the comments kinda brought things back home, lol.

Thanks for pointing that out.
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
May 13 2013 09:13am
Quote (Eep @ May 10 2013 06:32pm)
someone linked me this today, was a great read:

http://kotaku.com/5975610/the-exceptional-beauty-of-doom-3s-source-code

was telling a friend on facebook that thanks to a recent class I was able to understand some of the stuff going on in this function, lol (mainly the bitwise ops)

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;

}



*great read even though I don't really plan on doing any game development.


Ah, the ol' fast inverse square root code snippet from Quake. One of the reasons it's so fucking horrible to read is the magic hex value 0x5f3759df. I'm pretty sure it's taken from some old math paper on approximating the inverse of a square root.

http://en.wikipedia.org/wiki/Fast_inverse_square_root
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
May 14 2013 08:13pm
Quote (rockonkenshin @ May 13 2013 10:13am)
Ah, the ol' fast inverse square root code snippet from Quake. One of the reasons it's so fucking horrible to read is the magic hex value 0x5f3759df. I'm pretty sure it's taken from some old math paper on approximating the inverse of a square root.

http://en.wikipedia.org/wiki/Fastinversesquareroot


I love the fact that there is random hex in it lol.

Finished 2 of my big finals today (systems programming and discrete math).....brain is fucking sapped

but feeling a lot better about my knowledge base now compared to the beginning of the semester.

This post was edited by Eep on May 14 2013 08:13pm
Go Back To Programming & Development Topic List
Prev1192021222356Next
Add Reply New Topic New Poll