Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Annotated Callback Methods

Annotated Callback Methods

A talk that I gave on 2/20 for my class on design patterns. Trying new slide design and presentation style.

Avatar for Ryan Schultz

Ryan Schultz

March 27, 2012
Tweet

Other Decks in Technology

Transcript

  1. The usual way: Anonymous classes addItem.addSelectionListener(new SelectionAdapter() { public void

    widgetSelected(SelectionEvent e) { // add button pressed, handle its event } });
  2. from flask import Flask app = Flask(__name__) @app.route("/") def hello():

    return "Hello World!" if __name__ == "__main__": app.run()