int number = 30;
number += 10;
var number = 30;
parseInt(number) += 10;
???????? said:Depends on where you're coming from, there's really no 1 answer that fits all here.
But I did notice that older generation programmers commonly have an easier time and are less willing to learn a new language, while newer generations have a harder time learning old languages, but are more curious to know how their ancestors programmed.
Newer languages are generally created to make it easier to program, and older languages generally get frameworks to make those easier as well.
But newer languages often have things I can easily disagree on, more specifically languages meant for web development.
Like in C and C++ (and in a sense C# and Java too) you had to explicitly define the type of a variable whether it's an integer, a character, a floating point number, etc.
This is not the case with PHP and Javascript, since Javascript has 1 var type that suits all, and PHP doesn't even pre-define types at all.
As a result that you end up type casting a lot to prevent unexpected results.
So what do you think is easier?
This?
Code:int number = 30; number += 10;
Or this?
Code:var number = 30; parseInt(number) += 10;
In the case of the latter, it's highly likely you'd get a result of "3010" because "number" could be seen as a string, even though you intended it to be an integer.
In the case of the former, your compiler will punish you for not stating the correct variable type.
???????? said:Depends on where you're coming from, there's really no 1 answer that fits all here.
But I did notice that older generation programmers commonly have an easier time and are less willing to learn a new language, while newer generations have a harder time learning old languages, but are more curious to know how their ancestors programmed.
Newer languages are generally created to make it easier to program, and older languages generally get frameworks to make those easier as well.
But newer languages often have things I can easily disagree on, more specifically languages meant for web development.
Like in C and C++ (and in a sense C# and Java too) you had to explicitly define the type of a variable whether it's an integer, a character, a floating point number, etc.
This is not the case with PHP and Javascript, since Javascript has 1 var type that suits all, and PHP doesn't even pre-define types at all.
As a result that you end up type casting a lot to prevent unexpected results.
So what do you think is easier?
This?
Code:int number = 30; number += 10;
Or this?
Code:var number = 30; parseInt(number) += 10;
In the case of the latter, it's highly likely you'd get a result of "3010" because "number" could be seen as a string, even though you intended it to be an integer.
In the case of the former, your compiler will punish you for not stating the correct variable type.
MadaraUchiha said:Assembly language for sure. It's a stupid language and the syntax changes from one microcontroller to another and I had a hard time dealing with it.
Claraviolet said:Lol yeah... It was a nightmare for me. I couldn't even remember how I made it past that course.
Be careful kiddo... It's a tricky course
MadaraUchiha said:No I finished it. With some amount of difficulty, of course. Embedded C was a lot easier for me compared to this moronic language.
Claraviolet said:Lol... But it's a useful language because of its processing time ya know.
I don't know where exactly it is used but it's popular.
Good for you for completing it with flying colors. I got a B in it. My dark past ._.
MadaraUchiha said:B is not that bad chill.
It's used in microprocessors and microcontrollers.
Claraviolet said:That's my lowest grade ever and I am ashamed of it ;_;
Lol...I know..I am talking about practical stuff that we see.
MadaraUchiha said:It can be used to control stepper motors, I guess. That's the simplest thing I did when I had that course.
MadaraUchiha said:Assembly language for sure. It's a stupid language and the syntax changes from one microcontroller to another and I had a hard time dealing with it.
Star_Of_Hope said:I don't get it totally but what's a punishment there? Will it get errored out?
May be sticking with old programming methods is good... Perhaps?
Claraviolet said:If I were to say the first one is efficient and the second one is easy to use, will you accept?
I believe the new languages are easy to program but that's it
Claraviolet said:Oh yeah... Right. I forgot all about it.. Wait a sec
.. You prepared that motor for the course? Like for some practical exam?
MadaraUchiha said:No, it was an experiment we had to do. And then for a mini project assessment I used an arduino board for more options.
I realise that but it puts our life in hell doesn't it. Initially at least. I was really glad that I didn't have to deal with it again.
C was comparatively easier. I was able to work around AVR and such in a better way.
???????? said:Yes, in the sense of "can't run it, fix it!".
???????? said:Yes, in the sense of "can't run it, fix it!".
Claraviolet said:Wait a sec ....
You are a computer science student right?
Did they allow you to do all the experiments just like that?
We use essential cookies to make this site work, and optional cookies to enhance your experience.