News for hackers. Stuff that matters.
Re:Notch live coding 0x10c by bochi on Saturday April 07, 2012 @03:45PM (#3811908)
What about unit testing? He constantly tests the changes manually, but I don't see any automated tests.
Re:Notch live coding 0x10c by learc83 on Saturday April 07, 2012 @07:05PM (#3812422)
There is so much that is subjective about gamedev that automated tests don't really work the same way.

How do you define a test for something as subjective as the "look and feel" of an interactive experience?

How do you automate this process?

1 Move the bounding box on the tree a few pixels.

2 Load the game

3 Move towards the tree until collision.

4 GOTO 1 UNLESS it "feels right"

Maybe regression testing, once you get things working, to prevent new bugs from popping up, or unit tests for game logic, but I don't know of many gamedevs doing full TDD.

Re:Notch live coding 0x10c by demian on Saturday April 07, 2012 @04:15PM (#3811986)
His approach seems to be one of "crafting" an experience, by mostly testing it by playing the game himself after every change, instead of trying to "engineer" a piece of software.

A great aproach for designing an interactive piece.

Re:Notch live coding 0x10c by DanielRibeiro on Saturday April 07, 2012 @04:02PM (#3811948)
He is testing: testing that people want this. In the beginning your biggest risk is making something poeple don't want, not code that breaks.
Re:Notch live coding 0x10c by bobobjorn on Saturday April 07, 2012 @04:53PM (#3812102)
But if people then want your code, your stuck with code without tests. That you at most, can retro fit tests to.
Re:Notch live coding 0x10c by mkramlich on Sunday April 08, 2012 @01:06AM (#3813135)
except the code already works right (in proportional to your skill). and if it stops working right you did something bad. and you're using version control, so you can do diffs, rollback, do branches/forks, experiments, etc. This is a much faster workflow than being weighed down by automated test baggage. Again, some folks hold the code in their mind and do a very good job of making perfect incremental changes, only moving forward, no regressions. (not 100% of the time, but with experience/skill you can approach that, especially before you end your dev session for the day.)
Re:Notch live coding 0x10c by bobobjorn on Sunday April 08, 2012 @09:12AM (#3813749)
If thoose folks exists, i have never met any. And if they exist, they are few. And if i then need to hire more people to work on the project. Im pretty much out of luck. Even if i know i write perfect code (i dont). I wouldnt trust everyone that will work on my code to write perfect code.
Re:Notch live coding 0x10c by ramblerman on Sunday April 08, 2012 @11:26AM (#3814023)
relax uncle bobo ;) I'm a general proponent of testing, but this is a game and as such the feeling is more important, not everything is capturable by tests.

Notch is creating right now, watch http://vimeo.com/36579366 "inventing on principle" which explains the importance of immediate visual feedback.

Also give him just a "little" credit for minecraft

Re:Notch live coding 0x10c by bobobjorn on Monday April 09, 2012 @10:11AM (#3817001)
Yes, i dont mind that notch is writing code without tests.

I just dont want anyone else to think it is a good idea for them :-)

Re:Notch live coding 0x10c by batista on Saturday April 07, 2012 @06:04PM (#3812279)
"At most"?

The tests can be the same or even better that those added at some TDD style.

And, in either case, that would be a nice problem to have.

Re:Notch live coding 0x10c by bobobjorn on Sunday April 08, 2012 @09:13AM (#3813753)
Depends on how long ago you wrote the tests. Pretty soon the tests you will write, will most likely test that the code does what it does. Not what it should do.

And yes, it is a better problem to have, then to have code that noone wants.

Re:Notch live coding 0x10c by ehsanu1 on Saturday April 07, 2012 @03:51PM (#3811925)
That works less well for games than other applications. Unit testing isn't always appropriate.
Re:Notch live coding 0x10c by TillE on Saturday April 07, 2012 @06:52PM (#3812388)
Unit testing for game logic: good.

Unit testing for graphics code: far more trouble than it's worth.

Re:Notch live coding 0x10c by petercooper on Saturday April 07, 2012 @03:59PM (#3811944)
I'm an advocate of testing, and even TDD, but realistically, automated testing takes place in so, so few places compared to the entire world of software development and especially gamedev. People writing automated tests are, sadly, in a tiny minority. As an advocate for it, though, it makes me happy there are plenty of people left to convince and tools left to develop! :)
Re:Notch live coding 0x10c by Zaak on Saturday April 07, 2012 @06:28PM (#3812345)
Maybe that's why his code is buggy?

I love the games Notch makes, but he's not perfect.

Re:Notch live coding 0x10c by newobj on Sunday April 08, 2012 @01:03PM (#3814276)
Game developers don't write tests :^P