Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any good design practices or standards for JavaScript development? [closed]

Tags:

javascript

When developing with object-oriented languages like Java or C#, it's not uncommon for developers to use design tools like UML to make class diagrams, create interfaces, define major components and interactions, outline an API, etc., before beginning the implementation.

I know for most small JavaScript applications, these software engineering principles may be overkill, but if you're developing a library (jQuery, YUI) or creating a large application (Gmail, Google Docs), it's a good idea to create a design and plan ahead before you start writing any code.

Are there any similar practices used in JavaScript development or web development in general?

Edit:

Just to clarify, I'm not interested in creating classes/interfaces or making UML for JavaScript. JavaScript is a different paradigm from the likes of Java/C# and therefore needs different design tools. I'm interested in knowing what those JavaScript design tools/practices are, if any.

Maybe this question better asks what I'd like to know: If a company like Google created a large web application and had several dozen team members create it, what processes, documents, and practices would such a team use to successfully create, collaborate, and solidify a design? What tools (e.g., UML, flow charts, scribbled notes on a piece of paper) would they use to work on and share the design of the application (without writing a single line of code)?

like image 411
JR. Avatar asked Jan 21 '23 11:01

JR.


1 Answers

I'm a fan of the Google Javascript Style Guide:

https://google.github.io/styleguide/javascriptguide.xml

like image 168
Matt King Avatar answered May 25 '23 10:05

Matt King