How to Build Complex Applications in Javascript
EDIT: The title should be a question!! As in: "How to Build Complex Applications in Javascript?" Sorry about that.
I'm really comfortable in Java and C#. I love these languages so much because I know them well and it's easy to be productive in them. You can create objects that help manage complexity and encapsulate data well and I actually find that fun. Also they are not as tricky as C++.
Going into the world of Javascript is daunting. The little twists on the language and the bad parts of JavaScript make me really not confident on how to begin.
I've only used Java and C# for school projects with partners, but I've made some decently complex systems with a lot of features that was manageable, flexible and fun to program in by using smart object-oriented design patterns.
I have a few questions:
- How do you leverage the functional aspects of Javascript to manage complex applications?
- Is it not recommended to use try to do everything as you would in Java/C#? Are there any downsides to fully using classes and inheritance?
- Are there any performance concerns when making some of the bigger applications that you can on Java/C# in Javascript? Can I just treat them the same?
Thanks.
Posted Apr 2, 2015, 12:58 AM UTC · edited
Learn functional programming.
Learn how to use modern javascript tooling effectively (build systems, linters, testing infrastructure)
And the most important tip of all: DON'T WRITE COMPLEX APPLICATIONS IN JAVASCRIPT. Write many small, simple modules that can be stitched together to form an application (while of course leaning on the rich and diverse ecosystem of modules you'll find on npm)
Good luck!