2023年6月

When I saw the RSS feed I had subscribed to, I came across an intriguing sentence sourced from Hack News. Here it is:

I adopted a philosophy in life that helped me a lot in this regard. I started to see life as a series of 'games' played by 'roles'. My mission in life is to play my 'games' in the best way possible for my 'roles'. A game can be anything from being a good student, to being a father, to making sound financial decisions, to leading a project, to supporting a project as individual contributor, to making a house renovation, etc.

Once I started to see my work as a 'game' played by a 'role', a lot of stress was taken off of my back. I started to see situations in a neutral light regardless of who were the actors (including myself).

It doesn't matter if it's me receiving or giving constructive feedback, having a difficult conversation or managing a stressful situation. Through this perspective I'm able to abstract from people, power dynamics, etc. and see what's helpful, that's the best way forward, etc.

It made me ponder for a while: what if we viewed life as an RPG game? Let's analyze this concept in more detail. By envisioning life as a game, one immediate benefit is the sense of tranquility(平静) it brings. This allows us to approach things with a calm and thoughtful mindset, free from unnecessary haste(匆忙). Furthermore, just like in a game, life presents us with goals and rewards to motivate us towards their achievement. When we transition this game mentality(思想方法) into real life, the same principles apply. It is ingrained in our nature that our brains seek rewards upon completing tasks, regardless of their magnitude. In other words, we are wired to desire a sense of accomplishment. Alternatively, we could say: "Life is a game, and games are life."

If we delve(钻研) deeper into the discussion, we can consider life as a process of negentropy(负熵), with entropy representing senility(衰老) and death, while negentropy represents resistance against them. From bottom to top, our lives are guided by goals set by our families, partners, and society. These goals often require us to work hard, overcome obstacles(障碍), climb social ranks, and attain power. This predefined path to success, established by the majority, can be quite useful. However, it is important to take a moment of introspection(内省) and question if this path aligns with our personal desires. Not everyone has the opportunity to pursue their passions, excel in their strengths, or follow their true calling. Ultimately, what matters most is whether we genuinely(真正地) enjoy or at least accept the path we have chosen. Conversely, from top to bottom, life is short, so approaching it as a game with limited time can free us from the constant competition with peers, neighbors, and relatives.

Life is a journey of learning how to ignore others' opinions. It's important to take the views they offer with ease, accepting the ones you resonate with and ignoring those you don't. Instead, focus on the targets that truly matter to you, much like a gamer strives to achieve the highest score in a game.

Life game,game life.

在数据库设计中,我们经常会遇到以下三种关系类型:1:1(一对一)、1:n(一对多)和n:m(多对多)关系。这些关系描述了不同实体之间的连接方式和数量关系。而下面这首节选诗可以有助于对实体关系的理解。

一沙一世界,一花一天国,君掌无限天,刹那即永恒
  • "一沙一世界" 可以对应数据库中的 1:1 关系,表示两个实体之间的一对一关联。这意味着一个实体只与另一个实体相关联,就像每一粒沙子都代表一个世界。
  • "一花一天国" 可以对应数据库中的 1:n 关系,表示一个实体与多个相关实体之间的关联。就像每朵花都代表一个天国,一个实体(花)可以与多个相关实体(天国)相关联。
  • "君掌无限天,刹那即永恒" 可以对应数据库中的 n:m 关系,表示两个实体之间的多对多关联。一个实体可以与多个其他实体相关联,并且每个实体也可以与多个其他实体相关联。这种关系就像君主掌握着无数个天国,同时每个刹那都可以代表永恒。

这样的比喻有助于理解不同的数据库关系类型。在数据库设计中,通过对这一首诗歌的记忆并映射到关系上,进一步加深对实体关系联系的理解,再通过这些关系来建立实体之间的关联,确保数据的一致性和准确性。