Enable javascript in your browser for better experience. Need to know to enable it? Go here.
radar blip
radar blip

Segregated DOM plus node for JS Testing

Last updated : Jul 08, 2014
Not on the current edition
This blip is not on the current edition of the Radar. If it was on one of the last few editions it is likely that it is still relevant. If the blip is older it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar Understand more
Jul 2014
采纳 ? 我们强烈建议业界采用这些技术,我们将会在任何合适的项目中使用它们。
As client-side JavaScript applications grow in sophistication, we see an increased need for engineering sophistication to match. A common architectural flaw is unfettered access to the DOM from across the codebase - mixing DOM manipulation with application logic and AJAX calls. This makes the code difficult to understand and extend. Thinking about separation of concerns is a useful antidote, aggressively restricting all DOM access (usually jQuery usage) to a thin 'segregation layer'. One pleasant side-effect of this approach is that everything outside of the segregated DOM layer can be tested rapidly in isolation from the browser using a lean JavaScript engine such as node.js.
Jan 2014
采纳 ? 我们强烈建议业界采用这些技术,我们将会在任何合适的项目中使用它们。
已发布 : Jan 28, 2014
Radar

下载第25期技术雷达

English | Español | Português | 中文

Radar

获取最新技术洞见

 

立即订阅

查看存档并阅读往期内容