r/programming • • Oct 03 '16

How it feels to learn Javascript in 2016 [x-post from /r/javascript]

https://medium.com/@jjperezaguinaga/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.758uh588b
3.5k Upvotes

852 comments sorted by

View all comments

Show parent comments

34

u/killerstorm Oct 03 '16

You're talking about language features.=

No, I'm talking about tools. Language features ended here: "learn language basics".

This article is talking about all the various frameworks, and libraries and a lot of times are competing in the same space.

The article mentions many different things, including tools (e.g. webpack is analogous to a linker in C++ world).

As I mentioned, I can go on... So let's consider various ways to work with strings in C++:

  1. you can use C standard library functions

  2. STL

  3. if you use MSVC, you might use CString or AtlString

  4. Borland's counterpart is AnsiString

  5. many projects define their own string class

Suppose you want to do an UI. Plenty of options:

  1. MFC

  2. C++ Builder's Delphi-style UI

  3. Qt

  4. wxWidgets

  5. WinAPI

As somebody who used both C++ and JS (also Common Lisp, Haskell and PHP) I'd say JavaScript people have it an easy way...

Even languages to an extent es2015 vs typescript vs es5 vs yes i remember when coffeescript was a thing.

Same shit with C++: if you use an older compiler you can't use modern features. Many compilers have bugs which make them incompatible with latest & greatest libraries, such as boost.

I've seen both projects which require bleeding edge toolchain, and ones which depend on an old compiler and cannot use modern libraries. Modern libraries can dramatically change coding style, it's like a completely different language. (Seriously, it even looks differently.)

9

u/[deleted] Oct 04 '16

You do have a point there with the complexity of the C++ ecosystem but I don't think it's comparable. Most of the C++ tools, libraries or frameworks you mention have been arouond for years, heck, decades.

Whereas in JS each new framework/library/tool is a mayfly with the prospect of 6 months of "coolness" and then the rest of its miserable lifespan as a "legacy" replaced by yet another cool mayfly project.

11

u/cmdrNacho Oct 03 '16

I get your point and these things are found in every language. In C++, Java, Ruby, Scala there are a list of best practices and what sort of end up being the defacto standard. In JS this changes very frequently almost yearly and often multiple at the same time.

7

u/killerstorm Oct 03 '16

Believe it or not, but we had same kind of a problem with C++ circa 2005. I worked with a guy who was a big fan of latest best practices. He introduced new stuff on a weekly basis.

E.g. when we started a project we've decided to use ACE framework for concurrency and networking and boost::shared_ptr for memory management. This is reasonable.

A bit later this guy told me that ACE isn't cool enough by itself, and we must use his custom concurrency framework based on boost signals and whatnot. OK...

Then it turned out that writing app in C++ isn't cool anymore, we must integrate with Python. So we used Boost Python toolchain, which seriously increased the complexity of build process and build times...

16

u/cmdrNacho Oct 03 '16

Again its not that it doesn't happen its just in JS it happens sooner and faster. Javascript over the last few years went from , jquery, backbone, angular1, ember, angular2, react. Python the defacto standard has been django, ruby has been rails, java has been spring. Yes there are other frameworks but these frameworks have been very long lived and are still considered the defacto in their respective language.

5

u/PostHumanJesus Oct 04 '16

I think you just hit the entire nail on the head.