關於Javascript架構的神回帖,值得圍觀

來源:互聯網
上載者:User

在zemanta的blog上看到一篇文章,後邊來自Eran Medan的回帖讓人驚訝,一起圍觀一下:

I agree, I can't keep up, I just finished learning backbone.js and now I'm found out on that it's old news, and I should use ember.js, cross that, it has opinions, I should use Meteor, no, AngularJS, no, Tower.js (on node.js), and for html templates I need handlebars, no mustache, wait, DoT.js is better, hang on, why do I need an HTML parser inside the browser? isn't that what the browser for? so no HTML templates? ok, DOM snippets, fine, Web Components you say? W3C are in the game too? you mean write REGULAR JavaScript like the Google guys? yuck, oh, I just should write it with CofeeScript and it will look ok, not Coffee? Coco? LiveScript?  DART? GWT? ok, let me just go back to Ruby on Rails, oh it doesn't scale? Grails? Groovy? Roo? too "Springy?" ok, what about node.js? doesn't scale either?? but I can write client side, server side and mongodb side code in the same language? (but does it have to be JavaScript?) ok, what about PHP, you say it's not really thread safe? they lie?? ok, let me go back to server coding, it's still Java right? no? Lisp? oh it's called Clojure? well, it has a Bridge / protocol buffers / thrift implementation so we can be language agnostic, so we can support our Haskell developers. Or just go with Scala/Lift/Play it's the BEST framework (Foresquare use it, so it has to be good). of course we won't do SOAP and will use only JSON RESTful services cause it's only for banks and Walmart, and god forbid to use a SQL database it will never scale 
I've had it, I'm going to outsource this project... they will probably use a wordpress template and copy paste jQuery to get me the same exact result without the headache and in <del>half</del><ins>quarter</ins> the price

中文翻譯:

 我承認,我跟不上。我剛剛學會了backbone.js,但現在發現它已經過時了,我應該使用ember.js,瞭解的過 程中,有人說我應該使用Meteor,不,應該用AngularJS,不,應該Tower.js (基於node.js),而對於HTML模板,我應該使用handlebars,而不是mustache,稍等一下, DoT.js看起來更好,慢著,為什麼要用一個瀏覽器裡的HTML解析器?瀏覽器不就是幹這事的嗎?那麼,不該使用HTML模板嗎?對,用DOM snippets,好,你是說Web Components嗎?W3C不是專門做這個的嗎?你是說像Google那樣開發一個常規的 Javascript語言嗎?太扯了,我只需要用CoffeeScript就行了,它的表現不錯,不用CoffeeScript?用Coco? LiveScript? DART? GWT?這樣吧,我還是重新使用Ruby on Rails吧,哦,它沒有擴充性?Grails?Groovy? Roo?太簡單?那好,node.js怎麼樣?擴充性也不好??但是用它我既可以寫用戶端代碼,伺服器端代碼,還可以寫mongodb代碼,都用同一種語 言。(非要用Javascript語言嗎?)那麼,PHP怎麼樣?你說它不是真正的安全執行緒?他們在撒謊??那好,讓我們重新回到伺服器端編程吧,還是用 Java怎麼樣?不好?Lisp?哦,應該是Clojure?不錯,它有一個Bridge / protocol buffers / thrift實現,這樣語言就相通了,這樣我們的Haskell程式員也能開發了。或者用Scala/Lift/Play,它們都是最好的架構 (Foresquare就是用的它們,它們一定很不錯)。當然,我們不該用SOAP,應該用JSON RESTful服務,只有銀行和沃爾瑪用SOAP,還有,堅決不能用SQL資料庫,它們不可能擴充。

我明白了,我打算把這個項目外包出去… 他們可能會用一個Wordpress模板,然後拷貝粘貼一些jQuery代碼,這樣就能實現完全相同的效果,不會有任何上面說的那些讓人頭疼的事。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.