TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

“Dependency Injection” does not exist in JavaScript.

1 点作者 revathskumar将近 12 年前

2 条评论

troygoode将近 12 年前
This tweet is a response to two tweets by Tom Dale (of Ember.js fame):<p><a href="https://twitter.com/tomdale/status/362949932740657153" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;tomdale&#x2F;status&#x2F;362949932740657153</a><p><a href="https://twitter.com/tomdale/status/362950137397522432" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;tomdale&#x2F;status&#x2F;362950137397522432</a>
lmm将近 12 年前
Those of us building real apps in javascript are using angular, which certainly does have dependency injection.<p>(DI doesn&#x27;t and never has meant reams of XML, JNDI and consultants. It&#x27;s just a pattern for how you write your applications, and you can implement it just fine with ordinary code. That&#x27;s always been true)