zachleat’s avatarzachleat’s Twitter Archive—№ 21,034

  1. …in reply to @davatron5000
    @davatron5000 @brad_frost For example, lettering.js: github.com/davatron5000/Lettering.js/blob/master/jquery.lettering.js You want to separate the code into a testable bit and a DOM manip bit. So you’d make a function that does the text splitting and unit test that. Make the DOM manip separate and don’t worry about that too much for now