9 ms·
People are generally happy with the development of JS the trends of always improving languages along with frameworks makes developing with JS makes developer in
by ksec 8y ago
People are generally happy with the development of JS the trends of always improving languages along with frameworks makes developing with JS makes developer increase in happiness for the third time in a row.
ES6 is good, TypeScript is gaining ground, people are moving away from Flow.
Angular is dead? Most don't even want to touch it again ( Great ). Ember hasn't moved a bit in three years with a declining of interest. I am also surprised no one is using preact. The Choice is now either React or Vue.js, I think Vue.js 3.0 will continue to move vue forward.
Given the amount of hype with GraphQL, I am surprised only 20% are actually using it. And nearly 50% are using Redux!
Backend is dominated by Express only, and Testing framework doesn't have a clear winner either.
And my biggest surprise is how Javascript turned from one of the most hated programming language ( besides PHP ? ) into being acceptable and loved.
I really wish other languages communities do a similar survey, Python, PHP, Ruby, Java, Rust etc... It will be interesting to see the trend and big picture.
- daliusd 8y ago> TypeScript is gaining ground, people are moving away from Flow. Is it really the case? Both projects are watched and have quite big number of stars in github. I have tried flow and liked it. I have used typescript in the past and I'm not crazy about it. Therefore I would like to get better understanding here. Is there anything I could read about it?
- Vinnl 8y agoI don't have hard data, but a large part of this is probably ecosystem. TypeScript updates more often and, most importantly, almost every relevant library has TypeScript type definitions available. Interesting hard data would be the percentage of popular libraries with TypeScript type definitions available vs. those with Flow definitions available. I'm quite sure that would heavily tilt towards the former, though.
- jaxondu 8y agoDon’t have to take the survey so seriously. It’s not representative of all JS community. My circle of JS hackers don’t even bother to participate.
- krona 8y agoIs there any reason to suspect Flow users are less likely to do the survey than, say, TypeScript users?
- daliusd 8y agoI can speculate here a little bit. Majority of survey users has less than 10 years of experience. That makes them susceptible of being Visual Studio Code users. VSC - Microsoft product. Typescript is Microsoft product as well.
- kristiandupont 8y agoI am curious (as a VSCode user) what makes you conclude that junior devs are likely to use VSCode?
- daliusd 8y agoIt is really good tool and free one. Better tools are either commercial or requires a lot of learning.
- scrollaway 8y agoYou're mistaking "representative" with "inclusive". The survey can be a representative sample, without including your ̈́"circle of JS hackers". That's how surveys work.
- krona 8y agoThe proportion of Flow users who said "would not use it" has increased substantially over the past year. (24% vs 41%)
- davedx 8y agoI started using TypeScript professionally for the first time this year. A few more datapoints: I've had recruiters calling me for TypeScript projects, but not for Flow. This is in the Netherlands.
- IloveHN84 8y agoLoved? Well, it's a point of view. I personally hate it, due to the tooling and the dependency management (npm and yarn are catastrophic, an "hello world" example with React downloads on average more than 100 packages).
- paraditedc 8y agoOn the plus side, once you built it, the only dependency you have is the browser, and you can distribute it however you want since it's cross-platform compatible.
- ticmasta 8y ago>> the only dependency you have is the browse HA! maybe this is technically true, because in the end that's where it runs, but have you looked in your modules folder at any substantial project lately? The dependencies run deep and they run wide...
- paraditedc 8y agoTell me about it. https://news.ycombinator.com/item?id=12209300 https://news.ycombinator.com/item?id=12209300
- kabacha 8y agoAs much as I dislike Javascript OP is right. The latest stack overflow survey[1] puts #7 on most loved languages and it's not even in top 25 most dreaded ones. [1] - https://insights.stackoverflow.com/survey/2018#most-loved-dreaded-and-wanted https://insights.stackoverflow.com/survey/2018#most-loved-dr...
- arnvald 8y agoI suspect one of the reasons people are happy with JS (even though there's plenty of much better languages) is that it has made a huge progress. Writing ES6 after a few years with ES5 is so much more pleasant. I used to be annoyed every time I had to write some JS code in the past, now I must say I even enjoy it. However, regarding the metric that shows developers' happiness over the years: * If someone asks me if I'm happy writing JS these days vs a few years ago I'll say I'm much happier now than I was before. * If someone asks me if I'm happy writing JS vs writing Elixir (or Python or some other language), I'll still say I'm much happier with Elixir.
- devxpy 8y agoI think we should also consider that most people have gotten used to the fact that JS is the language of the web, and there’s basically nothing we can really do about it in the short term, so let’s just have a positive attitude towards it! P.S. I don’t, but most people I have met seem to have this kind of mentality.
- thrower123 8y agoYep, the Stockholm Syndrome. I still swear a blue streak when I get pulled from my nice backend world over to do some trivial UI work on the front-end, and it takes me frigging forever because there's no type system, and no compiler, and the tooling is stone age, and it takes me longer to run gulp and babel to build it to see changes than building my entire backend solution and running all my tests. It's all we've got, but it is assuredly not good. Hopefully WebAssembly comes to fruition and we can leave this dark era behind.
- minor3rd 8y ago> to do some trivial UI work on the front-end If that takes you forever, consider that it may also be your lack of familiarity as much as the lack of type system/compiler. Despite my preference for the back end, I have spent plenty of time on the front end and can pump out changes very quickly.
- 8y ago
- Etheryte 8y agoRegarding GraphQL, I think the reason is at least partially that there aren't too many applications that actually benefit from the all-dynamic approach of it. It's neat and useful in certain applications, but I wouldn't use it everywhere. The tooling isn't quite there yet also in my opinion, but the friction will probably go away with time.
- ianwalter 8y agoI agree that the dynamic querying aspect of it isn’t useful in most apps but the way graphql simplifies your API (and maybe your state management) compared to REST is by itself, I think, worth it. Tooling seems to be ramping up quickly but I agree, isn’t there yet.
- WorldMaker 8y agoYeah, I assume the low usage of GraphQL in this survey coordinates/correlates with the low usage/knowledge about Apollo in this survey. Apollo seems the most invested in ramping up strong tools for GraphQL, so of course developers aren't likely to be using GraphQL if they haven't yet heard about/explored Apollo's efforts. For instance, apollo-link-rest would be a strong way to bootstrap into GraphQL for shops with heavy REST investments. That said, Apollo aren't yet doing themselves favors with nearly every part of their tooling still showing a "Caution: Active Development" warning. That keeps them right on that cusp of "Should I use this in production?" worry for enterprise, and slows adoption probably more than they intend.
- marcosdumay 8y agoIt's a data access language where data sources are a far secondary concern for the tooling, and it looks like the tooling does not care about access control at all. The standard looks great, and with some time some useful tools will probably arrive. But not right now.
- pjmlp 8y ago> Angular is dead? Most don't even want to touch it again ( Great ). Yet what I see around me is enterprise customers on our projects adopting Angular as the official internal Framework, as React is seem as too advanced.
- oblio 8y agoMost of HackerNews isn't enterprise hackers. At least the active commentators.
- tomas789 8y agoIs that the assumption or for fact? I see people with very diverse background here.
- oblio 8y agoI don't have stats to back it up, talk to pg for that :) But it's not that hard to figure out based on comments, upvotes, stories on the front page, etc. Consider it an educated guess from a relatively active HN member who's been here for 5 years :)
- rpwverheij 8y agoas someone who tried Angular and was so relieved with the simplicity of React, I have no idea how they can come to that conclusion. But then again, I'm not very well know with the field of enterprise customers
- justanegg 8y agoAngular is an ambiguous name, it mean AngularJS, Angular 2..7. I don't want to use 1.x ever again, and don't want to get burned again.
- tzfld 8y ago>Given the amount of hype with GraphQL, I am surprised only 20% are actually using it. Glad to see people don't adopt things only because they are hyped.
- intothemild 8y agoYou've never been or spoken at a JS meetup... the whole audience glazes over whenever you talk about something that's not hyped right now. At the end you'll even hear questions like "So where do I add <insert hyped thing here>" New JS dev's in the last few years have been under the idea that using whatever is hyped is cool... ignoring that it's not stable and you shouldn't probably use it in production.
- alkonaut 8y agoThe State of Rust is a yearly survey: Unsure if the 2018 results are done? https://blog.rust-lang.org/2017/09/05/Rust-2017-Survey-Results.html https://blog.rust-lang.org/2017/09/05/Rust-2017-Survey-Resul...
- steveklabnik 8y agoStill analysizing them. Soon though!
- Vinnl 8y ago> And my biggest surprise is how Javascript turned from one of the most hated programming language ( besides PHP ? ) into being acceptable and loved. I think a primary reason for this is that Javascript first was a language that was easy to hate because mistakes couldn't be fixed - "don't break the web" and all that. The community then found a way to improve it without breaking the web: add improvements with different syntax, and let your editor/build system/whatever use a linter to deprecate the old syntax from your personal codebase. It's greatly improved in that way and now easily holds a candle to other long-term popular languages.
- benjaminsuch 8y agoJust curious why no one want to touch it again? I never developed with Angular but I loved to develop with AngularJS (and still working with it). Can anybody entlighten me?
- cloverich 8y agoMy personal experience (used Angular JS and EmberJS, before React) -- AngularJS (like Ember) required a lot of Angular _specific_ understanding to use properly, and (_unlike_ Ember) some of those had significant performance impacts. When I switched to React, i felt like there were 3 or 4 API's I needed to understand, and that the escape hatch was easily reachable at all times. There were numerous features I extended deadlines for in Ember and Angular where I would say to my teamates: "I could solve this with Javascript, but how do you handle this in Angular?". Some people are ok with that tradeoff, but both sides feel relatively strongly about that particular choice.
- sAbakumoff 8y agoIMHO Angular in its recent versions is the most simple front-end framework ever. It's not even JS anymore. It's type script + reactive framework. Those 2 things makes programming extremely easy.
- tracker1 8y agoI keep repeating myself here... import React from 'React'; export default ({name}) => <p>Hello {name}</p>; Now duplicate in Angular and tell me it's simpler.
- equasar 8y agowhat's the point of this? I mean, Angular has its use cases aswell as React does. The point you are trying to achieve leads to nothing.
- tracker1 8y agoMy point was, angular is emphatically NOT the most simple component option. I, personally, can not think of a single use case where Angular (any version) is a better option than React, Vue or Polymer.
- sAbakumoff 8y agoIf I were to write such an app, html + vanilla js is more than enough.
- tracker1 8y agoThe point was in response to how "angular is the most simple..." where it is emphatically NOT so.
- nobleach 8y agoAfter having dropped Angular in the 1.3.x days, I was pleasantly surprised by how much it's changed. There are still a few mental concepts a new programmer would have to grasp (DI, observables, OO, type-safety) but overall, it's not too bad. I'm not sure I could call it "simple" though. Maybe I'm conflating simple with "easy". I'm of the few that still believe in Redux though. A one-way data flow, a finite state-machine, a new version of the state on every action.... that just defines "simple" to me. (not arguing at all)
- esistgut 8y ago> Angular is dead? Most don't even want to touch it again ( Great ). I don't get the Angular hate. I work with it daily and seems like a productive environment. I did some tests with React and Vue too and couldn't find any relevant advantage. Angular has batteries included tools for a lot of tasks: i18n, routing, isomorphic builds, web components, etc.. You get a cross platform mobile development environment too using NativeScript and a somewhat Angular-esque backend development framework using Nest.js. Seems like a good deal to me.
- chrisweekly 8y agoOne major reason is that Ng is its own thing. It's not JavaScript, nor HTML. Also, "batteries included" means buying into the whole monolithic framework. The React ecosystem requires more decisions, but also benefits from ability to pick and choose the right libraries for a given project. That said, Angular has some great parts, eg TypeScript and RxJS.
- remify 8y agoI think people will grow "hating" React because of the ease of use. Just like JS and PHP. I weep for the people that will maintain all the React mess that is being created. React is great, but the current ecosystem has too much liberty for too many junior dev using it. Angular being a framework has a lot to offer in term of maintainability and good practices.
- bhengaij 8y agoI can assure you that nobody on earth hates Js and PHP for "ease of use"
- chrisweekly 8y agoA couple good points. I agree w/ your 2nd and 3rd sentences. That said, I'm personally glad I invested in React and its ecosystem.
- jakelazaroff 8y ago
- suprfnk 8y ago> I really wish other languages communities do a similar survey, Python, PHP, Ruby, Java, Rust etc... It will be interesting to see the trend and big picture. 2018 state of Haskell survey results: https://taylor.fausak.me/2018/11/18/2018-state-of-haskell-survey-results/ https://taylor.fausak.me/2018/11/18/2018-state-of-haskell-su...
- jayflux 8y agoRust do a survey, https://blog.rust-lang.org/2018/08/08/survey.html https://blog.rust-lang.org/2018/08/08/survey.html
- blauditore 8y ago> Angular is dead? Most don't even want to touch it again Quite the opposite is happening from what I'm seeing. More people seem to move away from React towards Angular, but that's just my anecdotal observation.
- akvadrako 8y agoThat's just absurd - I have no love for React, but I can't imagine why anybody would adopt Angular now.
- equasar 8y agowhy? because you don't like it? Angular 2+ is the perfect transition for most of the developers who are used to do Desktop or Backend development and want to jump to front end stuff. In the enterprise, Angular 2+ is loved over any other framework. Is the best one? who cares.
- tracker1 8y agoOf the several dozen people I know who've used Angular and React, I know only one that would prefer Angular. Also the only one that would use Angular over Vue with experience in both.
- rpeden 8y agoAnd my biggest surprise is how Javascript turned from one of the most hated programming language ( besides PHP ? ) into being acceptable and loved. I enjoy modern JS myself, but I'd be careful about coming to a conclusion like that based on this survey. All it tells us is that JavaScript is very well liked among people who wanted to take the time to complete the State of JavaScript survey. People who dislike or hate it JS probably wouldn't see the value in completing the survey, so the happiness factor might be a bit biased as a result.
- mamcx 8y agoJS is not loved. Is hated less :) BTW, I insist that is a missed oportunity of clean JS even more (ala typescript, whit some of the wats removed). I don't know a language in a better position of improve by a HUGE margin than JS.
- deleted 8y ago[deleted]
- tracker1 8y agoGraphQL has a LOT of boilerplate to be able to use it. In many situations the effect is barely, if at all better over direct REST/RPC API end points. That has a lot to do with only 20% using it. I really wish more would migrate to Koa over Express, but I get it. As to the JS Love, I think there's still plenty of hate around.
- lostgame 8y ago>> And my biggest surprise is how Javascript turned from one of the most hated programming language ( besides PHP ? ) into being acceptable and loved. For real? I personally think JavaScript is awesome. I personally think jQuery is awesome. And I feel really alone a lot of the time in these opinions. I see a lot of disdain for JS here in comments in particular. I also see a lot of people browsing with JS disabled, and who complain when a site doesn't function without it.