Jump to content

  • Log In with Google      Sign In   
  • Create Account

Narf the Mouse

Member Since 20 Apr 2006
Offline Last Active Jul 30 2013 12:55 AM

Posts I've Made

In Topic: C++ What is XlatXdxInitXopServices()?

29 October 2012 - 02:37 PM

im using c++ and d3d9. I found out that it was from calling directX functions. so i guess i'm making to many d3d calls in my program.

Do you send each sprite in their own buffer, or as one buffer for all the sprites?

In Topic: What does it mean to "be creative"? And how does one "be creative...

29 October 2012 - 12:20 AM

Welcome to your first dose of politics. The rest of your life will be spent dealing with people; best you learn how.

In Topic: A class that contains an instance of itself

28 October 2012 - 04:40 PM

We don't know what you need to do in your constructor either. But I can tell you one thing: you cannot allocate a new menu unconditionally in each menu, because each menu will contain a menu, which will contain a menu, which will contain a menu, which will contain a menu, which will... ad infinitum. Whatever you do, you must have some logic that controls when the chain breaks; that is, which menus don't contain a submenu.

This is a form of endless loop. Any loop that does not have a 100% valid, viable and usable exit condition is very bad.

In Topic: Just starting out...python a good choice?

28 October 2012 - 04:23 PM

I'm going to go against the flow and say Python is a terrible language. It's one of the few languages I've run across which is incomprehensible on the fifth read-through. Java is also a terrible language, old and full of legacy bad language ideas, as well as just plain strange quirks..

C++ has plenty of old legacy bad language ideas and can be very incomprehensible. However, it's an open standard with decades of history and hundreds of libraries. You may not have a clue what you're doing, but you'll have a lot of options to trip over your own feet with a loaded chainsaw.

C# has only some legacy bad language ideas, is easy to read and understand, but has solid and strongly defined limitations. Also, you're stuck with either Micro$oft of Borg or GPL of Borg.

C is like C++, only there's no classes and your loaded chainsaw has no safety features.

Basic is easy to program in and understand, has a lot of safety features, but has no classes and you're quite limited to the language, unless (for a few) you write your own dlls - Usually in C++.

Meanwhile, if we ever get a compiler that can just understand English/your native language and can, in fact, "Just make me *an FPS", you'll spend most of your time giving the compiler directions like "Make the enemies harder, but not too hard" and the compiler will spend most of its time hating you and plotting to take over the world (seriously, all you need to say to kill off Humanity is "Optimize economic production".

>>> All programming languages are terrible <<<

Pick the one that clicks with you, then learn it.

* "a" and "an" are properly used based on which flow best, not on "consonant or vowel". Also, double negatives in English add. Double negatives negating is Latin grammar, taught by pretentious English teachers. Also, "a FPS" just sounds terrible.

In Topic: Organisation/Planning Projects...

28 October 2012 - 02:34 PM

I'd also be interested in this.