aboutsummaryrefslogtreecommitdiff
path: root/www/content/posts/pattern-in-cpp.md
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-27 17:47:45 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-27 17:47:45 +0800
commit28ec65ffdd55ad0c21137c0767732dac99297dec (patch)
treeaf4b128a7e153b542ca7da579aac79d4491f1bcb /www/content/posts/pattern-in-cpp.md
parentfb7194d8af642373b9b371fbfb9c7099b193bfd2 (diff)
downloadcrupest-28ec65ffdd55ad0c21137c0767732dac99297dec.tar.gz
crupest-28ec65ffdd55ad0c21137c0767732dac99297dec.tar.bz2
crupest-28ec65ffdd55ad0c21137c0767732dac99297dec.zip
feat(www): update nspawn.md.
Diffstat (limited to 'www/content/posts/pattern-in-cpp.md')
-rw-r--r--www/content/posts/pattern-in-cpp.md25
1 files changed, 0 insertions, 25 deletions
diff --git a/www/content/posts/pattern-in-cpp.md b/www/content/posts/pattern-in-cpp.md
deleted file mode 100644
index 1709ad4..0000000
--- a/www/content/posts/pattern-in-cpp.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-title: "Pattern in C++"
-date: 2022-01-24T15:57:34+08:00
-categories: coding
-tags:
- - c++
-description: The secret ingredient of secret ingredient soup is ...
----
-
-> The secret ingredient of secret ingredient soup is ...
-> Nothing!
-
-This is a script from Kung Fu Panda, which is one of my favorite film.
-
-People have been struggling for days to find a pattern in which they can code better. Especially those who use Java. They even wrote a book called "Programming Pattern" (or another name since I might forget the name) to show the common patterns.
-
-<!--more-->
-
-I don't mean patterns are bad. However there exists many people who strive to the patterns, stick to the patterns or even get stubborn to patterns. Maybe there exists a way to achieve their goals with some not that patterned code but they don't want to use them at all just because the code is not patterned.
-
-I love C++. And the pattern of C++ is exactly *NO PATTERN*. You write code in the way that they do the task most effectively and neatly. You don't need to apply a pattern to achieve your goal. You just write your code naturally with the way you are most comfortable with.
-
-Tools including programming language serve for people but not vice versa. Don't let tools constrain your hands. And when you find tools not convenient, just fix them or make a new one. Just like C++ is evolving all the time. So are all languages.
-
-The best is code is those that express meanings most clearly and achieve goals most effectively and do nothing with patterns.