r/programming • • Apr 10 '15

JavaScript will lead a massive shift in enterprise development

http://www.infoworld.com/article/2907190/javascript/javascript-will-lead-a-massive-shift-in-enterprise-development.html
0 Upvotes

16 comments sorted by

10

u/[deleted] Apr 10 '15

I hope not, javascript as a language is terrible. combined with the fact that a significant proportion of javascript developers are also terrible, you've got the makings of something worse than php left us in for years, albeit with less of a performance penalty

2

u/[deleted] Apr 10 '15 edited Apr 10 '15

I know this is the dominant opinion on /r/programming, but it doesn't change the fact that JavaScript is pretty much anywhere and only expanding. Ignoring it or hating it won't make it go away, and will likely only work against you in the market.

I'm a full-stack developer myself, though the vast majority of the code I write nowadays is JavaScript. And to be honest, next to C++ it's actually my favorite language. Sure I miss static types and proper interfaces sometimes, but I actually like its flexibility.

Anyway, I like to use the right tool for the job. Sometimes that's C++, sometimes that's Java, and depending on your domain it really can be anything, but increasingly often it's JavaScript. Not in the least because of its rich ecosystem.

Finally, you should realize (and fortunately the article recognizes this too, at least) that Java, C# and whatever won't go away because of JavaScript. Core systems and performance critical code will (indeed hopefully!) probably never be JavaScript. But step outside those systems, and you'll see JavaScript all around you. For that reason I'd say it's a good language for pretty much any serious developer to have in his toolbelt.

3

u/jbergens Apr 10 '15

the developers might be terrible because you and a lot of other developers who says they are great don't want to touch js. You can look at it as an opportunity instead, if you start working with js you might become one of the best js-developers very quickly.

3

u/Don_Andy Apr 10 '15

I think it's less that "good" developers don't want to touch JS but rather that JS is a language that's very forgiving and very easy to be "bad" in. So if a junior developer picks up on the JS hype and starts learning enterprise programming with it, it's very easy to pick up some bad habits that statically typed languages would punish you for straight away.

I'm not saying JS is inherently bad or automatically makes programmers bad. Just that it's a lot easier to make mistakes that don't look like mistakes and that you might never actually pick up on.

I personally love playing around with JS and think it's a nifty language, but coming from dotNET development I just can't live without static typing. If I ever needed to work with JS in an enterprise environment, I'd probably go with TypeScript.

0

u/skocznymroczny Apr 10 '15

No kidding, people love to hate on enterprise development, but in 10 years we might miss the good old times of PHP and Java.

1

u/[deleted] Apr 10 '15

Let me first say that the article is pretty terribly written. But I think its premise, Node.js taking hold (and fast) in enterprise development is definitely a reality, one which will only be strenghtened by articles (and the Forrester report it mentions) such as these.

1

u/remy_porter Apr 10 '15

What enterprises are we talking about here? Because I'm not seeing it happen in manufacturing, banking, or government. The biggest shift I'm seeing is that some government offices (in NYS) are jumping to Rails.

2

u/jbergens Apr 10 '15

aren't those the company types which are known to be slowest to adopt new technologies? Here is an old article about node usage. A lot of larger companies claim that they build faster systems using node. If that is true many enterprises will probably start to use it.

http://www.nearform.com/nodecrunch/node-js-becoming-go-technology-enterprise/

1

u/remy_porter Apr 10 '15

aren't those the company types which are known to be slowest to adopt new technologies?

They're also what I usually mean when I say, "enterprise". Ecommerce platforms are an entirely different animal- "enterprise" software, to me, is backend stuff. Supply chain management, accounting, shit like that. The stuff that actually handles the day to day operations of your business. Ecommerce is sales, which is obviously important, but it's just a thin sheen atop the ocean of far more complicated software.

I have a term: iceberg development. This is the huge pile of development work that happens "below the waterline", completely inside of organizations, with no public facing functionality. It's bigger and more massive than the software you do see, handles more money than you'd believe, but nobody ever really talks about it. It's slotted inside of a gigantic bureaucracy, which means everything changes on geological time scales. And, like an iceberg, if you aren't aware of how much is happening down there, you can sink your ship.

And it's worth adding that while you can roll out a prebuilt ERP, those products are so general as to be useless for most organizations- you have to treat them like a framework so that you can build solutions customized to your organization's needs. I've seen large companies invest more development effort in hacking an ERP to suit their business than they do on anything else.

1

u/jbergens Apr 10 '15

I think enterprise is any large company. I know there are a lot of code in the backends that is not visible to the outside. There is still a chance that a lot of these enterprises could save money by writing new things on Node instead of Cobol or whatever they are using right now. For really large systems there is of course hard to justify a complete rewrite, meaning they will probably not rewrite everything they have done to Node the next 2 years. I still think static typing helps and I know organizations that have rewritten old Cobol code into .NET or Java and succeeded with getting better performance and higher productivity. Maybe they could have gotten even better performance and productivity by using for example Dart?

1

u/remy_porter Apr 10 '15

I think enterprise is any large company.

But now we're getting into the definition of large. I'd say you're not a large company until you're in the range of 10,000 employees.

Maybe they could have gotten even better performance and productivity by using for example Dart?

A lot of times they don't get a say in the language. If you buy into SAP, you either build "parasite" applications (in the language of your choice, but they don't integrate well with the underlying platform), or you build directly into SAP's stack. Pick up Oracle's ERP? Hope you like PL/SQL and Oracle Forms and Reports. Oh, you're a Microsoft shop? Then you're probably using SharePoint, and all of the sudden, you're implementing terrifying SharePoint applications using products like K2. And so on…

5

u/[deleted] Apr 10 '15

JavaScript and Node.js will change corporate technology like Java did, according to a Forrester report

Whoever wrote that report needs to be beaten on the head with a trout.

1

u/pls_fuck_me_nao Apr 10 '15

i hope not. I love using .Net, Web api, Ef and typescript its super easy to develop with and beats every interpeted language out there in computing speed.

1

u/x-skeww Apr 10 '15

JavaScript is fine for small things but it doesn't scale very well with the size of the codebase or the size of the team. Java does this. It has good tooling to make that work. That's one of the main reasons why it became popular.

This is also the reason why so many to-JS languages exist. The Closure Compiler, GWT, Dart, and TypeScript were all created to make it easier to write bigger "JavaScript" applications.

0

u/nickguletskii200 Apr 10 '15

Uuuh, nope. It's much faster to develop a modern Java webapp than it is to deal wiht Node.js.

3

u/jbergens Apr 10 '15

The only comparisons I have read where they put a team doing the same project with java and javascript was actually done much faster with javascript. I do agree that some larger projects probably needs static types to stay productive over many years but you could use TypeScript, Dart or similar on Node.