Author
Released
9/10/2019- Using modern deployment tools
- Working with ESLint
- Creating easy-to-read comments
- Using commas consistently
- Standardizing line length in your code
- Using a consistent format for blocks
- Choosing and implementing a standard indent
Skill Level Intermediate
Duration
Views
- [Sasha] JavaScript is a forgiving language when it comes to code formatting, and JavaScript developers employ a variety of code styles. But there are some widely-accepted best practices for code formatting among JavaScript developers that can make your code easier to read and understand for team members you work with, other developers who might work with your code in the future, and for you, yourself, when you return to your own code after some time away. Implementing best practices in your code and configuring tools to help you can also sharpen up files that may look sloppy or poorly organized simply as a result of your use of spaces, punctuation, and line breaks. In my LinkedIn Learning course, I explore best practices as laid out in some of the industry's most commonly referenced style guides. I also show you how to set up ESLint rules to flag deviations from styles that you set and how to turn on features in your editor that can help format your code as you write and save it. I'm Sasha Vodnik, and I've been writing JavaScript since the browser wars of the '90s. If you want to put modern code formatting to work on your team, an open source project, or just in your own personal work, I invite you to join me for this course on JavaScript best practices for code formatting.
Related Courses
-
Learning App Building with Vanilla JavaScript
with Sasha Vodnik1h 44m Intermediate -
Workflow Tools for Web Developers
with Christina Truong1h 13m Intermediate
-
Introduction
-
Set up your environment3m 22s
-
1. Why Best Practices?
-
Style guides3m 12s
-
Use modern deployment tools2m 23s
-
ESLint2m 47s
-
-
2. Creating Comments
-
3. Using Punctuation
-
Standardize line length6m 33s
-
Use commas consistently3m 38s
-
4. Using Spacing
-
Indent consistently5m 54s
-
Solution: Optimize spacing10m 29s
-
-
Conclusion
-
Next steps29s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Modern standards for your JavaScript