Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Jan 2010
Offline Last Active Yesterday, 01:31 PM

#5306438 C++ what is in string after std::istreambuf_iterator< char >(sourceFi...

Posted by on 17 August 2016 - 05:37 PM

Your function: char * loadFromFile(char * file)


returns char pointer which points to local variable s (std::string). That s variable goes out of scope at the end of your function, hence you get garbage. C++ is already hard language and adding usage of raw char to it is asking for trouble. Do yourself a favor and use std::string instead of char *.


Some reading to get you started at http://en.cppreference.com/w/cpp/language/scope

#5303049 Xml Parser, C++

Posted by on 29 July 2016 - 12:16 AM

+1 for TinyXML

#5302567 D3D11_Create_Device_Debug Question

Posted by on 25 July 2016 - 09:03 PM

When you click in "Edit List" button, you will be able to enter your executable, which in turn will un-gray all those options. DarkRonin, you need to experiment more on your own.

#5297931 Have I been aged out of the industry? And where else can I go?

Posted by on 24 June 2016 - 06:56 PM

DoctorGlow: ... Do you know what the current retention period is? I thought it was six months, but if it's three, I have to resend them all again.


It depends on the company, some keep 3 month, and some can do it up to a year. I would contact company again in about 6 month as a rule of thumb.

#5297774 Have I been aged out of the industry? And where else can I go?

Posted by on 23 June 2016 - 08:30 PM

The bit about 32 years old, I am not sure it is true, specially in the last decade, since game development industry matured. I had and currently am working with teams where average age is in mid 30's, and quite few people are 40's and even 50's. I am quite bit older they you, and last year I started looking for new job, and I did not come across issues with my age. On my current team, I am the second to oldest person, and the oldest is I think 56.


Getting a job requires many resumes send, networking, followup, etc, etc,etc. Any time I was looking for the job, when I lost my previous one, I treat that as full time job. It is allot of work to scower job boards/web, create personalized and per job cover letter, keep track of who you send, any contact info, and then followup on previous. And then you repeat that next day, thus doing this 8 hours a day, 5 days a week (Full time job). Good luck.

#5297651 Recent Graduate Looking For Advice

Posted by on 22 June 2016 - 07:44 PM



Basically its close to a 4 hour round trip for 3.5 hours of time at the venue. I spend on average equal to more time traveling then do I do there which is frustrating.


Which surprised me you saying that, since earlier you mention this:




Lastly I really do want to do game jams, I just haven't had many opportunities to do them


For me the trip itself  also would have been fun, all excited driving there in anticipation of awesome time. And after the jam, most likely I would be on endorphin high which would make my trip back also a fun drive. If you have motivation and desire, then small inconveniences like that are small compared what you gain. You could possibly meet new contacts, who could help in getting your foot in the door in game companies. As our esteem Tom Sloper says: networking, networking, networking*



* Maybe I am paraphrasing him :)

#5293155 Local hash

Posted by on 24 May 2016 - 12:30 AM

A, who cares...

#5287696 Efficient click detection design

Posted by on 19 April 2016 - 06:11 PM

My initial take is; it does not "matter" for this. How may inventory items will you have? Even few hundred and iterating over them, would not show up in profile.

#5287344 How beneficial can personal projects be?

Posted by on 17 April 2016 - 01:40 PM

Good point Frob about the college graduates, I missed that in my haste. Myself (and I do allot of interviews) do not take GPA into my hiring decision. I have not seen the raw numbers from their data, but it mentiones only "slight correlation". I understand that is another data point, but in mine mind is just not enough and my bigger weighting point for interviewee is if they have any personal project which they can show. That part usually drives large portion of mine decision.

#5287214 How beneficial can personal projects be?

Posted by on 16 April 2016 - 02:54 PM

"They're covered in things like "3.8 of 4.0 GPA"

You do you care about it? Google used to be very bullish on GPA, and not that recently, HR head at Google done some studies and they found NO correlation between grades/GPA and how good the employees were. There also found out that asking quiz/gotcha questions on the interviews was also no prediction of future employee and only made interviewer feel smart.

#5285688 Typing skills

Posted by on 07 April 2016 - 08:01 PM

My typing speed (and I am slow) never interferes with my programming, since typing speed is not really a gating factor. I spend far more time thinking about the problem, designing some new system, or debugging in IDE.

#5269335 Practicality of a C++ Garbage collector

Posted by on 04 January 2016 - 10:22 PM

I never use unique_ptr, since a data member is way much simpler:

class A { ... };class B {public:    A a;};
But this pattern is not always possible or desirable.

#5262472 Old unused variable trick for assert : sizeof

Posted by on 17 November 2015 - 03:34 PM

I use slightly different technique, 


void Foo(int /*SomeParameter*/)


This way, I get also quick documentation and shut up compiler warning.

#5260198 GameNet: Simple RPC System for Games - Sample Game included (C++11)

Posted by on 02 November 2015 - 03:03 PM

Not to pick at the code, but seeing this in header file:


using namespace std;

using namespace glm;


Makes me a little hesitant about the rest of the code.

#5247214 Code Review

Posted by on 17 August 2015 - 02:08 PM

std::string are objects (class) and can be expensive, specialy if it needs to copy data, so I "always" pass by const ref.