namesny-com/content/blog/coding_style

24 lines
839 B
Plaintext
Raw Normal View History

2024-04-03 20:32:11 +00:00
---
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
2024-04-06 12:31:43 +00:00
- don't repeat yourself thrice
Sources:
- https://www.youtube.com/watch?v=tD5NrevFtbU
- https://www.youtube.com/watch?v=CFRhGnuXG-4
- https://grugbrain.dev/
- https://testing.googleblog.com/2023/09/else-nuances.html
- https://www.youtube.com/watch?v=bJQj1uKtnus