I love Delphi, but that´s not the point. The times that people used only Windows or Linux are over. With C++ you are bound to one or the other platform.
Though I did not like Javascript too much, I have switched over from Delphi/C++ to Javascript for some reasons:
It runs (in a browser) on all platforms
with respect to speed and functionality it has catched up a lot
HTML5 delivers phantastic graphics performance in an easy to use package
Though the class implementation in Javascript has some quirks (and too much this...), it is usable and no general reason not to use Javascript.
I personally think that some concepts of HTML and CSS are really bad and prevent a good programming style (See my post: What´s wrong with webdesign), but this is nothing you cannot overcome. You can use for example DML for web programming without html, and there are possibly other solutions to deal with that topic.
I perfectly understand people who love "their favorite programming language". But finally, we should not forget, that a programming language is a tool only. There are different tasks, so we need different tools. Visual Basic is the pure horror for me, but it is ok for some scripting in Excel.
So, many thanks for the writeup, it´s good to know about the concepts and powers.
Don't get me wrong, JavaScript works pretty well for web dev use cases. But I disagree regarding your point about being bound to one or the other OS with C++. With WebAssembly, C++ can run on the browsers. C++ can also run on OS X, Androids and even embedded devices.
That aside, like I said, I would likely not use C++ for building web servers. It serves a specific purpose in your toolkit and it's good to have. If the only thing stopping you from choosing it is because you're scared it's esoteric, the purpose of this article was to convince you it's not.
Well, we had that precise question: We had some well designed applications, some with more than 60.000 lines of code. Our question was: can we bring this apps to the web somehow? I suppose, WebAssembly will not help us here, as they provide a completely new ecosystem. Finally it would mean to rewrite most parts of the code.
We will see how WebAssembly develops. Currently is seems to be a young project that has not too much impact. Maybe if they get direct access to the DOM this could change. I would really appreciate if there was a new binary layer able to run languages other than JAVA. But currently we cannot ignore that this is not the common state.
Initially I did not like JS at all. There are still somethings I hate the designers for (most of all the overwhelming use of "this" in class definitions). But I was amazed that we had less trouble than expexted in our projects. You can have real trouble with the sloppy type conversions. But we had this kind of tricky errors too in languages with static typing.
You will need some more checks and a bit different style with JS, but the loose typing can also be very elegant. Overall it is not as bad as expected. Definively better than Visual Basic. It is more like an ugly, but very handy friend.
Initially I thought, TS is a must-have. After I got a bit used to JS I'm not that sure.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I love Delphi, but that´s not the point. The times that people used only Windows or Linux are over. With C++ you are bound to one or the other platform.
Though I did not like Javascript too much, I have switched over from Delphi/C++ to Javascript for some reasons:
I personally think that some concepts of HTML and CSS are really bad and prevent a good programming style (See my post: What´s wrong with webdesign), but this is nothing you cannot overcome. You can use for example DML for web programming without html, and there are possibly other solutions to deal with that topic.
I perfectly understand people who love "their favorite programming language". But finally, we should not forget, that a programming language is a tool only. There are different tasks, so we need different tools. Visual Basic is the pure horror for me, but it is ok for some scripting in Excel.
So, many thanks for the writeup, it´s good to know about the concepts and powers.
Don't get me wrong, JavaScript works pretty well for web dev use cases. But I disagree regarding your point about being bound to one or the other OS with C++. With WebAssembly, C++ can run on the browsers. C++ can also run on OS X, Androids and even embedded devices.
That aside, like I said, I would likely not use C++ for building web servers. It serves a specific purpose in your toolkit and it's good to have. If the only thing stopping you from choosing it is because you're scared it's esoteric, the purpose of this article was to convince you it's not.
Well, we had that precise question: We had some well designed applications, some with more than 60.000 lines of code. Our question was: can we bring this apps to the web somehow? I suppose, WebAssembly will not help us here, as they provide a completely new ecosystem. Finally it would mean to rewrite most parts of the code.
We will see how WebAssembly develops. Currently is seems to be a young project that has not too much impact. Maybe if they get direct access to the DOM this could change. I would really appreciate if there was a new binary layer able to run languages other than JAVA. But currently we cannot ignore that this is not the common state.
Yep that's a fair point. The sad truth is that the dominance of JS on the web is hard to replace given how much tooling we now have built around it.
Initially I did not like JS at all. There are still somethings I hate the designers for (most of all the overwhelming use of "this" in class definitions). But I was amazed that we had less trouble than expexted in our projects. You can have real trouble with the sloppy type conversions. But we had this kind of tricky errors too in languages with static typing.
You will need some more checks and a bit different style with JS, but the loose typing can also be very elegant. Overall it is not as bad as expected. Definively better than Visual Basic. It is more like an ugly, but very handy friend.
Initially I thought, TS is a must-have. After I got a bit used to JS I'm not that sure.