Add content/blog/coding_style
Build website container / Build image (push) Successful in 1m28s
Details
Build website container / Build image (push) Successful in 1m28s
Details
This commit is contained in:
parent
5c8e4c91e3
commit
3c71b6464d
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: "Coding style"
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
I had a few interviews where I was asked about my coding style. I wasn't sure how to respond. I'm not following dogmatically any one coding principle such as Clean Code or TDD. Coding standards are hard, thats why there are so many books about it. I pick and choose the ideas and try to follow those in my code.
|
||||||
|
|
||||||
|
I would be surprised if I follow the same ideas in 5 years. The style is evolving and my opinions change.
|
||||||
|
|
||||||
|
Here are ideas that I currently follow:
|
||||||
|
|
||||||
|
- never nesting
|
||||||
|
- early return
|
||||||
|
- fight abstractions
|
||||||
|
- grugg brained dev
|
||||||
|
- don't repeat yourself thrice
|
Loading…
Reference in New Issue