Ventures of an ex indie game developer

Code bloat and competence keyboard

Last thing I did at work was to reduce a piece of newly written Java code (object converter) by 95%, from a bit more than 2k lines of code spread across a dozen files into a single 100-line method! And I'm no guru, but the one who designed the code has 10 years+ experience with Java... I'm not sure what that says about him... or Volvo IT. Tolstoy said reduction was the best improvement of a work, and I agree, but this is ridiculous.

I'm running with the hiscore, it's going to be fun! Currently trying to handle iOS keyboard input, which is very straight-forward. Add the following to your EAGLView:
- (void)insertText:(NSString*)text {
    ...
}
- (void)deleteBackward {
    ...
}
- (BOOL)hasText {
    return YES;
}
- (BOOL)canBecomeFirstResponder {
    return YES;
}
plus call [view becomeFirstResponder] and you're done.

About the author

Mitt foto
Gothenburg, Sweden