Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


BloodWarrior

Member Since 11 Aug 2006
Offline Last Active Jun 07 2013 07:40 AM

Posts I've Made

In Topic: Canceling a Constructor [C++]

02 September 2011 - 06:54 AM

Oh... yeah.. forgot c)
c) make your constructors fail safe! IE: pre process any resources required for them before hand and pass them directly to the constructor... that way the constructor never fails and there isnt anything that can fail.
But c) is just moving the internal code of the constructor outside and testing it before doing the creation... not really a solution.

In Topic: Canceling a Constructor [C++]

02 September 2011 - 06:50 AM

Thats constructors for you.
It allocates the memory and runs whatever code for intiialisation. returning null is impossible.
What you usually do is:

a) use the factory method (you used it on the second part)

or

b) throw an exception during the constructor. Use a three stage build for this: constructor intiialises the entire object but can fail and call terminate and then throw. destructor calls terminate. Terminate is called whenever you want to destroy the object (FROM the destructor! dont make this one public!).
Its very important that you deallocate anythng you might allocate during the constructor before you throw yourself out of the constructor! If you dont you will end up with mem leaks.

Does anyone else have a better process than this? I dont particularly fancy the try catch penalty that this requires but I never saw a better solution (other than factory methods).

Yours Truly
K

In Topic: Is this a good idea?

28 June 2011 - 10:32 AM

I honestly learn better on my own and I have personal projects I would prefer to spend that time on instead of sitting in class. Plus I am sure I will get a far better education at NCSU than I am getting now. I am more worried about the risk of not doing as well as I think I can. On my college placement test I scored 97-99% on every category but this test was not timed... It seems like I should be able to do this but I still feel like it's a big risk...


And there is your answer! Your instincts are warning you against leaving.
Dont drop college, just keep side projects and keep learning extra skills.
You can even make a couple of games and sell them (Angry birds anyone?). Use them as portfolio, showcase them to other companies, try to get sponsored/scholarship.

But trust me when I say this: Being good at programming isnt enough. You need more skills that cannot be self taught.

Being Able to Talk in Public
Managing a Team
Discussing project features and deadlines
Handling a broken milestone (very important to be able to explain to the managers why you just missed a deadline)

Those skills are extremelly useful and companies will rather hire people that can express themselves than nerds that cant communicate unless its via email or msn. And you will never learn those from a book or sitting by yourself.

Yours Truly
K

In Topic: Most satisfying game you've played and why

09 June 2011 - 10:52 AM

Ultima VII
RPG game with huge open world, economy, etc

Also Star Wars Galaxies (before the combat upgrade and the total destruction of the game): Great sense of comunity, crafting, hanging out and doing missions with a group.

Usually a game is only good if the player can relate to it (not necessarily with the pc but with the game).
I played Crysis all the way to the end but at the end I felt like meh. Dead Space is also a great game but meh.... i finished it so what.

On the other hand: Demon's Souls was incredible, there was a huge sense of achievement when you finally get that platinum trophy

Ultima VII was just a huge mistery that needed to be solved and that made it excellent.

I guess what Im going for is a game that I has a good storyline or a huge sense of accomplishment. Deux Ex and Chuckie Egg have nothing in common but both are incredibly good games.

In Topic: The new guy says Hello!

09 June 2011 - 10:46 AM

Heyas
Welcome to the never ending quest for a computer game!

Remember: Procrastination will.... meh, ill remember the rest of this later

Yours Truly
K

PARTNERS