48

Ouch ...

Comments
  • 2
    Both of them are loosely based of a C language, its not that weird
  • 9
    Teacher requirements:
    - know the difference between JavaScript and Java
    - please
    - we beg you
  • 3
    @Codex404 syntax wise they're all c-like - I agree. But somehow I have the feeling that they're doing the classic javascript == java mistake.
  • 0
    @JKyll 😜
  • 1
    @onkelhotte personally I don't see it that way, its asking for languages similar to Java.
    I'm assuming syntax wise and the C# would be fine to.
    Why I take this assumption, is because knowing one language well enough its relatively easy another language with similar syntax.
    Learning lua or python is a bit more difficult.
  • 1
    @Codex404 valid point. Although besides syntax in my opinion paradigms are also important. Java‘s OOP is different than JavaScript's prototype system. But to be fair I haven’t worked with modern JavaScript versions a lot.
  • 1
    @onkelhotte if you start building more complex programs the differences become much more visible.

    And to claim javascript is based on java is plain wrong as it was developed on its on and only once finished it was named javascript to try to ride on the success of java.
  • 1
    @Voxera you are tagging the wrong person and no one says java is based on JavaScript. They state JavaScript is based on java. Which according to your description is true. They made it a bit similar syntax wise and name wise to attract java devs.
  • 1
    @Codex404 at first release it was names livescript and then changed.

    And while it uses some syntax I would not say its based on Java, it was designed in 10 days by Brendan Eich and he based it on scheme but adopted java syntax on demand from the boss.

    So its not based on java but on scheme.

    https://en.m.wikipedia.org/wiki/...
  • 1
    @Voxera "The result was a language that had much of the functionality of Scheme, the object orientation of Self, and the syntax of Java. "

    It says it here literally, it is based on Scheme, Self and JAVA

    Hmm what that last language I mentioned you ask? Its java, the thing this whole post is about..

    I like how you are giving me arguments against your point...
  • 1
    @Codex404 Ok, yes the syntax was based on java, but the features derive mostly from the other two and features in my opinion is much more important.

    C# syntax it very much like javascript but feature vice its much more like visual basic and for many programs you actually could just transcribe from one to the other without changing any structure.

    So in a way they are technically correct but not where it matters.

    If you need a java developer you would be better of with one knowing visual basic or c# than javascript since the concept of classes and types are more similar.

    At least before es6 which adds real classes.

    And especially since many pure javascript developers are used to browser based programs.

    But I guess we have different opinion on what based on entails and that is good, opinions should never stand unchallenged :)

    Also, thanks for the correction regarding Self, I had missed that.
  • 2
    @Codex404 thank you for your sanity
Add Comment