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

Boilerplate for a web app today

Boilerplate for a web app today

Alex Palcuie

April 29, 2015
Tweet

More Decks by Alex Palcuie

Other Decks in Programming

Transcript

  1. Paperwork?! • student qualifications from counties • transport sheets •

    accommodation places • 2 x teacher sheets • rankings for every category • prizes • ministry sheets • NGO sheets • fucking bureaucracy
  2. Flux • still have not seen a standard implementation (singleton

    bleah) • Facebook Flux, Flummox, Reflux • too much extra code to understand • for small apps, $.ajax is still okay • you can always start converting when you feel you have to sync a lot (Facebook did that, Twitter is doing that)
  3. Why WebPack?! • nice pipeline API • require images, stylesheets,

    whatever • transform JSX, Babel, whatever
  4. ES6 • cleaner module system • sexy syntax • not

    using yet w/ React classes because they dropped mixins and did not replace w/ contexts
  5. Routing • react-router + react-router-bootstrap • user object on window.Auth.User

    • global props • window.Auth.login binded to setState
  6. Styles • LESS works great w/ WebPack • every component

    w/ it’s own style • Bootstrap FTW
  7. Forms • Declarative, reusable, i18n • react-forms • newforms •

    … maybe manual?! • same problem as Infoarena, we are writing our own
  8. Tests • karma/mocha/chai vs jest • react-router is pretty difficult

    to test • will go for live screenshot testing
  9. OnBoarding Devs • Bogdan (infra Twitter), Vlad (backend Presslabs), Robert

    (system Intel) • show them videos of Pete Hunt • props vs state (Hootsuite doc) • linting + CI • you will become SPOF