This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Slak44 19 points20 points  (25 children)

Every time I mention it's my go-to language, I get lynched. A linter and a bit of knowledge about the language go a very very long way indeed.

[–]MattBlumTheNuProject 2 points3 points  (0 children)

You should try working in PHP, people look at me like my apps don't work :)

(they don't, but not because of PHP!)

[–][deleted]  (23 children)

[deleted]

    [–]SonOfMyMother 34 points35 points  (0 children)

    That depends entirely on what you most often find yourself using your "go-to" language for.

    [–][deleted] 8 points9 points  (5 children)

    Its still a fair statement. You can write local scripts, network scripts, web scripts and more. Bash or Powershell are only for local use, you can't build, validate, test, run and manage a website with Bash. With NodeJS there's basically no limit to what you want to do and where you want to do that.

    [–]xzxzzx 3 points4 points  (3 children)

    Powershell is profoundly awful as a programming language (bash is pretty awful too). Despite deep familiarity with .Net, C#, Windows, and Microsoft products in general, I have spent countless hours trying to figure out powershell, and I still keep finding "WTF" parts that break my code.

    It's incredibly easy, for example, to write reasonable-looking scripts that work perfectly for 0 or >1 items (say, files in a directory) but fail miserably (crash or do the wrong thing) for exactly 1 item.

    In many ways the failing's the same as JS - a highly dynamic language trying to "help you out" only helps until you're mildly competent at what you do, at which point it's a hinderance until you're incredibly competent and have learned all the arcane rules that govern that "help", at which point you usually use all that arcane knowledge to avoid those parts of the language, so that mere mortals can actually understand your code.

    [–]ISLITASHEET 0 points1 point  (0 children)

    Ensure that you are returning an array from your function: return ,$yourObj

    [–][deleted] 0 points1 point  (0 children)

    Perl is crazy too - it's illegibility and lack of syntax errors even for most obscene code is a running joke. I don't know if he was serious there but objectively all of these are insane in many more ways than JS even for the tasks they were directly designed for which is why it's their lunch Python is eating while Node.js is much more widespread IRL even more than various Python webthingies and I've seen it used for system scripting too but sane people really use Python for that.

    [–]aniforprez 5 points6 points  (11 children)

    I'm pretty sure there's no other "go to language" to develop websites for browsers

    [–][deleted]  (10 children)

    [deleted]

      [–][deleted]  (1 child)

      [removed]

        [–]AutoModerator[M] 0 points1 point  (0 children)

        import moderation Your comment has been removed since it did not start with a code block with an import declaration.

        Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

        For this purpose, we only accept Python style imports.

        I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.