Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Teacher requirements:
- know the difference between JavaScript and Java
- please
- we beg you -
@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.
-
@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. -
@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.
-
Voxera113886y@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. -
@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.
-
Voxera113886y@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/... -
@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... -
Voxera113886y@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.
Ouch ...
rant