Skip to content

Instantly share code, notes, and snippets.

@scottyallen
Last active July 14, 2016 07:05
Show Gist options
  • Save scottyallen/a660e12619c700b71ca3ad4d2561cb78 to your computer and use it in GitHub Desktop.
Save scottyallen/a660e12619c700b71ca3ad4d2561cb78 to your computer and use it in GitHub Desktop.
Flaschen Taschen in Python Workshop

How to program in Python for the Flaschen Taschen

Documentation

https://noisebridge.net/wiki/Flaschen_Taschen https://github.com/hzeller/flaschen-taschen

What is the Flaschen Taschen?

Getting started

Server setup for Linux

  git clone --recursive https://github.com/hzeller/flaschen-taschen.git
  cd flaschen-taschen/server
  make FT_BACKEND=terminal
  ./ft-server

Server setup for Mac

    git clone --recursive https://github.com/hzeller/flaschen-taschen.git
    cd flaschen-taschen
    git checkout mac-os-compilable
    cd server
    make FT_BACKEND=terminal
  • To run the server, run this within iTerm2:
    cd flaschen-taschen/server
    ./ft-server
  • Resize your window to 90x36 (size is in the window header)

Running an animation

  • Open another terminal window, and run:
    cd flaschen-taschen/
    git checkout master
    cd client/
    python simple-example.py

How sockets work

Why we're doing data manipulation the way we are (and how it was originally more pythonic)

Bookcase

Composition vs inheritance

  • Benefit: More flexible - allows you to change how things are wired without making code changes
  • Downside: Requires passthrough methods (small price to pay)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment