mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
5 years ago
|
## good practices
|
||
|
|
||
|
### [code](https://code.tutsplus.com/tutorials/top-15-best-practices-for-writing-super-readable-code--net-8118)
|
||
|
|
||
|
- Commenting and Documentation
|
||
|
- Consistent Indentation
|
||
|
- Avoid Obvious Comments
|
||
|
- Code Grouping
|
||
|
- Consistent Naming Scheme
|
||
5 years ago
|
- camelCase
|
||
|
- under_scores
|
||
5 years ago
|
- [**DRY**](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu) (Don't Repeat Yourself) or [**DIE**](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu) (Duplication is Evil) principle
|
||
|
- [**KISS**](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu) (Keep It Simple Stupid)
|
||
|
- [**YAGNI**](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu) (You Aren’t Gonna Need It)
|
||
|
- [**SOC**](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu) (Separation of Concerns)
|
||
|
- Avoid Deep Nesting
|
||
5 years ago
|
- Handling errors
|
||
5 years ago
|
- Limit Line Length
|
||
|
- File and Folder Organization
|
||
|
- Consistent Temporary Names
|
||
|
- Separation of Code and Data
|
||
|
- Code Refactoring
|
||
|
|
||
|
### Go
|
||
|
|
||
|
- [**Go**](https://golang.org/doc/effective_go.html)
|
||
|
- [**gofmt**](https://golang.org/cmd/gofmt/)
|
||
|
- [**goimports**](https://godoc.org/golang.org/x/tools/cmd/goimports)
|
||
|
- [**foimports vs gofmt**](https://goinbigdata.com/goimports-vs-gofmt/)
|
||
5 years ago
|
|
||
5 years ago
|
### CSS
|
||
|
|
||
![]()
5 years ago
|
- [**CSS**](https://www.tothenew.com/blog/10-best-practices-in-css/)
|
||
|
|
||
5 years ago
|
### Dockerfile
|
||
|
|
||
|
- [**Dockerfile**](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/)
|
||
4 years ago
|
|
||
|
### Time Limitation
|
||
|
|
||
|
- Every computing programs should execute in a time limit of 5 minutes.
|