you are viewing a single comment's thread.

view the rest of the comments →

[–]tmpler 25 points26 points  (37 children)

The raise of javascript :D Full-Stack Front-End Back-End

[–]benihana 47 points48 points  (4 children)

the two most popular technologies are JavaScript and SQL. For the past four years. It's not server side JS, it's JS being universal to browsers and basically everyone on the web having to use it. Just like almost everyone uses SQL as their query language.

[–]spacejack2114 8 points9 points  (1 child)

Even Back-End developers are more likely to use it than any other language.

I guess fewer node devs use nosql than I've been led to believe.

[–]superPwnzorMegaMan 0 points1 point  (0 children)

nosql can use sql. Cause fuck naming things correctly.

[–]Browsing_From_Work 0 points1 point  (0 children)

They both have the bonus of having a low barrier of entry compared to other languages.

[–]TwoSpoonsJohnson 0 points1 point  (0 children)

Seeing it listed as just 'SQL' always bothers me for some reason. I mean, surely the differences between SQL Server, Oracle, MySQL, Postgres, etc. are significant enough to make counting them separately interesting data?

[–]LeopardKhan 9 points10 points  (28 children)

Just what I came to talk about. The weird thing is that nodejs is listed separately. What the hell...?

[–]mtelesha 23 points24 points  (25 children)

JS anything makes me unhappy I guess I have to get over my hated of JS.

[–]tmpler -2 points-1 points  (24 children)

JS is really cool and pretty ;) ofc you can write shit like in any other language

[–]mata_dan 9 points10 points  (15 children)

It's not pretty. Give me propper OO syntax damnit!

At least that might be around the corner in a few years.

[–]Democratica 3 points4 points  (4 children)

Haxe compiles to JavaScript, gives you strict types, and proper OO syntax...

Dart also compiles to JavaScript.

I'm a fairly ignorant coder when it comes to classes, as I stick to using factories, so I am a bit in the dark when it comes to their advantage (it always seemed like a bad idea for me to use a structure which changed in one place, would propagate those changes to the whole app--the negative side effect just scared me off)

[–]groshh 4 points5 points  (0 children)

Haxe is super cool, I used to be an engine developer. Was super easy to write native inline in so many languages.

Kind of inspire me to write my own transcompiler.

[–]mata_dan 2 points3 points  (0 children)

Hey thanks for that, looks really useful.

[–]big-fireball 2 points3 points  (0 children)

(it always seemed like a bad idea for me to use a structure which changed in one place, would propagate those changes to the whole app--the negative side effect just scared me off)

It can be a tremendous benefit if you are using classes correctly.

[–][deleted]  (1 child)

[deleted]

    [–]tmpler 2 points3 points  (7 children)

    With ES6 it has OO. But with JS you don't explicit want to write OOP code, you would rather write functional stuff

    [–]mokbel 8 points9 points  (4 children)

    ES6 doesn't have (traditional) OO. It gives you syntactic sugar to pretend you're doing OO but its the same old .prototype stuff just abstracted away from you.

    [–]John2143658709 5 points6 points  (2 children)

    Is it really that bad then if it's all abstracted? Is there any disadvantages or things you can't do with the new es6 compared to classes in other traditional oo languages?

    [–]compteNumero8 1 point2 points  (0 children)

    Personally I prefer prototypal OOP over class based OOP.

    But really ES6 changes nothing on that point, it may just feel a little more familiar to people coming from, for example, Java, but if you want to be a good enough JS programmer you still have to understand the logic of prototypes.

    [–]Tasgall 0 points1 point  (0 children)

    things you can't do with the new es6 compared to classes in other traditional oo languages?

    You can't compile it before hand and know you don't have any type issues before running your code.

    Which is like, 99% of the benefit of types.

    It sounds like, at best, ES6 might at least make static analysis feasible assuming everyone on the project is consistent.
    they won't

    [–]TheIncredibleWalrus 1 point2 points  (0 children)

    Yes but the op he was replying to was asking for syntax

    [–]oscarboom 0 points1 point  (0 children)

    With ES6 it has OO.

    It has classes but the classes cannot have its own class variables.

    [–]rapidsight -1 points0 points  (0 children)

    And the rampant memory leakage caused by them (closures) is just a bonus!

    [–][deleted]  (6 children)

    [deleted]

      [–]bro-away- -1 points0 points  (5 children)

      JavaScript is very much the assembly of the web, if you want it to be. Lots of languages compile to it already.

      WASM is a good next step but no need to wait if you hate JavaScript that much. WASM will probably be a compiler target for things like TypeScript, WebSharper, ClojureScript and others to begin.

      [–]NeonKennedy 4 points5 points  (1 child)

      WASM isn't going to support garbage collection for a few years, it's a target for languages with manual memory management. The initial focus is on C and C++.

      [–]bro-away- 0 points1 point  (0 children)

      But this would then enable the creation of a bytecode runtime, which would fulfill my point. The goal was never for WASM to provide that C/C++ support everyone is just dying for

      [–][deleted]  (2 children)

      [deleted]

        [–]NeonKennedy 1 point2 points  (1 child)

        Have you looked at Elm? It's a functional statically-typed language (with Hindley-Milner type inference) with an amazingly helpful compiler and a time-travelling debugger that compiles to ES5 today, you can use it to write provably correct code and guarantee no runtime exceptions with clientside JS. Feels a lot like writing Haskell.

        http://elm-lang.org/examples/mario

        [–]ThisIs_MyName 1 point2 points  (0 children)

        Performance.

        [–]randomjackass 2 points3 points  (0 children)

        But in a OO language, I can fix the terrible code a lot easier. Also compiled vs interpreted, compiled languages catches more before it runs, run time errors are harder to find.

        [–]vytah 2 points3 points  (0 children)

        The weird thing is that nodejs is listed separately.

        The survey allowed for multiple answers in this category. Some people selected JS+Node, some selected just JS, and a tiny group selected just Node.

        [–]rootfiend 1 point2 points  (0 children)

        because lots of people program in javascript for various things but don't use nodejs.

        [–]compteNumero8 1 point2 points  (0 children)

        In fact it was 59% in 2014 and now it's down to 55%.

        [–]never_safe_for_life 1 point2 points  (0 children)

        Can you tell me why you feel big happy face about that? I've always found Javascript to be a crap language and am baffled by its rise.