Jump to content

  • Log In with Google      Sign In   
  • Create Account

tychon

Member Since 19 Dec 2004
Offline Last Active Apr 03 2014 10:57 PM

Posts I've Made

In Topic: Is hacky code allowed in industry?

07 November 2013 - 09:12 PM

There are kludges in any industry, though with varying degrees of frequency. The question isn't whether or not they exist but why they happen. I've only done games as a hobby, so I can't comment much on patterns for that industry, but my experience with them is that a kludge happens when deadlines loom, developers gloom, and project managers give out ultimatums of doom. In general, a kludge is a sign that either your design isn't working, you don't understand how to work with your design, or you're in a very funky context. The last one being rather uncommon.

 

Given that Mario.collide is calling a method on Block, is there some reason you can't have Block.createMushroom or Block.collide(thingHittingMe)? Does it need to be in update for some reason? An event makes more sense to me than an update loop for a context like this--the collision happens once at one moment and really only needs to fire off, "Hey, I've hit something!" to the interested parties (usually those involved in the collision). It's a lot cheaper than every few milliseconds, "Am I hit? Am I hit? Am I hit? I'm hit! Am I hit? Am I hit?"


In Topic: What do you think of this MSI laptop?

05 November 2013 - 12:14 PM


The way I understand it, it works like this

 

You'd be right for desktop models, but current mobile i7 have dual core versions. Almost all mobile i5 are dual core, too. 


In Topic: Fixed-radius near neighbor search

05 November 2013 - 12:16 AM

You might also look into an R tree. If you're doing a lot of modifications to the structure at run time, an R tree will outperform a kd tree. A bit more complex though.


In Topic: Command Prompt: How often do you use it and why?

05 November 2013 - 12:10 AM

Obviously, emacs is the ultimate command line text editor

 

There's a joke about how they asked for an editor, not an operating system.


In Topic: What do you think of this MSI laptop?

04 November 2013 - 03:49 PM

MSI is a thing if you're into building your own gaming rig. I've never used one of their laptops, but I've used their motherboards before. Not bad stuff. I certainly wouldn't be surprised if their laptops were decent too. Also, the Q in the i7 model number means quad. Or at least it has for every one I've seen. I don't really keep up like I used to, but I assume it's still the same.

 

You're probably not going to find much better than something like that given the price range and it being a laptop. My other recently got a Dell Inspiron 17RSE with a 650M for $750, but it was also $150 off at the time. The rest of the hardware is similar to what that has, I believe. You'd have to find a sale to do better.


PARTNERS