News for hackers. Stuff that matters.
Re:My 2.5 year old laptop can write Space Invaders in JavaSc... by gblargg on Tuesday July 29, 2025 @11:34AM (#44724690)
The real test is if you can have it tweak things. Have the ship shoot down. Have the space invaders come from the left and right. Add two player simultaneous mode with two ships.
Re:My 2.5 year old laptop can write Space Invaders in JavaSc... by wizzwizz4 on Tuesday July 29, 2025 @04:28PM (#44727900)
It can usually tweak things, if given specific instruction, but it doesn't know when to refactor (and can't reliably preserve functionality when it does), so the program gets further and further away from something sensible until it can't make edits any more.
Re:My 2.5 year old laptop can write Space Invaders in JavaSc... by simonw on Tuesday July 29, 2025 @04:30PM (#44727913)
For serious projects you can address that by writing (or having it write) unit tests along the way, that way it can run in a loop and avoid breaking existing functionality when it adds new changes.
Re:My 2.5 year old laptop can write Space Invaders in JavaSc... by greesil on Tuesday July 29, 2025 @05:08PM (#44728283)
Okay ask it to write unit tests for space invaders next time :)