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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How it feels to learn JavaScript in 2016

452 点作者 jjperezaguinaga超过 8 年前

52 条评论

voidfunc超过 8 年前
Just a couple days I got into a conversation with my coworker about UI stuff. I had to test something against our dev UI. Last time I did UI work was back when having index.html, img&#x2F;, css&#x2F; and js&#x2F; directories with maybe a script or two was the norm. I had to fucking run make and I still have no fucking idea what was going on when I ran make which compiled a bunch of shit. There was all this NPM shit going on (isn&#x27;t NPM part of Node.js which is a server-side framework? WTF?). I got it working and promptly noped the fuck out that horror show.<p>The web is a giant fucking pile of dog shit in 2016.
评论 #12632562 未加载
评论 #12632458 未加载
评论 #12635593 未加载
alexmuro超过 8 年前
If you are doing a simple project, there is nothing wrong with just using jquery (or imho d3). If you know that your project is always going to be pretty simple or especially if you are learning.<p>I have been teaching a number of people javascript at my lab lately and I think its unwise to teach new javascripters using any of the modern tools or transpiling until someone runs into one the problems that those tools solve. Having been a javascript coder consistently from the jquery days until now, I am not pining for the simple old days of yore.<p>It can be hard to learn everything that goes into a big front end app these days but when used correctly all those tools are there for a reason.
评论 #12632543 未加载
tibbon超过 8 年前
This is pretty much why I don&#x27;t do front-end. I&#x27;m fully capable of it, but I just don&#x27;t like keeping up with this flavor-of-the-week. It just doesn&#x27;t feel like programming to me, or at least not the programming I enjoy.<p>Strangely, I see so many new developers rushing toward the front-end, which seems much more complicated in many ways than just building solid web API services, analyzing data, etc.
评论 #12630132 未加载
评论 #12632925 未加载
评论 #12629852 未加载
评论 #12629892 未加载
评论 #12631704 未加载
评论 #12644138 未加载
评论 #12632791 未加载
评论 #12640724 未加载
评论 #12629963 未加载
gadrev超过 8 年前
This was actually a didactic piece.<p>While criticizing the current state of affairs, it gives a nice overview of many of the emerging technologies and how they fit together, even if for some tasks it feels retarded to pull such an entangled mess of dependencies.<p>You can then go insane diving into any particular one :)
评论 #12630054 未加载
评论 #12629773 未加载
评论 #12632686 未加载
adamrezich超过 8 年前
Cross-posting my comment from reddit:<p>I don&#x27;t know about anyone else, but the problem I personally have with the crazy, messy JavaScript ecosystem is:<p>- I am a relatively experienced amateur programmer (with limited [nine months] professional experience)<p>- I can learn any new programming language, library, methodology, or whatever pretty easily<p>- I don&#x27;t have any formal experience using anything of this newfangled stuff; like the author of the article, my frontend experience involves plain ol HTML&#x2F;CSS&#x2F;JS, with a little jQuery to make things easier<p>- nobody wants to hire me unless I have `n` years experience with newfangled language&#x2F;framework&#x2F;methodology `x`, `y`, and `z`<p>- I don&#x27;t have a CS degree<p>Unless you&#x27;re a massive operation like Facebook or something... just give me a week to look through your website&#x27;s codebase, I&#x27;ll figure out how you guys do things and I&#x27;ll start being productive before you know it. If you&#x27;re using stuff that I&#x27;ve never used before, I&#x27;ll learn it.<p>I <i>should</i> be a <i>more</i> attractive hire than someone who has `n` years of experience <i>only</i> using `x`, `y`, or `z`, because the way I think about getting things done with computers isn&#x27;t tied down to any one specific framework... but it seems that this isn&#x27;t how hiring works in the industry right now... which is directly at odds with the rapidly-changing nature of web development!<p>As a result, I don&#x27;t feel inclined to learn any of this new crap. What&#x27;s the point? Apparently I should&#x27;ve learned it all `n` years ago, and it&#x27;s too late now?
评论 #12632818 未加载
评论 #12644328 未加载
评论 #12634355 未加载
评论 #12635320 未加载
评论 #12637836 未加载
评论 #12636904 未加载
dhruvkar超过 8 年前
I couldn&#x27;t get through the entire thing. Even knowing that it&#x27;s a fun&#x2F;sarcastic piece of writing, the portrayed pain is all too real, as someone just starting to dive into the front-end.<p>In all honesty, can I still use jQuery for new projects without issues in 2016? Is there a real reason not to?
评论 #12630113 未加载
评论 #12635347 未加载
评论 #12630138 未加载
trowawee超过 8 年前
It continually shocks me how much whining developers do about sometimes having to learn new things. The requirements for continued education are shockingly low (read: non-existent) in our industry, compared to other, similar intellectual&#x2F;white collar industries - doctors in California are legally required to do 50 hours of CME&#x2F;2 years, lawyers in California are legally required to do 25 hours of CLE&#x2F;3 years, and those are both fairly standard. There are a tremendous amount of jobs out there that won&#x27;t require you to learn anything new, ever, if you don&#x27;t want to (think of how many thousand brain-dead Java jobs are out there). There are plenty more that will require you to learn one or two new things (any of the hundreds of consultancies and companies that picked a fairly standardized stack and work with it all the time). And then there is a tiny subset of companies that are actively working with new tech and trying new things, and a tiny subset of people actually using all of those new things. Whining about how &quot;it&#x27;s too complicated!&quot; because someone somewhere provided you with some new programming tools for free because they thought those tools were useful and cool is an ugly look for a profession that&#x27;s so prone to patting itself on the back while loudly proclaiming how forward-thinking it is.
评论 #12636333 未加载
评论 #12642764 未加载
sotojuan超过 8 年前
I&#x27;m in a weird position where I like JavaScript and Node but dislike frontend (or at least I am disliking it more and more).<p>With Node, I can get quite far with just a couple of dependencies that install quickly. I don&#x27;t need transpilation unless I want to use TypeScript or PureScript and I can target any version I want. I find it very fun to mess around with Node and a bunch of little modules.<p>I am slowly &quot;transferring&quot; back to server-rended pages using Node or Elixir. Probably not good for my employment (even in NYC most JS jobs are frontend), but whatever.<p>If I was learning JS right now and didn&#x27;t care about employment I&#x27;d just learn Node (which just means learning JS really) and experiment with stuff.
评论 #12633388 未加载
patmcguire超过 8 年前
Reminds me of &quot;starting Rails today is like starting to watch a soap opera in the 7th season&quot;<p><a href="http:&#x2F;&#x2F;words.steveklabnik.com&#x2F;rails-has-two-default-stacks" rel="nofollow">http:&#x2F;&#x2F;words.steveklabnik.com&#x2F;rails-has-two-default-stacks</a><p>Be thankful, at least it&#x27;s not 2013, the new-js-framework-on-the-front-page-of-HN-every-day era.
评论 #12629913 未加载
评论 #12629858 未加载
_Marak_超过 8 年前
I&#x27;ve found using Babel &#x2F; React &#x2F; transpile tool-chain is actually fairly impossible to use for the majority of developers. I&#x27;ve given up on it several times in favor of plain-ole-javascript and jQuery.<p>The amount of time it takes to ramp-up on the technical knowledge isn&#x27;t insurmountable. The main issue is bloat in both code size and dependency chain instability. On a slow connection, you might find yourself battling against your tool chain for half the day. In the case you actually hit a code problem with the underlying technologies, it&#x27;s going to be hours if not days searching Github for the patched version of the module. If you actually are able to path the specific dependency, it will probably break something else.<p>I do have hope though. We are starting to see a lot of really cool Babel &#x2F; React components and projects. I think with a bit more time, we&#x27;ll get stability in the eco-system as there are less deltas to the underlaying code dependencies and the browser vendors catch up with ES7 features.
hiester超过 8 年前
Like a lot of 21-year-olds, javascript has gotten big and strong, but its brain hasn&#x27;t finished developing yet. It hasn&#x27;t figured out what it wants to do with its life. It engages in binge drinking a little more than is healthy. It&#x27;s sowing its wild oats. Didn&#x27;t we all when we were 21 (or didn&#x27;t we wish we did)? It has 3000 Facebook friends. Last year it had a best friend, but now it&#x27;s hanging out with someone else and doesn&#x27;t even talk to that other one any more. It&#x27;s kind of preoccupied with being cool and popular. Young adults can be very self-conscious and anxiety-ridden. Constantly checking its status on social media (&quot;OMG, I wonder what I look like on iOS 10?&quot;) probably isn&#x27;t helping things. Still, it&#x27;s really smart and helpful and has a lot of talent. Give it time. Cut it some slack. It will find its way, make something of itself, and make you proud. You&#x27;ll see.
at-fates-hands超过 8 年前
You also have to keep in mind a few things:<p>1 - I&#x27;ve never referred to myself as an &quot;engineer&quot; since I don&#x27;t see myself as one, nor do I have an engineering degree. This includes the fact I do not have a four year CS degree either.<p>2 - Front end development has now split. Being a web &quot;designer&quot; means you know HTML5, CSS3 which includes LESS, SASS, PostCSS and other CSS pre-procssors<p>3 - Being a web &quot;developer&quot; means you&#x27;re more likely to be a Javscript developer. Meaning you&#x27;re familiar with Angular, Backbone (I know its soooo 2014 isn&#x27;t it?), React and other JS frameworks. Every interview I&#x27;ve done in the past two years has almost exclusively focused on JS and how well I know standard JS. Closures, inheritance, debugging, etc. Nobody cares if you know much else other than that.
评论 #12636225 未加载
评论 #12636577 未加载
okket超过 8 年前
Loosely related: &quot;The S stands for Simple&quot;<p><a href="http:&#x2F;&#x2F;harmful.cat-v.org&#x2F;software&#x2F;xml&#x2F;soap&#x2F;simple" rel="nofollow">http:&#x2F;&#x2F;harmful.cat-v.org&#x2F;software&#x2F;xml&#x2F;soap&#x2F;simple</a>
评论 #12633013 未加载
laacz超过 8 年前
As a person who has to build a relatively simple webapp from time to time, it&#x27;s tiresome. I usually take a look around - what&#x27;s trendy. It results into lost night, since I learn that everything requires two times more stuff than six months ago.<p>In the end I go with vanilla JavaScript and whatever new APIs I can use and polyfill.<p>No, wait. I made a webapp with React. While occasionally seeing Flux and friends mentioned, I was strong. I went with vanilla ReactJS.<p>I mean, those web stacks just get obsolete too soon. Your super tuned gulp setup will be obsolete in a year or two. What will you do then? Re-learn all new things?<p>It seems to me that there is a frontend development stack bubble coming. When I had to change bootstrap&#x27;s base font size, I had to download and learn awful amounts of stuff. Which is on my machine. And I will never use it again.
carsongross超过 8 年前
If you are sick of javascript on the front end, but don&#x27;t want to give up the fancy-pants UI, you could do worse than my library, intercooler, which lets you add AJAX to your app with a few HTML attributes.<p><a href="http:&#x2F;&#x2F;intercoolerjs.org" rel="nofollow">http:&#x2F;&#x2F;intercoolerjs.org</a><p>Make REST work the way it was intended, supports CSS transitions, request indicators, etc.<p>Good little library that eliminates a lot of complexity for web apps that don&#x27;t need all this junk (most of them.)
评论 #12638223 未加载
buckbova超过 8 年前
&quot;It’s 2016 man, no one uses jQuery anymore, it ends up in a bunch of spaghetti code. Everyone knows that.&quot;<p>I prefer &quot;jQuery soup.&quot;
romaniv超过 8 年前
And to think that I went into web dev precisely to avoid dealing with complex build chains and horrible UI libraries...
评论 #12634979 未加载
vladimir-y超过 8 年前
Article title is absolutely not correct, front-end developer is supposed to build an entire UI and corresponding client-side logic, not just write some abstract JavaScript code, code itself is nothing. So it&#x27;s not about write JS code, but about building maintainable and scalable applications.<p>All that stuff is actually required to build something maintainable, especially modules. React is not a silver bullet, but nowadays SPA and components approach should be familiar for any front-end developer. I like Typescript was mentioned there.
imgabe超过 8 年前
I guess I&#x27;m behind the times in that I still use jQuery. Is it really worthwhile to go through everything described in this article to create a simple filterable table?
评论 #12630089 未加载
评论 #12629938 未加载
评论 #12680061 未加载
评论 #12636692 未加载
rcarmo超过 8 年前
Wow. 140+ comments and nobody mentioned the Python 3 jab :)<p>Seriously now, I gave up front-end stuff when it began requiring me to use Node to bundle files together, and find it terrifying to see Yeoman used as a code generator for non-JS runtimes and frameworks... building software atop quicksand (be it frameworks or libraries) that shift every week is insane, and it feels like the modern day version of just-in-time job security.<p>My use of thumb these days is to not use more JavaScript than what I can read in one sitting, unless a) it&#x27;s D3 or a similar single-purpose library and b) I get a Docker container to run npm and all its funk inside that I NEVER have to look inside of.<p>My dream is that JavaScript dies and that the industry moves to something like Elm, ClojureScript or TypeScript, with a functional and&#x2F;or hard typed approach.
krylon超过 8 年前
This makes me think of a sentence I read years ago: &quot;We love to fight complexity with complexity.&quot;<p>I think whoever said this referred to the various IPC methods on Windows, but I do not remember for sure. Seems like some things never change.
jlas超过 8 年前
Reminds me of <a href="https:&#x2F;&#x2F;circleci.com&#x2F;blog&#x2F;its-the-future&#x2F;" rel="nofollow">https:&#x2F;&#x2F;circleci.com&#x2F;blog&#x2F;its-the-future&#x2F;</a>
评论 #12629432 未加载
评论 #12629444 未加载
istjohn超过 8 年前
This was spot on for me as a hobbyist who has returned to JS after a hiatus of roughly 3 years. On the one hand, it&#x27;s exciting to see JS evolving into a sophisticated language with dozens of new constructs specced out. On the other hand, as a casual enthusiast I feel trapped between using a small subset of the features available, or wrestling with a tangle of temporary crutches while implementations catch up with the new standards.
tempodox超过 8 年前
It&#x27;s bad enough the facts on the ground make it a virtual impossibility to circumvent JS altogether. The best we can do is always wearing gloves when handling it and to never write it manually.<p>JS, for the oversimplified thing it is, is just systematically overextended with the loads it has to carry now. No framework on earth will make that go away. And neither will ES6.
egwynn超过 8 年前
See also: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@boopathi&#x2F;it-s-the-future-7a4207e028c2" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@boopathi&#x2F;it-s-the-future-7a4207e028c2</a>
评论 #12640380 未加载
dvcrn超过 8 年前
I know the irony of introducing a new tool in the comments of this particular blogpost, but a while back I decided to completely ditch javascript and go the clojurescript route. I&#x27;ve been super happy ever since.<p>The syntax is stable, clojure is extremly well designed, the ecosystem a lot clearer and tools - well you have lein as the main one and that&#x27;s about it. On top of clojure, you get google closure for free and can optimize the hell out of it with advanced mode compilation out of the box.<p>And that&#x27;s the &#x27;vanilla&#x27; experience! No separate library required! You can still interface with normal js and npm modules of course but you find yourself using npm install a lot less.<p>All major tools have cljs wrappers that are just a joy to use (looking at reagent (react), re-frame (redux), om (react+graphql)
avesus超过 8 年前
Some parts of the article go too far (developers finding their own ways to make things, continuously), but common idea of using Babel and writing in modern JS is prevalent - because you have to use a bundler to concatenate source code and import dependencies. But using a bundler feels like a compile step - and it&#x27;s so easy and desirable to add another step and enable modern JavaScript ES2016+ in your web app. And this part is now a standard de-facto, but some people use make, others gulp, I happy with npm run or just bash scripts. But common idea of bundling and JS compiling holds true for all developers.<p>Actually, not yet completely solved problems in terms of consensus how to do things stay here: delay loading (login form&#x2F;admin panel&#x2F;main app code or features separation), component assets dependencies, modular CSS, and, of course, frontend and server side architectures with CycleJS, Elm, SAM, Redux, Angular 2 as candidates but those yet have unsolved problems: either work slow (and making simple app&#x27;s size more than 1 MB zipped) or you have to write some boilerplate of source code lines. And comparing side there, of course, ability to componentise infinitely and hierarchically. And for accessing data GraphQL emerges as hot modern technology. And a lot of other cool things to keep tracking every day... It never stops, growing larger and allowing to reuse all third-party dependencies (beside of components - every team mostly prefers writing their own, because those play better with their chosen software architecture) and constantly rewriting your own source code.
partycoder超过 8 年前
Web development is <i>very</i> volatile.<p>It is also a discipline that lowered its entry barrier a lot, and now coding camps are producing a deluge of graduates, all of them attracted by the promise of a 6 figure salary.<p>Even if pessimistically only 10% of them are good, they graduate every 14 weeks compared to 208 weeks for a CS graduate.<p>As of 2016, learning JavaScript might be very profitable, but I wonder for how much longer.
StokeMasterJack超过 8 年前
I have no patience for this kind of article.<p>Here is the fundamental essence of the article that drives me nuts: the assertion that the reason someone would move to one of these new technologies is because &quot;it&#x27;s trendy&quot; or &quot;everyone is doing it&quot;, &quot;or angular is so 2015&quot;, &quot;it&#x27;s for hipsters&quot;. This is the standard mantra of old people everywhere who are too old to learn new stuff.<p>If the guy would have taken the time to learn the purpose of these tools, their pros and cons, and why one would choose to use them or not use them, that would be interesting. But that would take a bit more time. And actually learning something new.<p>While I emphasize with old people who feel the world is moving too fast (I am one of them), I have no tolerance for the basic anti-logic of the article: the assumption that new technology only exists because of trendy hipsters who just like change for the sake of change. This logic only exists to soothe the mind of old people who don&#x27;t want to learn new things.
glenndebacker超过 8 年前
I don&#x27;t use ES6 because of the cool kids, but because it makes some Javascript things more tolerable.<p>One constructive thing that I would like to add is that the &quot;You don&#x27;t know JS&quot; book series has really taught me a lot about the common pitfalls of JavaScript. Since then my JS stress levels have been reduced dramatically!
maxlambert超过 8 年前
Hilarious article, but seriously, can somebody tell me where I should begin learning all of this stuff?<p>What are the 2 or 3 top-priority things I should get started with, if I have experience with Django&#x2F;HTML&#x2F;JQuery, and want to expand into more advanced frontend programming?
评论 #12630091 未加载
anta40超过 8 年前
The last time I touch JS was probably many years ago, while learning web development in the university.<p>I mostly write desktop+native mobile apps, and without doubt my JS skill is very rusty :(<p>Any suggestions how to catch up with JS trend nowadays? JS for web dev is pretty much unavoidable, right?
drumttocs8超过 8 年前
Psst... Meteor solves the entire build process for you... you can use React with it now... it integrates with npm now... you can use Apollo with it to connect to any type of database...
DiegoZoracKy超过 8 年前
This article is very good and sums up very well a feeling that a lot of us is having right now. However, i think that title is throwing an error, as the article is not about learning JavaScript, but, only about learning Front End. I wrote a little about it here:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@DiegoZoracKy&#x2F;stop-blaming-on-javascript-when-all-you-want-is-to-talk-about-front-end-73ff19fef861" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@DiegoZoracKy&#x2F;stop-blaming-on-javascript-...</a>
chajath超过 8 年前
My advice would be to pick one tech stack that is prevailing in the market and master it. Once you master one you will see similar concepts been largely repeated in other frameworks.
OtterCoder超过 8 年前
Takeaway: use Elm.
cycomachead超过 8 年前
Slightly related, but if you&#x27;re helping someone start out learning to code, it&#x27;s worth reading this:<p><a href="http:&#x2F;&#x2F;pgbovine.net&#x2F;programmers-talking-to-beginners.htm" rel="nofollow">http:&#x2F;&#x2F;pgbovine.net&#x2F;programmers-talking-to-beginners.htm</a><p>You don&#x27;t _need_ react to build a cool site in 2016, but if you&#x27;re dead set on that, then this piece is a good intro to the set of questions that arise!
mgrennan超过 8 年前
This is what happens when management gives up and turns IT to developers. And I believe that happened when accountants took over because of Sarbanes Oxley. The accountants had no idea what they where getting into. Then the Tech Bubble happened and $$$ filled their eyes. Developers became GODs and now... This happened.
gremlinsinc超过 8 年前
I&#x27;m looking into react, and I fix things in legacy code, but that&#x27;s still mostly jquery, or native js. But backend I just get things done.. I much prefer working on teams where there are &#x27;specialists&#x27; who do all the frontend and I just give them an API to feed into it.
geddski超过 8 年前
I wrote a post that might help anyone feeling overwhelmed about all the things to learn:<p>What Not to Learn <a href="http:&#x2F;&#x2F;gedd.ski&#x2F;post&#x2F;what-not-to-learn&#x2F;" rel="nofollow">http:&#x2F;&#x2F;gedd.ski&#x2F;post&#x2F;what-not-to-learn&#x2F;</a>
mwexler超过 8 年前
I couldn&#x27;t help but yell &quot;Third Base!&quot; at the end of this. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Who%27s_on_First%3F" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Who%27s_on_First%3F</a>
scotty79超过 8 年前
I&#x27;m getting away with npm, webpack, typescript, babel and react (with jsx) with some lo-dash.<p>Never learned browserify, barely grunt and bower, happily forgot thorough knowledge of gulp. Actively pushed out all of the awfulness of angular.
realrocker超过 8 年前
Ok, So I have only ever done backends and some android stuff,and been trying to learn building UIs. It&#x27;s been hard. This post finally cleared some of the confusions I had but was afraid to ask.
评论 #12633664 未加载
pdonorio超过 8 年前
I was moving from Full Stack to Backend&#x2F;DevOps without even noticing, in the last six months. At least with this post I can now admit it to my self and explain why to others on LinkedIn.
SadWebDeveloper超过 8 年前
&gt; Oh, like Bower!<p>&gt; Oh, like Angular!<p>IMHO if you know about those you pretty much most of the terminology the &quot;js guy&quot; is using, personally speaking i know Angular haven&#x27;t used yet bower in any project.
评论 #12637011 未加载
jftuga超过 8 年前
This has to be one of my favorite HN posts of the year.
resonantjacket5超过 8 年前
This encapsulates my experience learning angular 2 and react these past two years. Lol
Pherdnut超过 8 年前
Our industry has been overrun by resume-bullet-point silicon-valley-framework-coddling noobs&#x2F;whores. I have always prided myself on staying up on the latest in core web technology. It&#x27;s the reason I know what a !@#$ing tragic waste most of these idiotic frameworks are.<p>jQuery had the DOM covered and is in fact now redundant itself and could be managed with a much, much lighter lib that spends a lot less time normalizing assuming you&#x27;re dropping support for browsers even Microsoft no longer covers.<p>LESS and SASS were good for vars and should have stopped there. Standard browser support is finally in the works for that. But you certainly don&#x27;t need both and for FFS you&#x27;re just making an unmaintainable styling mess using all of the other features, especially (noob, please), nesting which needlessly adds to selector count like nobody&#x27;s business.<p>We do NOT need to ASP&#x2F;JSPify the DOM. Keeping content&#x2F;structure code separated from the behavior code was the reason proper front end devs were running circles around Java&#x2F;ASP.net devs. What the fucking fuck is the point of adding your own custom tags to HTML, which already had a perfectly serviceable approach to binding behavior to it? Or creating an XML-like syntax you mix&#x2F;match directly with your JS?<p>Silicon valley noobs, please. I had lazy loading scrollable tables that could handle 50,000+ lines of data back when Google Docs was choking on 2,800. This shit is not hard. Stop wining and spend the time you apply to learning frameworks with next to no core technology understanding to actually learning the technology you have before you start adding pointless layers that solve nothing on top of what&#x27;s already there and you&#x27;ll be shocked at how not-hard it can really be.<p>Or let&#x27;s not. Let&#x27;s load a massive freaking ridiculous CSS and JS library by the Twitter devs, because, yes, surely they know through their work with a site that essentially boils down to a single text area, a great deal about handling complex layout and UI concerns.<p>AMD for a web app? Okay, I can see it, certainly for non-trivial SPAs , which NOT EVERY SITE NEEDS TO BE. But first, how complicated is this web app? If not-very, why were people struggling with linking scripts in the right order? Why did they need to link so many damn things to get the job done in the first place?<p>And FFS, it&#x27;s just &quot;data-binding.&quot; Calling it &quot;Two-way&quot; is redundant and makes you sound like a jackass who doesn&#x27;t know what the fuck is actually happening. And it&#x27;s just a pattern. And not a very hard one to implement.<p>MVC and MV? are great. Really, whatever the fuck keeps data separated from an app layer from your DOM-handling is fantastic. Frameworks that make it easy to follow such patterns in a way that all developers can become familiar with are great too. But sweet JavaScript Jesus why won&#x27;t they just stop there?<p>We used to laugh at Java developers. What the fuck are we doing to ourselves? Why haven&#x27;t I gotten an honest to god core web technology or native JavaScript question at an interview in like 3 years? We have indeed, ruined JavaScript.<p>Thanks a lot assholes.
StokeMasterJack超过 8 年前
That article could have been shorted to: I&#x27;m old.
davidjnelson超过 8 年前
My comment from the medium post:<p>I think the key takeaway here is: a) requirements suck always, b) figure out what the real problem is that needs to be solved, c) fashion your solution to the unique needs and culture of the team you are a part of.<p>Computers are hard.<p>I’ve been specializing in front end stuff for 4 years and it still took me a month to master the react ecosystem. It’s better than anything that came before it though by a landslide.<p>People whine a lot expecting everything to be easy. There is a laundry list of classic cognitive distortions present in these types of articles.<p>If this is literally your only requirement and no new features will ever be added: “create a page that displays the latest activity from the users, so I just need to get the data from the REST endpoint and display it in some sort of filterable table, and update it if anything changes in the server”.<p>Which I highly doubt, but let’s go with that premise. What you’d really want is to be step back and look at the needs of the app. The real needs are websockets for real time, and a way to tail the oplog of the database you are using to get the latest data pushed without needing to have the websocket proxy you’ll setup poll on the server side.<p>The front end implementation is fairly irrelevant here, IF nothing ever changes ( yeah right ).<p>If that is truly the case ( it’s not, believe me ), then just use a jquery datatable plugin which updates it’s data when new websocket data comes in. That’s like 100 lines of code, done.<p>If you’re using mongo it’s not too hard server side because you tail the oplog, the way meteor does. If you’re using something else you might have to poll server side to get the new data, which is honestly the hardest part of this problem. The front end of this is not the issue frankly based on the requirements presented.<p>This is IF this is all a one off project that never changes and will never need new features or bugfixes.<p>If it ever needs to be changed, you do benefit a lot from using more modern technologies so instead of a lump of jquery spaghetti you have clean component api boundaries which can be easily unit tested and modified in isolation without breaking other areas of the app.<p>Every situation is different.<p>As presented, this is more of a server side problem than a front end problem. What data stores are you using, how are you going to get that data in real time, how are you going to set up a web socket server, how are you going to scale said web socket server etc.<p>I think that blog post comes off as attacking the wrong problem and complaining that computers are hard. It doesn’t appear the requirements were clearly understood and evaluated. Picking the right tool for the job is really a thing. Dogma is dangerous in software for sure. On that point, I agree.
ilostmykeys超过 8 年前
If you stay on the surface and follow trends you will think front end web development is insanity inducing. But if you go deeper, develop your own thinking and deep patterns you will realize that the web platform is doing just fine and is progressing better than most languages&#x2F;platforms out there.
keymone超过 8 年前
one thing i disagree with is how functional programming concepts are equated to all the bullshit javascript ecosystem has grown to be.
评论 #12634353 未加载