JS is cool kid on the block, easy to learn and use. I like it though I don't have many chances to use or master it. If you ever use Java or C to develop application you will feel the pain and embrace JS.
the use of "class" in JS
Learning JavascriptJS was built for web development. In the begining nobody had in mind HTML 5 model etc etc. Thus it was a flexible, not so serious or strict language. It was a fast tool to make things happen on a webpage.
JS is NOT so easy to learn. It is easy to learn how to make things happen with JS. Yes.
But coding the right way is not so easy and that's becaue JS allows you to create spaghetti code.
It is easy to make a mess using JS, while Java does not allow that.
For example, in JS you can create objects without having a class declared. You can at will add or remove properties from them.
I can think of a lot of problems emerging on huge projects just because of that, if things are not made properly.

Java is irrelevant to Javascript.
I can say that Java is no pain at all, it is actually a great language to build code in it. But it has not the best performance.
Java has classes while JS had only prototypes.
JS is built around a different philosophy. It is more popular today, while took that name becaue Java was popular back then. Anyway JS is not suitable for first language. Meanwhile at the hands of an expert it rocks!
C++ is faster but it is a real pain. I give you that.
C is not even object oriented, so we can not compare it to JS. Maybe you meant C++ or C#? By thw way, C# really looks like Java to me. 🙂
JS is NOT so easy to learn. It is easy to learn how to make things happen with JS. Yes.
But coding the right way is not so easy and that's becaue JS allows you to create spaghetti code.
It is easy to make a mess using JS, while Java does not allow that.
For example, in JS you can create objects without having a class declared. You can at will add or remove properties from them.
I can think of a lot of problems emerging on huge projects just because of that, if things are not made properly.

Java is irrelevant to Javascript.
I can say that Java is no pain at all, it is actually a great language to build code in it. But it has not the best performance.
Java has classes while JS had only prototypes.
JS is built around a different philosophy. It is more popular today, while took that name becaue Java was popular back then. Anyway JS is not suitable for first language. Meanwhile at the hands of an expert it rocks!
C++ is faster but it is a real pain. I give you that.
C is not even object oriented, so we can not compare it to JS. Maybe you meant C++ or C#? By thw way, C# really looks like Java to me. 🙂
I do agree with that let's also thinks JS got created in 10h lol well designed
originally this was supposed to be a programming for show text due the fact it's read both strings and digit as a object data.
but this was supposed to be designed to be a text reader....and after it's got weird in the way lol
so this why a lots of programmer say it's have so MANY irregularity in JS it's because it's was not half supposed to be a true oriented language.
originally this was supposed to be a programming for show text due the fact it's read both strings and digit as a object data.
but this was supposed to be designed to be a text reader....and after it's got weird in the way lol
so this why a lots of programmer say it's have so MANY irregularity in JS it's because it's was not half supposed to be a true oriented language.
I am not sure why you think Java is easy to learn than JS, if you have experience develop enterprise application in Java, or JS? In JS, when you declared variable you simply do var identifier. In Java you would do strict type follows an identifier. In JS, you don't have interface, in Java you have class implements interface, class extends to another class and implement interface. Enum in JS is built in the objects. In Java you do
public enum Day { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }There is no annotations in JS, in Java you have multiple types of annotations. Some annotations deal with Run time which requires some level of understanding JVM. In JS you have functions as closures. In Java you have lambda expression, inner class, static inner class. JS does not have generic class. In Java you have generic class which adds complexion to existing class. In JS you only have 5 primitive type and a reference type. In Java you have 7 primitive types. In JS you want to print a message all you do is alert("message"); embedded in your browser . In Java you do
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); }}I wonder how many beginners know this line means ?
public static void main(String[] args)Java is full enterprise complex language. While JS beside functions there is not much after. JS prototype at first you find it confusing but that takes a week or so to grasp the concept. Java is verbose syntax you will do a lot more typing to do the same thing.
How many understand this simple Java annotation?
@Target({ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.METHOD,ElementType.PACKAGE, ElementType.LOCAL_VARIABLE, ElementType.TYPE_USE})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface Version {int major();int minor();}Here is simple loop in Java. Yes you may have to type that much.
Code:
package com.jdojo.lambda;import java.util.function.Consumer;public class LambdaJumps { public static void main(String[] args) { Consumer<int[]> printer = ids -> { int printedCount = 0; for (int id : ids) { if (id % 2 != 0) { continue; } System.out.println(id); printedCount++; if (printedCount == 3) { break; } }};printer.accept(new int[]{1, 2, 3, 4, 5, 6, 7, 8}); }}
Javascript is easy to learn. It ain't easy to master.
Classes can be used in Rpg Maker MV, you have to have knowledge of babel and how to compile ES6 code into ES5 which is what RPG Maker MV will use. But yes you can use classes.
you can even use "fake" classes: var Something = { functionName: function() { ...}, anotherFunction: function() { .. }};
Then you can do something like: Something.functionName();
you can even use "fake" classes: var Something = { functionName: function() { ...}, anotherFunction: function() { .. }};
Then you can do something like: Something.functionName();
I understand your point, by all your examples.
Let's just take this example for example.
public static void main(String[] args)NO beginner will understand that. And NO teacher will try to explain it from start.
You ask me if a beginner will understand almost everything involving OOP without even knowing them. By asking me that it is like landing a hit under the belt. That is unfair.
This line is an almost standard line for all java programs and you DON'T NEED to understand it from start. You can just say "forget about it, you will understand it as we go on." In THE END, when the student will read it once again he/she will say: "Oh! Makes sense. Of course it is public, it is the main after all and it also has to be static. Oh it is set to void of course and the name is main." the student sees no arguments here tadaaa...
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World");
}
}
On Hello World you tell students to focus on what matters.
That is System.out.println("Hello, World");
Now you might ask, why should I teach OOP using Java? I can avoid {} and all this public static void buillcrap using Python.
It seems that if someone learns Java then that someone can learn Python C#, C++ and C easier.
That's why I choose Java. 🙂
On your other examples you show me simple things done in Java, in the most complex way you could do them. This is not so fair.
You don't start teaching JAva using lambdas.
Lambda expressions is something I would teach in the end
Java can teach you well how to make Classes, Objects, Methods etc etc.
You HAVE to put these strange { } symbols you will meet on many other languages.
Imagine yourself with no programming knowledge at all. You got that feeling?
Okay, now let's say you choose Python as a first language.
Then in the future, for some reason, you have to learn C or C++ or C# or Java or whatever. You will have a hard time.
Imagine now taking JS as first language.
1] You will not have the experience to make correct inheritance for your first big project being a beginner and YOU KNOW THAT. Doing such early mistakes, you will spend most of your time debugging and eventually be disappointed or not learn so much at all. It is not efficient to allow someone make every mistake a programmer can possibly do together. Java does NOT allow that. That is why I prefer Java than JS for teaching programming.
2] You have the freedom to add or remove attributes at will from an object. That way you are not enforced to do neat Object Oriented Programming (OOP). And let me state here that classes are introduced in JS for a good reason.
3] When you teach programming, you don't just teach how to make console applications or browser apps by writing commands. You teach people a way of thinking to solve problems. If that way of thinking is not taught, you just show someone how to do a few things with a programming language. When a real problem emerges, how is that person supposed to use his/her analytical thinking to break it into smaller pieces and then make software to solve it? Does JS help a teacher teach that way of thinking? Well in my case and in my opinion, I believe that I should avoid it. But that's just me and just my personal opinion on the topic. Another teacher can use JS to teach through mistakes I don't know, I just believe that learning proccess should be fun for the students. Take Scratch for instance.
I stopped here and went to my OP to read what I exactly wrote.
"JS is NOT so easy to learn. It is easy to learn how to make things happen with JS....."
OH! That is what I said indeed. My bad because by "learn a language" I also include in my mind the way of thinking behind it. Those two though are irrelevant and I shoud had explained what I meant better. I am sorry about that.
You can learn how to do basic stuff in any programming language you like.
But when you have to teach programming using a language, JS is not a language I would choose.
Not because "it is worse or bad" or whatever. It is just because I want to keep students focus on concepts that will help them on many traditional and well established languages as Java, C++, C# etc etc
How about the old good Pascal? It is still used to teach people how to structure a program properly. But it is not object oriented.
I had to teach Fortran77 once it was during 2010!!!! I had only 4 hours. The student succeeded but that was a HELL ON EARTH. I still remember the horror I felt that afternoon. She knew the whole syntax. She was unable to model any problem given to her. She just had to learn the concepts and thus I had enough time to explain everything to her. See @hero2x those concepts and way of thinking comes natural to some people, I assume to you too, but other struggle to understand them. Understanding them though, it is just like the bike. You learn once you ride forever.
When you involve Object Oriented concepts in your teaching, using a programming language where you can ignore these concepts and make something "that does the same thing" then you just have a bomb and a clock set to explode during the middle of the class.
It is better to start someone from a formal language.
That way that someone will learn the concepts and then just appreciate the freedom JS have when this person will use it.
If you don't learn those concepts from scratch though, you will just realize what is wrong when it will be too late on a JS project (as a beginner) and thus this will make some discomfort. Imagine that person going to try Java or C# or C++ then... those formalities will add to his/her discomfort and disappointment.
In any case I really liked your argument.
@DarkPhoenix said:
"Javascript is easy to learn. It ain't easy to master."
Yes I can't agree more with that. But this applies to most of the programming languages. Except Java. What I try to tell here, is Java might me harder to learn but easier to master. Thus it is great if someone can make it easier for you. That someone is a teacher. By the time you learn Java properly, you are fluent enough to learn any extension of it. Same goes for Python though. But Java has the good thing that everything will look familiar after coding in Java. You can learn any language easier. That is why it is my choice. 😀
This is a very simple and very good way to use "classes" in javascript. Firs you would need to compile this with something like babel because it does use the concept of exporting and importing to create a sense of modularity.
I also say "classes" because ES5 doesn't have classes, so you use objects that contain functions to be your "class". Now in ES6, which you can write, again you would compile with babel which turns it into ES5, you have the concept of class.
The Code
var Person = { defaultState: { name: null, jobDescription: null, RpgMakeLover: false }, name: function (name) { defaultState.name = name; }, jobDescription: function (najobDescriptionme) { defaultState.jobDescription = jobDescription; }, RpgMakeLover: function (boolean) { defaultState.RpgMakeLover = boolean; }, getInfo: function() { console.log(defaultState.name + ', ' + defaultState.jobDescription + ', ' + defaultState.RpgMakeLover); }}module.exports = Person;// Else Where:Var PersonClass = require('./person.js');PersonClass.name('Adam');PersonClass.jobDescription('Senior Web Developer');PersonClass.RpgMakeLover(true);PersonClass.getInfo();This is a very simple class of setters and a getter.
What if you wanted to extend this class? well using something from Underscore called extend: http://underscorejs.org/#extend you can write:
var PersonClass = require('./person');var ExtendedPersonClass = _.extend(PersonClass, { // Your code here.});the above shows that ExtendedPersonClass now has access to all of Person's methods. But Person does not have access to ExtendedPersonClass.
In the above example where we use Underscore to extend, you would also need to make sure underscore script is loaded above both Person and ExtendedPersonClass to not get an error thrown on _.extend
I also say "classes" because ES5 doesn't have classes, so you use objects that contain functions to be your "class". Now in ES6, which you can write, again you would compile with babel which turns it into ES5, you have the concept of class.
The Code
var Person = { defaultState: { name: null, jobDescription: null, RpgMakeLover: false }, name: function (name) { defaultState.name = name; }, jobDescription: function (najobDescriptionme) { defaultState.jobDescription = jobDescription; }, RpgMakeLover: function (boolean) { defaultState.RpgMakeLover = boolean; }, getInfo: function() { console.log(defaultState.name + ', ' + defaultState.jobDescription + ', ' + defaultState.RpgMakeLover); }}module.exports = Person;// Else Where:Var PersonClass = require('./person.js');PersonClass.name('Adam');PersonClass.jobDescription('Senior Web Developer');PersonClass.RpgMakeLover(true);PersonClass.getInfo();This is a very simple class of setters and a getter.
What if you wanted to extend this class? well using something from Underscore called extend: http://underscorejs.org/#extend you can write:
var PersonClass = require('./person');var ExtendedPersonClass = _.extend(PersonClass, { // Your code here.});the above shows that ExtendedPersonClass now has access to all of Person's methods. But Person does not have access to ExtendedPersonClass.
In the above example where we use Underscore to extend, you would also need to make sure underscore script is loaded above both Person and ExtendedPersonClass to not get an error thrown on _.extend
I honestly don't disagree with your method even for me it's could be confusing
but if we coding in ES5 I do prefer using this method though since I am more familiar with it and we know it's how it's write in MV
function Foo() { this.initialize.apply(this,arguments);}Foo.prototype.initialize = function() {this.get_datas();//blablala};for me honestly this the way I intend to code in MV because ti's far more readable and easy to understand....maybe less efficient than your ways but far more easier to read.
if I explain I am not a casual programmer likes all the guys around here I am a Human oriented coding.
A human oriented coding is have for meaning to code in the most READABLE ways possible you will never saw me begin to code in a messy mesh or bother to write code who are unreadable to other user oh and I also document everything's lol
but if we coding in ES5 I do prefer using this method though since I am more familiar with it and we know it's how it's write in MV
function Foo() { this.initialize.apply(this,arguments);}Foo.prototype.initialize = function() {this.get_datas();//blablala};for me honestly this the way I intend to code in MV because ti's far more readable and easy to understand....maybe less efficient than your ways but far more easier to read.
if I explain I am not a casual programmer likes all the guys around here I am a Human oriented coding.
A human oriented coding is have for meaning to code in the most READABLE ways possible you will never saw me begin to code in a messy mesh or bother to write code who are unreadable to other user oh and I also document everything's lol
Then I am going to stop you right here because this concept of human oriented coding is not a thing. Readable code is a thing and what you wrote has its place in a concept called functional programming.
The issue you will have is that when you use prototype is that there are some very real disadvantages: http://stackoverflow.com/questions/6585478/the-disadvantages-of-javascript-prototype-inheritance-what-are-they.
This is a very good example from that stack post:
function MyObject() { var foo = 1; this.bar = 2;}MyObject.prototype.getFoo = function() { // can't access "foo" here!}MyObject.prototype.getBar = function() { return this.bar; // OK!}You have to know exactly what your out come will be. Doing something like the example I showed above is the concept of Classes in ES5, the extending of it can also be done in ES5. Classes are "objects" in ES5 that have there functions and variables scoped to that particular object making immutability easier to implement.
This is another thing you want to look into: immutability
*sigh*
as you can notice I am not a full english so no when you speak of immutability is something totally unknown to me and
when I speak of "human minded coding" it's a way to me to say in my own words that's my main goal is not to go with performance but readability because I met so much programmer in Ace who don't bother to make their coding clear and make a pain to edit. and I hate coding like that I prefer doing my OWN script when it's come script are super unreadable.
and honestly you will get disapointed because ALL MV is coded with prototype and honestly I will prefer following the convention where people will understand my coding than a coding where noob can't understand because it's to much different from MV
as you can notice I am not a full english so no when you speak of immutability is something totally unknown to me and
when I speak of "human minded coding" it's a way to me to say in my own words that's my main goal is not to go with performance but readability because I met so much programmer in Ace who don't bother to make their coding clear and make a pain to edit. and I hate coding like that I prefer doing my OWN script when it's come script are super unreadable.
and honestly you will get disapointed because ALL MV is coded with prototype and honestly I will prefer following the convention where people will understand my coding than a coding where noob can't understand because it's to much different from MV
prototypes have there down sides http://javascript.crockford.com/prototypal.html it causes people to write more complicated and harder to read code then if you write the concept of classes though. At least IMO. You can also end up creating functions and variables that get manipulated by other aspects and scope can become a huge issue.
You also dont get the concept of classes as you would with the concept of objects as classes in javscript. Just sayin.
I did not read all your post (will later). I am not sure how much you know of Java that eventually come with that conclusion. I guess that because most of what your understanding comes from google search instead of coding experience. Let's try compare JS function with Java Lambda as an example to see how easy to master Java or JS.
In JS, functional programming likes this.
var myFunction = function (x, y) { return x + y };
So easy to write function and store it in variable without nerve crack. Can you do the same with Java? No.
To write similar function in Java you must first determine the type of variable. Example of lambda expression;
(x, y) -> {return x + y};
Ok how do you store above function to variable? you can't simple just type var myFunction, since Java is strict type language and that expression does not tell you which return type and parameter types. You would need a functional interface as variable to store that function. What is functional interface anyway? It's a interface with one abstract method however the default method and static method are allowed. So what are default method and static method? How do I write an interface? What type of interface in Java library I can use? ...etc so on.
Before you even start write a simple line in Java already required you considerable knowledge of understanding syntax and logic. Master Java is another 10 years life time or 10,000 hours equivalent for an average coder. While JS I could master it in a year or so.
That is simple comparison between JS function and Java lambda. I have not touched any other Java features that there is no equivalent nor existence in JS. When I code in Java my brain works twice. When I code in JS my brain is at ease.
Source? I doubt people need more then a PHD level of education to become good at Java alone (People are generally really good at Java after a bachelors degree and have knowledge of other languages too).
Java has been the most common choice for schools/universities first programming language to be taught for a reason. Java is picked due to its common use in the industry, it is comparatively easy to learn, and the ability to quickly learn other popular Object Oriented Languages after having knowledge of Java (especially C based languages). I have to note that Python is starting to take Java's place as the introductory language of choice recently though.
Also, it is easier to learn how to do something in Javascript, but it is harder to learn to do it well. I have had to redo massive parts of programs in Javascript, not because of a bug/issue caused by the code, but due to how messy the code was (nobody on my team came close to understanding what the original coder was doing). Note that some of my colleagues even had 10+ years of programming experience could not understand it well.
It's a common phrase. 10000 hours to master something.
However, what makes someone "good" at a particular language is subject to various criteria. For example, would you say someone needs to understand how Java works (straight down to the JVM and other low-level stuff) in order to be "good" at Java?
I takes some more time to read what you just said. A lot of what you said I would disagree with. Java is system language Solaris OS, Android OS are written in Java. Javascript is scripting language to start with. How it is easier to learn and master a system, enterprise capability language like Java than Java script, basically a scripting language. Just does not make any logical sense.
Someone mentioned a four year degree B.S degree is considered of mastering a Java. A WoW, sounds like I have no degree and or knows no one possess Computer Science degree or equivalent. When you finished your B.S in CS or Engineer degree, the best job you can get is entry developer. Senior developer that would requires somewhere 8-10 years of programming knowledge. A wow for anyone can master a system language with 4 years degree.
@hero2x - I never said master. I said get good at it.
Unless you think good = master.
Java is used for other things then operating systems. It's most popular usage is business applications. It is also the most popular language used in the world currently(according to the TIOBE Index).
Also, Java and Python are the two most popular languages to be taught in college. A big reason Java is taught is that the knowledge can be used to quickly learn C based languages. No other OOP share much in common with Javascript, so you get way less "bang for your buck" when learning it so to speak
Unless you think good = master.
Java is used for other things then operating systems. It's most popular usage is business applications. It is also the most popular language used in the world currently(according to the TIOBE Index).
Also, Java and Python are the two most popular languages to be taught in college. A big reason Java is taught is that the knowledge can be used to quickly learn C based languages. No other OOP share much in common with Javascript, so you get way less "bang for your buck" when learning it so to speak
Good to know that there are people here that actually know what they are talking about. Of course. Java is really popular because with a good teacher, someone can teach everything easily and then students can learn C++, C#, Python, JS or other languages easier.
Yes Python is popular too but when you use tabs instead of { } (do we call them braces? My native is not English) things can become a little hard to understand. This is the hard part of Python really, while Java uses the braces C++ and C# do.
If you ask me if I prefer Python than Java I can not answer. Both are fantastic. There are good books for Python starters too.
Since JS has classes now, I might consider thinking of using it in the future. But it is still risky, because JS gives you the ability to create spaghetti with meatballs code easier than any other OOP language I know. I don't know, I may even use this language to show bad practice examples and how to do stuff right (using JS in both cases). In any case class in JS is only good news imo. You can produce good code with prototypes too, but classes might guarantee that. 🙂
@hero2x are you trolling me?
"I did not read all your post (will later). I am not sure how much you know of Java that eventually come with that conclusion. I guess that because most of what your understanding comes from google search instead of coding experience."
No seriously, how would you feel being treated the same way? You sneaky undermine me, by "assuming I just google things" and "I got no coding experience". :|
Except if you didn't actually read what I wrote, you are trolling me. Here let me show you again a part you might missed:
"I stopped here and went to my OP to read what I exactly wrote.
"JS is NOT so easy to learn. It is easy to learn how to make things happen with JS....."
OH! That is what I said indeed. My bad because by "learn a language" I also include in my mind the way of thinking behind it. Those two though are irrelevant and I shoud had explained what I meant better. I am sorry about that."
I meant, teaching PROGRAMMING using Java. Once again, my bad! But that's it.
If you didn't read that green letter part, we can both chill out, ☺️
but if you still wanna have an argument get another guy and mostly another thread. D:<
I am too old for drama and I really don't give a fart really, cause I got nothing to prove here whatsoever.What I know and what my experience is, is my own business, so please mind your own. >:(
If you want to prove here that you are awesome to feel good with yourself, here: YOU ARE AWESOME. 👍 ☺️ 👍
Okay? Now please stop using straw man arguments on me.
As for entry developer as first job, you are wrong in my opinion. It depends. I know people that before they get BsC they become seniors. That's because they solve any problem that occurs. It is about capabilities, knowledge, skill and know-how. But I will not disagree with you either. Because people get a BsC and think they know-it-all too, while in fact they know almost nothing compared to what real life experience can teach you. Some of them never work to a position related to their studies anyway. People with a BsC or Msc though, know more than most self taught know-it-all guys out there. That doesn't mean that there are not self taught people with more experience. But when it comes to an academic that studied programming methodologies AND practiced what learned in real life situations, then we talk about a freeaking other level. Most coders learned a few langages and think they are software engineers ffs, either they have a degree or not.
Yes. When teaching programming using Java you HAVE to talk about inheritance at some point. You also have to talk about how you can not have inheritance from two abstract classes, but from one and only one, then explain that interfaces solve any case that occurs from that restriction etc etc. Your point being? Who told you people can't teach PROGRAMMING easily using Java? Many people can. And LOTS of people with a PhD or MsC or BsC choose Java as first programming language for their students. But you know better. There is a difference on scipting anyway (as YOU already mentioned correctly) and I got no intention to write once again what you didn't read on the previous post. Java can be learned by practical examples starting with hello world, going on with SIMPLE THINGS and IN THE END, you reveal what a class, an attribute, an object, a method and inheritance is. WHO FORCES ME TO DO THEM FROM THE BEGINING?
If you are self taught, I can feel your pain, but that doesn't mean that Java is not good for first language, not to mention that it can run ANYWHERE. So a student working using Windows, another using Linux and another using a Mac for some reason, can all code in Java no problem. And it is a free programming language. There are many more reasons.
In Java you can easier make things the right way. Thus make code easy to maintain, extend and debug, especially on big projects.If you get JS for first programming language, you MIGHT not learn the basic good practicies of proper class inheritance. I bet that's why they put classes on JS now. AND HERE WE ARE BACK TO THE TOPIC. Not sure really what the industry thinks about, but from my experience, people who were called to extend or maintain JS code SOMEONE ELSE MADE, were swearing all the time after 8 hours of re-engineering stuff other people "easily coded". Why? Because easy is almost never right.
No seriously, how would you feel being treated the same way? You sneaky undermine me, by "assuming I just google things" and "I got no coding experience". :|
Except if you didn't actually read what I wrote, you are trolling me. Here let me show you again a part you might missed:
"I stopped here and went to my OP to read what I exactly wrote.
"JS is NOT so easy to learn. It is easy to learn how to make things happen with JS....."
OH! That is what I said indeed. My bad because by "learn a language" I also include in my mind the way of thinking behind it. Those two though are irrelevant and I shoud had explained what I meant better. I am sorry about that."
I meant, teaching PROGRAMMING using Java. Once again, my bad! But that's it.
If you didn't read that green letter part, we can both chill out, ☺️
but if you still wanna have an argument get another guy and mostly another thread. D:<
I am too old for drama and I really don't give a fart really, cause I got nothing to prove here whatsoever.What I know and what my experience is, is my own business, so please mind your own. >:(
If you want to prove here that you are awesome to feel good with yourself, here: YOU ARE AWESOME. 👍 ☺️ 👍
Okay? Now please stop using straw man arguments on me.
As for entry developer as first job, you are wrong in my opinion. It depends. I know people that before they get BsC they become seniors. That's because they solve any problem that occurs. It is about capabilities, knowledge, skill and know-how. But I will not disagree with you either. Because people get a BsC and think they know-it-all too, while in fact they know almost nothing compared to what real life experience can teach you. Some of them never work to a position related to their studies anyway. People with a BsC or Msc though, know more than most self taught know-it-all guys out there. That doesn't mean that there are not self taught people with more experience. But when it comes to an academic that studied programming methodologies AND practiced what learned in real life situations, then we talk about a freeaking other level. Most coders learned a few langages and think they are software engineers ffs, either they have a degree or not.
Yes. When teaching programming using Java you HAVE to talk about inheritance at some point. You also have to talk about how you can not have inheritance from two abstract classes, but from one and only one, then explain that interfaces solve any case that occurs from that restriction etc etc. Your point being? Who told you people can't teach PROGRAMMING easily using Java? Many people can. And LOTS of people with a PhD or MsC or BsC choose Java as first programming language for their students. But you know better. There is a difference on scipting anyway (as YOU already mentioned correctly) and I got no intention to write once again what you didn't read on the previous post. Java can be learned by practical examples starting with hello world, going on with SIMPLE THINGS and IN THE END, you reveal what a class, an attribute, an object, a method and inheritance is. WHO FORCES ME TO DO THEM FROM THE BEGINING?
If you are self taught, I can feel your pain, but that doesn't mean that Java is not good for first language, not to mention that it can run ANYWHERE. So a student working using Windows, another using Linux and another using a Mac for some reason, can all code in Java no problem. And it is a free programming language. There are many more reasons.
In Java you can easier make things the right way. Thus make code easy to maintain, extend and debug, especially on big projects.If you get JS for first programming language, you MIGHT not learn the basic good practicies of proper class inheritance. I bet that's why they put classes on JS now. AND HERE WE ARE BACK TO THE TOPIC. Not sure really what the industry thinks about, but from my experience, people who were called to extend or maintain JS code SOMEONE ELSE MADE, were swearing all the time after 8 hours of re-engineering stuff other people "easily coded". Why? Because easy is almost never right.
In Java you can easier make things the right way. Thus make code easy to maintain, extend and debug, especially on big projects.If you get JS for first programming language, you MIGHT not learn the basic good practicies of proper class inheritance. I bet that's why they put classes on JS now. AND HERE WE ARE BACK TO THE TOPIC. Not sure really what the industry thinks about, but from my experience, people who were called to extend or maintain JS code SOMEONE ELSE MADE, were swearing all the time after 8 hours of re-engineering stuff other people "easily coded". Why? Because easy is almost never right.
Anyway, @hero2x I got no beef with you really, so let's end this argument here and go on with... I don't know... maybe... "THE USE OF CLASS IN JS"?
Python enforces consistent white-space. You are not required to use tabs; you just need to be consistent.
But properly indenting your code should not make it "hard to understand"; you do it in Java, C++, and C# as well.
The hardship is explaining identation with spaces really. If students get it, then Python has nothing to be jealous vs Java or any other language really. 🙂
Edit:
Oh! And rookies have harder time to debug an extra or one less space, than a missing or extra brace. That's what I had in mind.
Original thread: https://forums.rpgmakerweb.com/threads/the-use-of-class-in-js.44823/