Stealing the Web’s Best Feature
summary
Square Cash extracts core business rules from Java into embedded JavaScript so Android, iOS and web share one logic bundle and can change behavior without app updates. The team uses Duct Tape Android (C engine + JNI, v1.0), ships a snapshot in the APK, downloads server-updated scripts to disk, and runs server-side unit tests before deployment. Payments rendering now proxies stored records through JavaScript using a JS data blob for extra fields, which fixes stale strings and works in production with a dedicated looper and ES5-only constraints.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:35What is business logic
- 7:28Client vs server logic
- 16:34Introducing Duct Tape Android
- 21:30Server-driven UI challenges
- 24:23Solving with JavaScript
- 27:14Web’s best feature








