Skip to content

Latest commit

 

History

History
135 lines (102 loc) · 6.67 KB

File metadata and controls

135 lines (102 loc) · 6.67 KB

alt text

Front-end Development Best Practices

##JavaScript

###Index

Testing

  function test () {
    return true;
  }
  • Whichever testing framework you use, you should be writing tests!
  • Strive to write many small pure functions, and minimize where mutations occur.
  • Be cautious about stubs and mocks - they can make your tests more brittle.
  • 100% test coverage is a good goal to strive for, even if it's not always practical to reach it.
  • Whenever you fix a bug, write a regression test. A bug fixed without a regression test is almost certainly going to break again in the future.

Performance

Resources

Learning ES6

Read This

Tools

Other Style Guides

Other Styles

Further Reading

Books

Blogs

News/Blogs Collection Sites

Podcasts

Others


BEEVA | Technology and innovative solutions for companies