Add content/blog/coding_style
Build website container / Build image (push) Successful in 1m28s Details

This commit is contained in:
Mathis 2024-04-03 20:32:11 +00:00
parent 5c8e4c91e3
commit 3c71b6464d
1 changed files with 16 additions and 0 deletions

16
content/blog/coding_style Normal file
View File

@ -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