As a practicing consultant and developer, I put substantial thought as into organizing the whole project, so into structuring the code in the specific parts of the app. The stage of setting a project basement is as important, as the development process following it, putting the team on a healthy productive path. As a result, the project earns its fat-free shape, allowing team members to focus on their tasks, not on working around conceptual inconsistencies or fighting with resurrecting issues.
When it comes to actual development, I choose to write compact, isolated code. Ubiquitous well-written tests are what makes me sleep like a rock, my clients feel in good hands and safe. That's why I put tests at the top of my priority list. The role of tests becomes crucial in the world of JavaScript. The language with its long curved path of evolution, is far from being free of quirks. Some are just unobvious and others are totally bizarre.
To keep the grade of monkey business low and productivity high, I follow the best practices, use patterns where appropriate, learn new techniques and demand myself and other team members deliver quality code which conforms to the high industry standards.