{"action":"created","comment":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/56273000","id":56273000,"diff_hunk":"@@ -1,106 +1,129 @@\n >* 原文链接 : [I’m a web developer and I’ve been stuck with the simplest app for the last 10 days](https://medium.com/@pistacchio/i-m-a-web-developer-and-i-ve-been-stuck-with-the-simplest-app-for-the-last-10-days-fb5c50917df#.1i4q6te4a)\n * 原文作者 : [pistacchio](https://medium.com/@pistacchio)\n * 译文出自 : [掘金翻译计划](https://github.com/xitu/gold-miner)\n-* 译者 : \n+* 译者 : woota\n * 校对者: \n-* 状态： 认领中\n+* 状态： 翻译中\n \n \n+# JavaScript生态之乱象\n+####（原标题：作为一名web开发者，我已经被一个极度简单的app卡了10天）\n \n+我是一名全职开发者。我大部分工作的内容是网站的全栈开发。偶尔，我也用**Python**或**Ruby**写写后端的服务器，有时写点儿**C#**。我还用**C++**或**Node.js**开发一些命令行工具，我发现Clojure很有意思，我接触web开发是在多年以前，那时用的是**Perl**和**PHP**，而在我首次进入职业开发道路的时候，我写了几年**Java**。\n \n-I’m a full time developer. Most of my work is developing web sites full-stack. Sometimes I write backend servers in **Python** or **Ruby**, sometimes I work with **C#**. I also develop command line utilities in **C++** or **Node.js**, I find Clojure fun, I approached web development years ago with **Perl** and **PHP** and when I first entered the professional world of development I worked for years with **Java**.\n+在我第一次接触**JavaScript**时，它主要用来往网页上写“_现在是几点_”这样的东西。我说的是上个世纪90年代，每个人都想让自己的页面变得更加有趣，_动态地_告诉偶然到来的访客今天是周几（哇！），并以此为乐。这些年来，我们都发现JavaScript能做的远不止这些，我们都想要全效的**DHTML**(Dynamic HTML)。是的，我们的HTML变得充满_动态效果_了！\n \n-When I first encountered **Javascript** it was mainly used to add “_The current time is_” on pages. I’m talking about the Nineties here and everybody wanted to spice up their pages telling the occasional visitor what day of the week it was _dynamically (!)_ and it felt good. Over the years we all discovered that Javascript can do so much more than that and we all went full **DHTML**. Yes, our HTML went full _dynamic_!\n+在过去的几年中，我用过一些不同的框架开发过几个比较大型的单页应用，有时候忙起来，JavaScript代码组织的极烂，把**jQuery**调用写得到处都是。\n \n-In the last years I’ve developed pretty large Single Page Applications with various frameworks or, when in a rush, mostly a mess of badly organized Javascript code that vomits **jQuery** calls here and there.\n+大概10天前，我想开发一个简单的_SPA_给自己用，把一个小工具改写成一个小项目。这一般也就是两三天的功夫。在过去的这半年，我一直在用C#写一个桌面应用。这是一个相当无聊的工作流管理程序，有一个网络服务后台和winform客户端。\n \n-Some ten days ago I wanted to program a very simple _SAP_ for my personal use, a little utility to grow as a pet project. I’m talking about a two, three days effort here. In the last six months I’ve been working on a C# Desktop app. It is a rather boring workflow management program with a webservice backend and winforms on the client.\n+当我起念要开发这个小型web应用的时候，我便预见这是一个尝试新技术的好机会，我曾在网上读到过一些，以此刷新我的web开发工具库并收获一点乐趣。想想都觉得激动，没什么太复杂的东西，也不用太费劲。\n \n-As the idea of this little web app popped into my mind, I envisioned the opportunity to try out a few new things I’ve been reading about online, refresh my web-dev tools and have some fun. Pretty exciting, nothing too complicated or demanding.\n+可事实证明，我根本无法着手编写这个简单的项目，因为我陷入了一种**分析瘫痪循环**\n \n-As it turned out, I haven’t been able to program that simple project because I’m stuck in an **analysis paralysis loop**.\n+到目前为止，我已经有了四到五次失败的开始。问题的核心是在 _选择_ 上，以及要如何从过度繁多的工具库中挑选出合适的工具。\n \n-I’ve already had four or five “false starts” so far. The core of the problem is _choice_ and the overwhelming abundance of tools to choose from.\n-\n-Who wants to write\n+谁想写这样的代码\n \n     MyNotReallyClass.prototype.getCarrots = function () {}\n \n-when ES6 is _almost_ here, it has _almost_ real classes and it’s _almost_ well supported? Who wants to have ten\n+ES6 _都快_ 落地了，它有了 _近似_ 真正的类，并且 _差不多_ 得到了完好的支持？市面上有那么多的打包工具，谁还想写十行\n \n-    <script src=\"%E2%80%9Dlibrary-12.js%E2%80%9D\"></script>\n+    <script src=\"library-12.js\"></script>\n \n-on top of the page when there multiple packers out there? Who want to write\n+在页面的顶部？有那么多的框架帮我们组织应用，谁还要写这样的代码\n \n     $(‘.carrots’).innerHTML(myJson.some.property[3]) \n \n-when there are so many frameworks out there to help you structure your app? Who wants to ignore the fact that now browser Javascript is written with the help of Node.js command line tools?\n+谁又想忽视如今编写浏览器端Javascript代码有了Node.js命令行工具辅助的事实？\n+\n+所以我深入研究这些新事物，这些我曾经用过现在忘了或是进化了的事物。可天知道，除了一点HTML表单，我一直没能取得任何的进展。","path":"TODO/i-m-a-web-developer-and-i-ve-been-stuck-with-the-simplest-app-for-the-last-10-days.md","position":55,"original_position":55,"commit_id":"94f55e2328a6a7e056daf83249f7287313245eb4","original_commit_id":"94f55e2328a6a7e056daf83249f7287313245eb4","user":{"login":"iThreeKing","id":12694548,"avatar_url":"https://avatars.githubusercontent.com/u/12694548?v=3","gravatar_id":"","url":"https://api.github.com/users/iThreeKing","html_url":"https://github.com/iThreeKing","followers_url":"https://api.github.com/users/iThreeKing/followers","following_url":"https://api.github.com/users/iThreeKing/following{/other_user}","gists_url":"https://api.github.com/users/iThreeKing/gists{/gist_id}","starred_url":"https://api.github.com/users/iThreeKing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iThreeKing/subscriptions","organizations_url":"https://api.github.com/users/iThreeKing/orgs","repos_url":"https://api.github.com/users/iThreeKing/repos","events_url":"https://api.github.com/users/iThreeKing/events{/privacy}","received_events_url":"https://api.github.com/users/iThreeKing/received_events","type":"User","site_admin":false},"body":"进化了->发展了","created_at":"2016-03-16T02:12:07Z","updated_at":"2016-03-16T02:12:07Z","html_url":"https://github.com/xitu/gold-miner/pull/205#discussion_r56273000","pull_request_url":"https://api.github.com/repos/xitu/gold-miner/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/56273000"},"html":{"href":"https://github.com/xitu/gold-miner/pull/205#discussion_r56273000"},"pull_request":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/205","id":62942326,"html_url":"https://github.com/xitu/gold-miner/pull/205","diff_url":"https://github.com/xitu/gold-miner/pull/205.diff","patch_url":"https://github.com/xitu/gold-miner/pull/205.patch","issue_url":"https://api.github.com/repos/xitu/gold-miner/issues/205","number":205,"state":"open","locked":false,"title":"i-m-a-web-developer-and-i-ve-been-stuck-with-the-simplest-app-for-the-last-10-days.md 翻译完成","user":{"login":"woota","id":7411555,"avatar_url":"https://avatars.githubusercontent.com/u/7411555?v=3","gravatar_id":"","url":"https://api.github.com/users/woota","html_url":"https://github.com/woota","followers_url":"https://api.github.com/users/woota/followers","following_url":"https://api.github.com/users/woota/following{/other_user}","gists_url":"https://api.github.com/users/woota/gists{/gist_id}","starred_url":"https://api.github.com/users/woota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woota/subscriptions","organizations_url":"https://api.github.com/users/woota/orgs","repos_url":"https://api.github.com/users/woota/repos","events_url":"https://api.github.com/users/woota/events{/privacy}","received_events_url":"https://api.github.com/users/woota/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T17:09:15Z","updated_at":"2016-03-16T02:12:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e7e5c79e9ab027f5e5f1fba6d4030e045b64936","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xitu/gold-miner/pulls/205/commits","review_comments_url":"https://api.github.com/repos/xitu/gold-miner/pulls/205/comments","review_comment_url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xitu/gold-miner/issues/205/comments","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/94f55e2328a6a7e056daf83249f7287313245eb4","head":{"label":"woota:translate","ref":"translate","sha":"94f55e2328a6a7e056daf83249f7287313245eb4","user":{"login":"woota","id":7411555,"avatar_url":"https://avatars.githubusercontent.com/u/7411555?v=3","gravatar_id":"","url":"https://api.github.com/users/woota","html_url":"https://github.com/woota","followers_url":"https://api.github.com/users/woota/followers","following_url":"https://api.github.com/users/woota/following{/other_user}","gists_url":"https://api.github.com/users/woota/gists{/gist_id}","starred_url":"https://api.github.com/users/woota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woota/subscriptions","organizations_url":"https://api.github.com/users/woota/orgs","repos_url":"https://api.github.com/users/woota/repos","events_url":"https://api.github.com/users/woota/events{/privacy}","received_events_url":"https://api.github.com/users/woota/received_events","type":"User","site_admin":false},"repo":{"id":52848669,"name":"gold-miner","full_name":"woota/gold-miner","owner":{"login":"woota","id":7411555,"avatar_url":"https://avatars.githubusercontent.com/u/7411555?v=3","gravatar_id":"","url":"https://api.github.com/users/woota","html_url":"https://github.com/woota","followers_url":"https://api.github.com/users/woota/followers","following_url":"https://api.github.com/users/woota/following{/other_user}","gists_url":"https://api.github.com/users/woota/gists{/gist_id}","starred_url":"https://api.github.com/users/woota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woota/subscriptions","organizations_url":"https://api.github.com/users/woota/orgs","repos_url":"https://api.github.com/users/woota/repos","events_url":"https://api.github.com/users/woota/events{/privacy}","received_events_url":"https://api.github.com/users/woota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/woota/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":true,"url":"https://api.github.com/repos/woota/gold-miner","forks_url":"https://api.github.com/repos/woota/gold-miner/forks","keys_url":"https://api.github.com/repos/woota/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woota/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woota/gold-miner/teams","hooks_url":"https://api.github.com/repos/woota/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/woota/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/woota/gold-miner/events","assignees_url":"https://api.github.com/repos/woota/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/woota/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/woota/gold-miner/tags","blobs_url":"https://api.github.com/repos/woota/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woota/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woota/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/woota/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woota/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/woota/gold-miner/languages","stargazers_url":"https://api.github.com/repos/woota/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/woota/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/woota/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/woota/gold-miner/subscription","commits_url":"https://api.github.com/repos/woota/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/woota/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/woota/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/woota/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/woota/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/woota/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woota/gold-miner/merges","archive_url":"https://api.github.com/repos/woota/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woota/gold-miner/downloads","issues_url":"https://api.github.com/repos/woota/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/woota/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/woota/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/woota/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woota/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/woota/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/woota/gold-miner/deployments","created_at":"2016-03-01T04:46:27Z","updated_at":"2016-03-01T04:16:34Z","pushed_at":"2016-03-15T17:01:54Z","git_url":"git://github.com/woota/gold-miner.git","ssh_url":"git@github.com:woota/gold-miner.git","clone_url":"https://github.com/woota/gold-miner.git","svn_url":"https://github.com/woota/gold-miner","homepage":"http://gold.xitu.io","size":8622,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xitu:master","ref":"master","sha":"9815c5dfa7c8510d9fe40e72de837ed14e649ce3","user":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":45512989,"name":"gold-miner","full_name":"xitu/gold-miner","owner":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":false,"url":"https://api.github.com/repos/xitu/gold-miner","forks_url":"https://api.github.com/repos/xitu/gold-miner/forks","keys_url":"https://api.github.com/repos/xitu/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/gold-miner/teams","hooks_url":"https://api.github.com/repos/xitu/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/xitu/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/gold-miner/events","assignees_url":"https://api.github.com/repos/xitu/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/gold-miner/tags","blobs_url":"https://api.github.com/repos/xitu/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/gold-miner/languages","stargazers_url":"https://api.github.com/repos/xitu/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/xitu/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/xitu/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/xitu/gold-miner/subscription","commits_url":"https://api.github.com/repos/xitu/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/gold-miner/merges","archive_url":"https://api.github.com/repos/xitu/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/gold-miner/downloads","issues_url":"https://api.github.com/repos/xitu/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/xitu/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/gold-miner/deployments","created_at":"2015-11-04T03:29:13Z","updated_at":"2016-03-16T01:32:51Z","pushed_at":"2016-03-16T02:00:15Z","git_url":"git://github.com/xitu/gold-miner.git","ssh_url":"git@github.com:xitu/gold-miner.git","clone_url":"https://github.com/xitu/gold-miner.git","svn_url":"https://github.com/xitu/gold-miner","homepage":"http://gold.xitu.io","size":8931,"stargazers_count":787,"watchers_count":787,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":165,"mirror_url":null,"open_issues_count":21,"forks":165,"open_issues":21,"watchers":787,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/205"},"html":{"href":"https://github.com/xitu/gold-miner/pull/205"},"issue":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/205"},"comments":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/xitu/gold-miner/statuses/94f55e2328a6a7e056daf83249f7287313245eb4"}}}}