Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Jun 2006
Offline Last Active Today, 07:30 AM

Posts I've Made

In Topic: Funniest line of code ever ?

17 July 2014 - 03:06 AM

I was working on a project from an outsourced developer and came across an enum which said "{ Z_UP // Z axis points up from the ground, Z_DOWN // Z axis points down, Z_OTHER }"


And no-one had felt the need to comment the third possibility...

In Topic: Computer Science vs Software Engineering

13 March 2014 - 05:32 AM

"Well, they can be."


People should probably find out they can't do it as early as possible then. Before they find themselves committed to a career they're out of their depth in.

In Topic: Computer Science vs Software Engineering

12 March 2014 - 09:57 AM

"I figured I would have to go to school, because as was noted, a lot of the applications say C.S. degree."


Go and get a degree. They're not hard.


If you don't then every time you apply for a job you'll have to phone up and have the discussion about why you feel you're special and shouldn't have to meet the "CS degree or equivalent" line in the requirements. You will be doing this with (at best) someone in HR who doesn't know software engineer from welding (and doesn't see why "CS degree required" is any different from "Must have current Welding Institute certification").


Or at worst someone in candidate sourcing who you will have to convince enough that they will spend their time convincing the client relation manager enough for them to convince their contact in HR (who still doesn't know software engineering from welding) enough that they'll convince the hiring manager to look at your CV.


Even if this gig works one time in two, you're still putting in way more effort for half as many applications not rejected as the guy next to you who went to uni.

For the next 40 years, every time there's a recession, you're the one who'll find it hardest to get a new job. You'll be the last on the list of interviewees. You'll be the one who can't convince a recruiter (who also can't tell software engineering from welding) to make you one of the just five CVs they're allowed to send through from the pile of people who've called up.


And this is for the entire rest of your professional life. 

In Topic: Easily Looking Up Uniform Locations

08 January 2014 - 04:35 AM

"The current way I do this is by using an STL map using a string as a key. "


Use something faster as your key? Or store the positions in an array, and now you can index into them using a symbolic name. Instead of using "u_pvmMat" as the key, use a constant called U_PVM_MAT. You're not losing flexibility because you've got hardcoded strings at the moment.


Define the constants in an enum somewhere with them.


For bonus points, autogenerate the source file containing the enum by scanning your shader sources...

In Topic: Properly planning a game and its structure

08 January 2014 - 04:28 AM

"seeing that I was headed towards coding myself into a corner."


How do you think you were coding into a corner?