AST Transformations
How to write less code
LAZY, But...
MenuItemActivity.intent(this)
.place(currentPlace)
.item(selectedItem)
.start();
ANNOTATION PROCESSING API
MAGIC?
public final class LoginActivity extends Activity {
@MagicViews
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.login_activity);
usernameField.setText(prefs.getUsername());
}
private void onSignInButtonClick() {
String username = usernameField.getText().toString();
String password = passwordField.getText().toString();
// make API call
}
}
TALK IS CHEAP,
SHOW ME THE CODE
GROOVY
and more coding...
THANKS!
Now code only what is worth coding!