From 3c71b6464d64bfd8118f11510627aa9da9071129 Mon Sep 17 00:00:00 2001 From: Mathis Date: Wed, 3 Apr 2024 20:32:11 +0000 Subject: [PATCH] Add content/blog/coding_style --- content/blog/coding_style | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 content/blog/coding_style diff --git a/content/blog/coding_style b/content/blog/coding_style new file mode 100644 index 0000000..6c9f456 --- /dev/null +++ b/content/blog/coding_style @@ -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 \ No newline at end of file