back to article JavaScript is everywhere. So are we all OK with that?

The JavaScript programming language has been in the wars over the years. Oft derided for security concerns, its ‘amateur’ web designer following and for ‘borrowing’ its name from the beefier brew that is Java itself, it has been a rough 19 years or so. Despite all this, JavaScript is still on every 'predictions for 2014 in …

COMMENTS

This topic is closed for new posts.

Page:

      1. Michael Wojcik Silver badge

        Re: Getting started in programming

        Personally I tell people to start with Python. Sure, it's not real popular

        It's very popular in the data-and-analytics domain, which is a growth area, so it can be quite a practical choice. If you know Excel1, Python, R, and Julia, you have most of the programming skillset for analytics. Obviously there's a ton of domain knowledge (statistics, machine learning, and application domains) still required, but you'd be on your way.

        1Yes, I'm aware Excel is not a programming language per se. And personally I loathe the thing. But Excel, and particularly pivot tables, are widely used by the analytics crowd, and if you want to argue for a different tool you at least have to understand the enemy.

  1. Anonymous Coward
    Anonymous Coward

    Javascript is the VB6 of the 2010's

    Just because something is popular does not mean that is better. Javascript does have some strengths (closures) that make it attractive for some uses, but in general Javascript has a number of big nuances that make it unsuitable for projects that require long term maintenance or are of significant complexity. It is, like VB6, extremely accessible and supported by a wide ecosystem of tools and technologies. But it does not have long term future (long term like C, C++ or Perl)

    Javascript was created out of the desire to make web pages dynamic and have a low learning barrier, not as a system level, server level or any kind of serious usage.

    My biggest pet peeves: lack of proper modularization and scoping at higher levels, lack of proper multithreading constructs and being typeless. The first prevents any serious development of components, the second any serious system level development and the third prevents any serious large scale systems. And by serious I mean robust enough to withstand the test of time.

    None of that means that it can't be done in Javascript, just means that it will take way more time and effort than doing it than with some other alternative. Yes, there are some large JS component libraries (jQuery), some dare to write server side (Node.js), and even some attempt to write Office like apps (Google Docs) But all these suffer from problems of stability, integration, performance and pale in front of rivals created in other languages better designed.

    And also none of that matters in the web world, where (a) Javascript is the only universally available client side language so you don't have anything else to choose and (b) the most common course of action is to rewrite things from scratch from time to time. But trying to make an argument from this about JS being good outside client side web pages is... plain wrong.

    And don't even get me started in PHP....

    1. dogged

      Re: Javascript is the VB6 of the 2010's

      It's better than VB6. I mean, you can actually do inheritance and even polymorphism in it if you know how prototype works. It's ugly but you can.

      The lack of type-safety is what really annoys me. I keep meaning to learn TypeScript (which is a superset of JS which compiles to plain JS) as a means of overcoming this horrible flaw but... never do find the time.

    2. Alan Bourke

      Re: Javascript is the VB6 of the 2010's

      The lack of scoping is a total PITA

    3. dajames
      Unhappy

      Re: Javascript is the VB6 of the 2010's

      ... it does not have long term future ...

      Oh, I do so hope you are right!

      Unfortunately history teaches us to expect that languages that gain the sort of market penetration that Javascript now has will be around for a long time to come -- however good or bad they may be.

      Programming languages should, above all else, be easy to read and easy to maintain. This suggests that the language should have a small syntax and a large supporting library. Java and Python (among others) get this about right -- Javascript doesn't.

  2. Tom 38

    JS is like C++

    In that, yes it is awesomely great and powerful, and you can make gloriously beautiful code with it.

    The most important word in that sentence is "can". Most users of JS don't, however.

    The style of JS is largely driven by the framework you are using. JS written for Prototype will look wildly different to JS written for jQuery, which again will look wildly different to "stock" ECMAscript.

  3. Anonymous Coward
    Anonymous Coward

    Oh dear

    > Mostly everyone loves (or at least likes) JavaScript..

    hahahahahahaha

  4. fortran

    Why do I have NoScript?

    I hate going to a site that comes up as a blank, having to go to the NoScript control, and find that page has javascript for 2 million different web sites on it. Or visiting newspaper sites that only display content with the help of javascript (then I often find w3m works just fine).

  5. Leona A

    I HATE JavaScript

    with a passion!

    I hate its chaotic coding style.

    I hate its loosely typed Objects.

    I regard it as a 'lazy language'.

    I just can't my head around, or get on with, it at all.

    But since our workplace will be replacing our current front ends with it, I guess I will have to force myself to get used to it.

    Oh and not to mention its still totally inaccessible to Screen Readers and alike, but no one cares, so much for WAI a?

    1. captain veg Silver badge

      Re: I HATE JavaScript

      And this is one of the reasons I love it.

      The poor thing is much misunderstood. It has taken time (and the writing of Doug Crockford), but I now can get my head around it, and get on with it very well.

      Which means continued gainful and enjoyable employment. Ta.

      -A.

    2. M Gale

      Re: I HATE JavaScript

      Oh and not to mention its still totally inaccessible to Screen Readers and alike

      Ahem.

      Same as when designing a site to be "accessible" via pure HTML, there are steps to be taken to ensure the screen reader interprets your dynamically-created content correctly.

      Beyond that though, Javascript is very accessible to screen readers.

  6. William Boyle

    Crap!

    I have 30+ years as a professional software engineer. I have been studying JavaScript lately and all I can say is this - GAH! From whay I have heard, it was originally written by one guy on one day, and it shows! I'd reather hammer a nail in my head than use it, but it seems in this age of web-insanity, it is necessary! I think I may write an alternative language for web development - something that makes some sense! I like php to some extent (it is more-or-less object oriented), but it is also a bit of a kluge. I used it to build a mobile phone web browser emulator, and had to fix some serious bugs that I posted to the development groups, and had them say "not a bug"... right! That and $5 will get you a nice latte at Starbucks!

    1. M Gale

      Re: Crap!

      Calling PHP "a bit of a kludge" is like calling the Nazi campaign in Russia "a bit of a foul up".

      Replace "bit of a" with "monumental" and you're getting closer with both. Not that PHP isn't very useful, but it does have its... quirks.

      Can I has Godwin nao?

  7. itzman

    Mostly this programmer HATES javascript.

    apart from that no comment

  8. Ioannis

    I used to hate JS when I was younger and not as wise; but with time I've come to realise that most of the times it's not the language that's schizo, it's the way it's been employed. JS has been much maligned because in the hands of web designers, it became what happens to a hyperactive 5yo with a bunch of Lego and superglue.

    Now, with Crockford's book and a careful re-examination of the language and the approach to using it, I've come to appreciate it, especially when used in the context of Node. Yes it still has it's WTF moments ( https://www.destroyallsoftware.com/talks/wat ) but every language does. All that's required to make it shine is a considered and careful approach.

  9. Anonymous Coward
    Anonymous Coward

    If we had Python in the browser

    Then the web would be a much better place.

  10. Spoonsinger
    Windows

    The whole message thread to this point makes me feel dirty.

    Off for a shower down via a large gin and tonic.

  11. Pascal Monett Silver badge

    "If I was just getting started in programming, and I didn't know what language to pick...."

    I wouldn't pick JavaScript because I would not know it existed.

    I'd more likely pick Visual Basic because I've heard of that in school.

    Of course, if I were a somewhat enlightened individual I would use the web (who am I kidding? I'd Google it) and search for "programming language", intent on finding what is the best language for beginners.

    And I'd probably end up choosing Visual Basic anyway, once I had been allowed to leave the hospital after my trauma treatment of having read all the bile that is thrown around on everyone else's programming language and had managed to decide to learn programming in spite of all the hate, condescendence and mockery that abounds when commenting programming languages.

    But I doubt that a beginner programmer is going to go for JavaScript since JavaScript is nothing without a browser and HTML, CSS and probably PHP, and all that is a bit much for someone who doesn't even know Hello World yet.

    1. Michael Wojcik Silver badge

      Re: "If I was just getting started in programming, and I didn't know what language to pick...."

      Wojcik's Law of Diverging Programming Language Quality:1

      Every programming language is the worst, except for at least one other language.

      1Which I just now invented.

    2. Michael Wojcik Silver badge

      Re: "If I was just getting started in programming, and I didn't know what language to pick...."

      JavaScript is nothing without a browser and HTML, CSS and probably PHP

      Even in its natural habitat, JavaScript requires nothing more than HTML - not CSS, and certainly not PHP. And there are JavaScript shells where the language can be learned interactively with no HTML in sight (though of course eventually you'll want HTML to explore using the DOM).

  12. Anonymous Coward
    Anonymous Coward

    Actionscript just repurposes Javascript!?!?!?!

    Not at all, I work in Banking and implement Flex based trading systems and Javascript/Chromium based Trading systems. I can tell you for nothing that AS3 is a completely superior language to JavaScript. It is strongly typed and has more in common with Java than it does javaScript. True AS3 is a dynamic language, supports functional programming, and can be used like a scripting language. But AS3 is so much more.

    It is sad that the industry is casting aside AS3 - things like TypeScript profess to bring to Javascript some of the power of AS3 - but this author quite clearly has not worked with ActionScript - or at the very least has not done so since AS1 & AS2.

  13. DerekCurrie

    ECMAScript is the name; JavaScript is a quaint old sentimental name we can't give up

    These days, 'JavaScript' is just a quaint old sentimental name that proves how stupid marketing morons (versus marketing mavens) can be when the put their minds to it. It was invented by Netscape as 'Mocha', changed to 'LiveScript', then renamed 'JavaScript' after some jerks from Sun Microsystems and Netscape decided it would be RadiKewl to make it sound like 'Java', the Sun programming language, despite having no relationship to it whatsoever.

    Then 'JavaScript' went mongrel and has remained that way ever since. Microsoft vomited in their own code, imaginatively called 'JScript'. Adobe egested their own code, called 'ActionScript'. Chaos ensued. Ecma International took control of the situation and hammered out an actual standard, officially called ECMAScript. 'JavaScript' refers only to the original old source core of ECMAScript.

    Meanwhile, despite ECMAScript being a standard, even more mongrel code calls are consistently mated into the mess, causing no two web browsers to consistently render ECMAScript the same, returning us back into a state of chaos.

    The Biggest Fattest Problem with ECMAScript has always been security. There isn't any. Enough said.

    1. Michael Wojcik Silver badge

      Re: ECMAScript is the name; JavaScript is a quaint old sentimental name we can't give up

      'JavaScript' refers only to the original old source core of ECMAScript.

      Not true. It's still the official name of Mozilla's ECMAScript implementation.

      And, of course, it's still by far (modulo capitalization) the most commonly used name for ECMAScript implementations in browsers, regardless of vendor. The English language is not mandated by standards organizations. While "ECMAScript" is indeed the official name of the language, the de facto name remains "JavaScript" simply because that's what most people call it.

  14. Wommit
    Pint

    WOW

    Beer - Check

    Popcorn - Check

    More beer - Check

    OK now to read these comments.

  15. Anonymous Coward
    Anonymous Coward

    All sooo angry...

    A lot of talk on here about jQuery, YUI etc. and not much mention of some of the better frameworks coming out, employing MVC design pattern, well structured code, file organisation and a huge emphasis placed on TDD (see angularjs, backbone etc) which I think might be the driving factor behind this resurgence.

    Good web development still espouses progressive enhancement/graceful degradation and should work without javascript as stated by many angry individuals. Unfortunately most users aren't as well versed as the readership here and will want to know "why doesn't this site have an amazing fade effect on submitting the form before presenting me with a friendly success message like my favourite site does and why does the WHOLE PAGE reload? which is clunky and ugh and I'm going to use a different service."

    As for the person who wants to review my code before he allows his browser to download it, it will have been concatenated and pushed through yuicompress to improve download time, so enjoy sifting through that.

Page:

This topic is closed for new posts.

Other stories you might like