PrintFavLangLOL

Discussion in 'Programming & Software Development' started by SillySailor, Apr 19, 2018.

  1. SillySailor

    SillySailor Member

    Joined:
    Sep 6, 2012
    Messages:
    9
    There's a weird and kind of cool trick that JavaScript plays on oldies who started learning to code with C. It looks nice and familiar. But of course, that's where any similarities end. JavaScript seems to be built from simple blocks, and as we all know, the simplest of blocks when combined, can lead to crazy complexity pretty rapidly.

    To me, that sums up JavaScript, my favLangLOL. It provides the simple mechanisms to build in creative and free ways that exceed many other languages.

    What's yours?
     
  2. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    698
    Location:
    BRISBANE
    My favourite language is Common Lisp, it's better than yours.
     
  3. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    33,151
    Location:
    Brisbane
    Can it be done in BASH? Yes: do it. No:

    Can it be done in Python? Yes: do it. No:

    Not worth doing.
     
  4. OP
    OP
    SillySailor

    SillySailor Member

    Joined:
    Sep 6, 2012
    Messages:
    9
    I've seen a little bit about Lisp, it's functional too right?
     
  5. w0ng

    w0ng Member

    Joined:
    Dec 17, 2006
    Messages:
    125
    Location:
    Sydney
    Can it be done in Vim? Yes: do it. No:

    Can it be done in JavaScript with Chrome DevTools? Yes: do it. No:

    Can it be done in BASH? Yes: do it. No:

    Can it be done in JavaScript with Node.js? Yes: do it. No:

    Can it be done in Python? Yes: do it. No:

    Not worth doing.
     
  6. yoink

    yoink Member

    Joined:
    Feb 19, 2002
    Messages:
    3,427
    I've been a JavaScript developer for a long time now, and have really been enjoying the ES6 (and newer) additions, but it really is starting to look more like C. Point in hand:

    HTML:
    myArray.filter(entry => {
        return entry.included
    })
    Works in JavaScript and C# equally well.
     
  7. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    5,929
    Location:
    Briz Vegas
    perl CPAN dependency hell
    <drop mic>
     
    Last edited: Apr 24, 2018
  8. Hater

    Hater Member

    Joined:
    Nov 19, 2012
    Messages:
    2,423
    Location:
    Canberra
    I'm a PowerShell dev, I should progress to C but I keep just doing everything in PowerShell.

    :(
     
  9. cvidler

    cvidler Member

    Joined:
    Jun 29, 2001
    Messages:
    11,284
    Location:
    Canberra
    Java belongs nowhere.
    biggest PITA I come across regularly, that simpleness praised in the OP, leads to bad coders and bad code.
     
  10. PabloEscobar

    PabloEscobar Member

    Joined:
    Jan 28, 2008
    Messages:
    12,060
    Whats my alternative for "write once, run anywhere"?
     
  11. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    698
    Location:
    BRISBANE
    Golang
     
    GumbyNoTalent likes this.
  12. OP
    OP
    SillySailor

    SillySailor Member

    Joined:
    Sep 6, 2012
    Messages:
    9
    I was referring to JavaScript, which is not related to Java. JavaScript allows for functional programming and doesn't need classes to share functionality around. I'm not a programming expert, but I recommend having a close look at JavaScript.
     

    Attached Files:

  13. deepspring

    deepspring Member

    Joined:
    Jul 8, 2002
    Messages:
    3,601
    Location:
    Maitland, NSW
    Javascript is certainly up there now. Seeing lots of React and Angular apps around. Pretty soon it's going to be impossible to get away with just whipping up interfaces with just HTML and CSS.

    Javascript isn't my favourite language, in fact you could say I loath it. But that is only because I remember how shit and useless JS 1.2 was.

    Edit: my favourite language is python, c as a close runner up.
     
    Last edited: Apr 29, 2018
  14. Wolfje

    Wolfje Member

    Joined:
    Jul 9, 2007
    Messages:
    932
    Location:
    Brisbane
    C# is my oldest language, but I will never use it for personal projects anymore unless I have no choice. I work with TypeScript professionally now and it's probably my most preferred language for doing ultra high-level doodads as it's almost the perfect balance between strict and dynamic - its linting is first-class and you can tell they've really put effort into helping people write decently structured branching logic. It also allows me to do this in a non-Microsoft environment (sans Visual Studio) which I prefer to develop in.

    For stuff that I need done in constant time I prefer C, but only using libtalloc for hierarchical memory allocation so that object tracking is easier. It saves a lot of headaches dealing with double-frees and leaks. my brain tends to lean towards object-oriented so it's a pragmatic approach to automatic freeing. C++ forces me to think about the semantics of the language too much and I prefer to stay right away from it.
     

Share This Page