Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 02 Mar 2006
Offline Last Active Today, 04:49 AM

Posts I've Made

In Topic: Rotation About An Axis

04 October 2016 - 12:22 AM

You need to first translate it so the origin is at its centre, then rotate, that translate it back to its position.

In Topic: the very best resources I found for game programming

29 September 2016 - 12:20 AM

Speaking of "Pro", one can't call himself professional if he only knows one language, try and know at least 3

Actually, if you get paid to write software, you are professional. Any other metric is pretty meaningless.

In Topic: Coding-Style Poll

28 September 2016 - 02:29 AM

I find braces not on their own line very hard to read. Believe this is K&R style?
for(int i = 0; i < 10; ++i) {
My brain just cannot process that. I can only handle:
for(int i = 0; i < 10; ++i)
Professionally, I fit in with what others do but I'm fortunate that my current colleagues are "own-line-brace" guys too, as I would be at a major disadvantage if I had to write and follow code like my first example. But I suppose I'd just adjust to it.

My colleague has a very weird habit that I've adjusted to now:
class Foo
    const int*
    method() const;

const int*
Foo::method() const
End of the day, I hated this when I first saw it, but within a week or so I'd adjusted and I now flip between "work code" and "home code" without any problem whatsoever.

In Topic: the very best resources I found for game programming

28 September 2016 - 02:24 AM

But I have a problem, I can't go beyong basics in programming. I do not have ideas of what to code next, I still don't have the ability to create my own code (program) by myself. I have to follow tutorials, when I try to code by myself I dont do that good.
So my question is, what is the programming best practice??

Stop focusing on learning. Start focusing on achieving. You need to set yourself a specific goal, then learn just what you need to accomplish that goal.

Don't worry about how much you "know" or have "learned" or if you feel like an "expert". All of that is worth absolutely nothing if you can't produce an end result.

Once you have accomplished your goal or you get bored and want to move on, consider a new goal that stretches what you already know a bit further, but not so far further that it destroys your motivation.

I've been at this lark for over a quarter of a century now and I'm learning every day.

In Topic: Get pixel's location

24 September 2016 - 03:02 AM

Sorry for the accidental down vote. Thumb slipped and can't seem to undo it. Reply and I will up vote to compensate.