• 1

    posted a message on Going into college, not sure what programming path to take
    I don't get the point of game programming courses. By learning programming and software design in general, you should be able to program games regardless. You don't need special courses to tell you how to do that. Maybe they're courses that introduce you to some frameworks and APIs? I don't know, but I wouldn't pay umpteen hundred dollars to learn something I can do myself as a side project.

    3D graphics programming is a different beast. Take a course in that if you wish. Prepare for linear algebra like it's nobody's business.

    Also note that game programming is such a miniscule part of the industry, one that's notorious for overworking and underpaying. There's an order of magnitude more jobs in web application development.
    Posted in: Computer Science and Technology
  • 1

    posted a message on PHP $GLOBALS losing values
    The best solution is to, of course, not use the $GLOBALS array and simply forget it exists because it's disgusting. My PHP is a little rusty, but I'm not sure that the $GLOBALS array works like you think it does.

    $GLOBALS, to my knowledge, won't keep data across separate page posts (that's the job of $_SESSION). Every time you submit the page, the array will get wiped. It's merely an index of all variables currently defined in the global scope. Since you're not working inside of any functions, everything you do is defined in the global scope anyways (since if blocks don't have their own scope in PHP) so there's no real reason to use $GLOBALS at all in your code.

    Let me give you an example of how you'd go about using $GLOBALS

    $foo = 1;
    
    function incrementFoo()
    
    {
    
        $GLOBALS['foo']++;
    
    }
    
    echo $foo;
    
    incrementFoo();
    
    echo $foo;


    Without the $GLOBALS array, the function incrementFoo would not be able to access the $foo variable because $foo was declared outside of the incrementFoo function. Indeed, it was declared outside of any function, putting it in the global scope.

    The code should output the following:

    1
    
    2


    So the main point of the $GLOBALS array is so you can access outside variables that you for some reason don't feel like passing in as parameters to functions, perhaps because you desire side effects such as those shown in my example (this makes you a bad programmer and a bad person).

    If you want to keep data across page submits, use the $_SESSION array.
    Posted in: Computer Science and Technology
  • 1

    posted a message on Death to gays. A good moral position or not?
    Even if the Bible said to kill gays, it wouldn't be a good moral position because blindly following some book is not a good reason to do anything. It is, at the very least, an extraordinarily lazy position, requiring little to no thought. It's simply indefensible by anything other than sheer ignorance.
    Posted in: Politics, Philosophy, News and Science
  • 2

    posted a message on Computer science jokes for a T-shirt
    To find good jokes, I would look at recursion to find good jokes, I would look at recursion to find good jokes, I would look at recursion to find good jokes, I would look at recursion to find good jokes, I would look at recursion to find good jokes, I would look at recursion to find good jokes
    Posted in: Hardware & Software Support
  • 1

    posted a message on Why do Christians think Athiests are idiots? (stereotypically)
    If either one has fallen too deep into their personal fantasy, they will both think the other is stupid. They do this because they see their personal worldview as obviously evident, and the other simply isn't smart enough to look at reality and notice the obvious "truth".

    The truth is that they're both deluded, especially in thinking that someone else must be stupid to not hold the same views as them.
    Posted in: Politics, Philosophy, News and Science
  • 2

    posted a message on Why do I have bad fps
    Since you have Radeon graphics, in Minecraft you can turn off the "Advanced OpenGL" option to increase your FPS. ATI cards don't like it so much.
    Posted in: Hardware & Software Support
  • 5

    posted a message on Do you do your own programming?
    No, I don't do my own programming. I do someone else's.
    Posted in: Computer Science and Technology
  • 2

    posted a message on Want To Get In To Coding
    C# is a more modern language that runs on a virtual machine. It has greater support for object-oriented programming and is in general easier to work with, largely owing to its extremely large collection of built-in libraries but also to its greater adherence to good language design.

    C++ is comparatively old and rigid to work with, and there's many caveats and tricks you have to be aware of to get the most out of it (most of which come from C). It is more powerful due to its ability to directly access memory, but chances are you won't be making any sort of program that takes advantage of that, and it's not like handles are fun to use (type safety goes right out the window).
    Posted in: Computer Science and Technology
  • 4

    posted a message on being abused for being homaphobic
    So I guess what it comes down to is that the OP doesn't know what bullying and abuse are and likes to play the victim whenever his/her/its views are unpopular. That's all I can gather from what posts he/she/it has made in this thread.
    Posted in: Politics, Philosophy, News and Science
  • To post a comment, please .