This template provides:
- a devcontainer for an consistent environment
- linting and formatting via eslint
- mocha test which are executed on save
The intended structure:
src/
- foo.ts
- <code>
test/
- foo.test.ts
- <tests>
dist/
- foo.js
- <compiled js>
- Open the vs code tab
test
- Click on
...
- Select
Enable autorun
Be explicit!
Do not use add words like manager
to a class name if not realy needed.
Bad example: [1]
Try to use get
and set
as less as possible, because they do not add meaning. [1]
Generell
Do not bypass the encapsularion layer, becuase otherwise the meaning of an object is lost. [1]
Use undefined
instead of null
whenever possible. [2]
This setup originates from the following sources:
- [1] ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many Programmers
- formating
- naming convention
- structutal convention
- [2] The Post JavaScript Apocalypse - Douglas Crockford
- formatting
- structutal convention
- [3] Software Art Thou: Kevlin Henney - What Do You Mean
- naming convention
- structutal convention
- [4] DevTernity 2017: Ian Cooper - TDD, Where Did It All Go Wrong
- [5] Functional architecture - The pits of success - Mark Seemann