設計模式 日志系統設計_模式:我們設計系統的故事

設計模式 日志系統設計

Design Patterns are some of the most over-used concepts in design today. And we all know what happens when you have some ideas all over the place. We start repeating them like parrots and applying them to everything, therefore distorting their meaning. We end up missing the point with over-complicated concepts and lots of fancy words. So here is my humble attempt to bring more clarity to what design patterns are while applying something I live for: Always keep it simple!

設計模式是當今設計中一些最被過度使用的概念。 我們都知道當您到處都有想法時會發生什么。 我們開始像鸚鵡一樣重復它們,并將它們應用于所有事物,因此扭曲了它們的含義。 我們最終由于過于復雜的概念和許多花哨的單詞而錯過了這一點。 因此,這是我謙虛的嘗試,以便在應用我所生活的東西時更加清楚地說明什么設計模式:始終保持簡單!

把事情簡單化 (Keep it Simple)

In my article ‘Understanding the parts of a Design System’ I touch-pointed on patterns with a more ‘neutral’ definition:

在我的文章“ 理解設計系統的各個部分 ”中,我指出了具有更“中性”定義的模式:

Patterns consist of a reusable collection of components that can be defined by their respective interactions when solving a design problem. These need to be adopted and documented as business cases and together build a consistent and robust ecosystem.

模式由可重用的組件集合組成,這些組件可以通過解決設計問題時它們各自的相互作用來定義。 這些需要作為業務案例采用并記錄在案,并共同構建一個一致且強大的生態系統。

As mentioned in that same article, and based on this definition we can define 3 key metrics that help us identify and validate what a pattern is:

如同一篇文章中所述,根據此定義,我們可以定義3個關鍵指標,這些指標可以幫助我們識別和驗證模式是什么:

  1. A pattern is a solution to a common design problem, always linked to a business case.

    模式是始終與業務案例聯系在一起的常見設計問題的解決方案

  2. A pattern is reusable by nature and always linked to components and other pieces of a design system.

    模式本質上是可重用的 ,并且始終鏈接到設計系統的組件和其他部分。

  3. A pattern must be documented and provide guidelines about how the problem was solved by the product team.

    必須記錄模式,并提供有關產品團隊如何解決問題的準則。

Paradoxically, in this case, a simple enough definition alone could lead to multiple interpretations and cherry-picking when applying patterns. So how can we explain it better while keeping it simple? The solution I have found is to give a more specific format to this definition. This will help us preserve its simplicity while enabling design systems teams to be on the same page when working with patterns.

矛盾的是,在這種情況下,僅使用一個簡單的定義就可以在應用模式時導致多種解釋和挑剔。 那么我們如何在保持簡單的同時更好地解釋它呢? 我發現的解決方案是為該定義提供更具體的格式。 這將有助于我們保留其簡單性,同時使設計系統團隊在使用模式時可以處于同一頁面上。

將模式視為故事 (Think of Patterns as Stories)

We, humans come from the factory with a strong need to believe in stories in order to cooperate effectively. In the tech world, these stories are translated into values and rules that define who we are and how we work. From companies values to systems structures, the stories are there to guide us and give us meaning. Now, apply this to patterns.

我們人類來自工廠,他們非常需要相信故事才能有效合作。 在科技界,這些故事被轉化為價值觀和規則,以定義我們是誰以及我們如何工作。 從公司價值到系統結構,這些故事可以引導我們并賦予我們意義。 現在,將其應用于模式。

A pattern is a story about how a common problem was solved and what we can learn from it.

模式是一個關于如何解決常見問題以及我們可以從中學到什么的故事。

Like with every story, there is a narrative structure. It starts with an introduction and the development of the plot and characters, followed by a climax, falling action and a final resolution or conclusion. A lesson learned.

就像每個故事一樣,都有敘事結構。 它從情節和人物的介紹和發展開始,然后是高潮,跌倒的動作以及最終的解決方案或結論。 一個教訓。

Image for post
The narrative structure
敘事結構

At first, this might seem like something hard to connect with how we define patterns or design systems in general. But if we look closer, we can see how a story gives us not only a format we -humans- love and find easy to digest, it also gives us the structure we need to define, organise and maintain patterns.

首先,這似乎與我們通常定義模式或設計系統的方式聯系起來有些困難。 但是,如果我們仔細觀察,我們會發現故事不僅為我們提供了一種人類喜歡且易于消化的格式,而且還為我們提供了定義,組織和維護模式所需的結構。

The narrative structure of patterns
The narrative structure of patterns
模式的敘事結構

And now, let’s apply this narrative structure to a documentation hierarchy:

現在,讓我們將此敘述結構應用于文檔層次結構:

documentation structure
Same, but different.
相同,但不同。

這個故事中的教訓 (The lessons in this story)

Like with every story, this is the part where we arrive at a resolution. Understanding patterns as the stories of our system gives us some benefits worth mentioning here as key take-aways:

像每個故事一樣,這是我們達成解決方案的部分。 將模式理解為我們系統的故事會給我們帶來一些好處,在這里值得一提的關鍵要點:

  1. It turns the spotlight on documentation. As Nathan Curtis -one of the most important voices in the design systems arena- presented it once: ‘Patterns are made of lots of words’. Thinking of patterns as stories brings the focus to how we tell these stories. Applying this to our design system results on understanding your documentation repositories as the natural place for patterns to live and to evolve.

    它將焦點放在文檔上。 正如設計系統舞臺上最重要的聲音之一內森·柯蒂斯(Nathan Curtis)所說的那樣:“模式是由很多單詞組成的”。 將模式視為故事,將重點放在我們講這些故事的方式上。 將其應用到我們的設計系統中,就可以將您的文檔存儲庫理解為模式生存和發展的自然場所。

  2. Just the right format. A narrative structure gives us an excellent format to document and read patterns. Starting with introducing the problem to be solved and its impact (conflict), to the system dependencies (characters of the story), the visuals (climax) and the final guidelines (falling action and resolution).

    正確的格式。 敘事結構為我們提供了記錄和讀取模式的出色格式。 從介紹要解決的問題及其影響(沖突)開始,到系統依存關系(故事的特征),視覺效果(高潮)和最終準則(下降的行動和解決方案)。

  3. It creates a clean-cut between patterns and components. Thinking of patterns as stories put them on a completely different level based on its very nature while preserving their links to components and other elements of the system. This will prevent us from treating patterns as ‘more complex components’, something that can lead to over-complex templates hard to use and maintain.

    它在圖案和組件之間創建了清晰的邊界。 將模式視為故事,根據其性質將它們置于完全不同的級別,同時保留它們與系統組件和其他元素的鏈接。 這將阻止我們將模式視為“更復雜的組件”,這可能會導致難以使用和維護的過于復雜的模板。

  4. It brings clarity to our design system. A design system with the right combination of a well-defined structure and a story-based documentation strategy is a more usable system. Easier to read, understand, and adopt by multiple teams and individuals across the organisation.

    它使我們的設計系統更加清晰。 具有良好定義的結構和基于故事的文檔編制策略的正確組合的設計系統是更實用的系統。 組織中的多個團隊和個人更易于閱讀,理解和采用。

Building patterns like we build stories opens the door to create more and better stories, not only about complex solutions but about simpler parts of the system. In the same way, we can enjoy a variety of stories, from long non-fiction projects to short graphic novels, the same could apply to the patterns in our system. Investing in the idea that patterns can explain more than complex problems, allows us to build a well-structured system based on good stories. Among the already mentioned benefits, it also brings a more human touch to an already methodical construction.

像構建故事一樣的構建模式為創建更多更好的故事打開了大門,不僅涉及復雜的解決方案,而且涉及系統的更簡單的部分。 同樣,我們可以欣賞各種各樣的故事,從長篇非小說作品到短篇小說作品,同樣的故事也可以應用于我們系統中的模式。 投資于模式可以解釋的不僅僅是復雜問題的思想,這使我們能夠基于好的故事構建結構良好的系統。 在已經提到的好處中,它還為已經有條不紊的結構帶來了更人性化的感覺。

Disclaimer: In 2017 I wrote an article about storytelling to serve as a word of caution when it comes to discussing and creating stories. Everything I have covered here is an intent to create systems and products that serve better the users. When getting excited about storytelling, always remember: The stories of our system/product are for us -the curators- to write, but for them -our users- to tell.

免責聲明: 2017年, 我寫了一篇有關講故事的文章 ,在討論和創作故事時要謹慎。 我在這里介紹的所有內容都是為了創建可以為用戶提供更好服務的系統和產品。 當對講故事感到興奮時,請始終記住:我們的系統/產品的故事是由我們(策展人)編寫的,但對于他們(我們的用戶)要講的。

Thank you for reading!

感謝您的閱讀!

This article was written with the Writty app??

本文是使用Writty應用編寫的

翻譯自: https://blog.prototypr.io/patterns-the-stories-of-our-design-systems-dc5f788f33b9

設計模式 日志系統設計

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/274550.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/274550.shtml
英文地址,請注明出處:http://en.pswp.cn/news/274550.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

前端好還是后端好,看看7年前端和后端怎么說

大家好,我是若川。持續組織了近一年的源碼共讀活動,感興趣的可以 加我微信 ruochuan12 參與,每周大家一起學習200行左右的源碼,共同進步。同時極力推薦訂閱我寫的《學習源碼整體架構系列》 包含20余篇源碼文章。歷史面試系列。另外…

提升UI技能的5個步驟

element ui 步驟重點 (Top highlight)What to do when you know how to use the software and know the basics of designing interfaces? There are a few simple things that you can do to take your skills to the next level, and you don’t need to invest in expensiv…

空降進阿里的 P10 都是什么人

周末見了幾個朋友,吃飯時聊到他們前老板郭東白(阿白),對了,我朋友在速賣通,他說阿白是 14 年來的阿里,直接就空降進了他們部門,當上首席架構師,后來又升到了 CTO&#xf…

linux下練習 c++ 關聯式容器multimap特性

/* multimap特性 key可以重復 不支持下標訪問 */ #include<iostream> #include<string> #include "print.h" #include<map> using namespace std; typedef pair<int,string> pairmp; typedef multimap<string,double> MS;int main() …

一致性設計,而不是一致性

一致性設計重點 (Top highlight)If we ask any design system advocate what are the main reasons to build and maintain a design system, chances are ‘Consistency’ will come up as first or second in their list, together with the ‘A single source of truth’ po…

如何在 React 應用中使用 Hooks、Redux 等管理狀態

大家好&#xff0c;我是若川。持續組織了近一年的源碼共讀活動&#xff0c;感興趣的可以 點此掃碼加我微信 ruochuan12 參與&#xff0c;每周大家一起學習200行左右的源碼&#xff0c;共同進步。同時極力推薦訂閱我寫的《學習源碼整體架構系列》 包含20余篇源碼文章。歷史面試系…

長語音識別體驗_如何為語音體驗寫作

長語音識別體驗重點 (Top highlight)“Voice User Interface (VUI) Designer” is an increasingly prominent job title in the tech world. A VUI designer typically writes the conversation and designs the flow between a VUI — an invisible interface that communica…

表連接

初學SQL表連接的時候&#xff0c;什么笛卡爾積&#xff0c;左連接&#xff0c;右連接看的頭都大了 后來看了《SQL Server技術內幕2008&#xff1a;T-SQL查詢》之后&#xff0c;豁然開朗。今天寫數據庫又用到了表連接&#xff0c;印象有點模糊了&#xff0c;趕緊找地方寫下來先。…

分析了1011個程序員的裁員情況后得出的啟示

大家好&#xff0c;我是若川。持續組織了近一年的源碼共讀活動&#xff0c;感興趣的可以 點此掃碼加我微信 ruochuan12 參與&#xff0c;每周大家一起學習200行左右的源碼&#xff0c;共同進步。同時極力推薦訂閱我寫的《學習源碼整體架構系列》 包含20余篇源碼文章。歷史面試系…

定義設計系統

System is “the whole creation, the universe,” from Late Latin systema “an arrangement, system,” from Greek systema “organized whole, a whole compounded of parts”.系統是晚期拉丁語系統的“整體創造物&#xff0c;宇宙”&#xff0c;是希臘語系統的“一種安排…

如何備份linux系統(轉)

如何備份linux系統 不像Windows&#xff0c;Linux不限制根用戶存取任何東西&#xff0c;因此&#xff0c;你完全可以把一個分區上每一個的文件放入一個TAR文件中。來實施這一方法&#xff0c;用這個成為根用戶&#xff1a;sudo su接著去你的文件系統的根目錄&#xff08;在我們…

2w行代碼、200個實戰項目,助你修煉5大編程基本功。【送書《設計模式之美》】...

大家好&#xff0c;我是若川。之前送了很多書&#xff0c;現在又和異步圖書合作再次爭取了幾本書&#xff0c;具體送書規則看文末。所謂練武不練功&#xff0c;到老一場空&#xff0c;以技術為驅動的程序員同樣如此。面向對象編程范式、設計原則、代碼規范、重構技巧和設計模式…

C++第10周項目2擴展之2參考——迭代求和

課程首頁地址&#xff1a;http://blog.csdn.net/sxhelijian/article/details/7910565【項目2擴展之2&#xff08;選做&#xff09;】計算下面的式子&#xff0c;不能使用求冪函數pow()式一&#xff1a;#include <iostream> using namespace std; int main( ) { int i,m1;…

swift自行車品牌介紹_品牌101:簡介

swift自行車品牌介紹Sometimes when I’m around designer friends and there’s a lull in the conversation one of us will blurt out, “What is branding, anyway?” Then we shrug our shoulders and chuckle, knowing that the answer is far too complex to sum up in…

flutter 透明度動畫_Flutter中的動畫填充+不透明度動畫?

flutter 透明度動畫Flutter SDK provides us with many widgets which help us in animating elements on screen easily by implicitly managing the animations i.e. we need not worry about creating and managing intances of AnimationController during the lifecycle o…

阿里 P10 是怎樣的存在?

談起中國頂尖的程序員&#xff0c;很多人首先會想到之前的雷軍、張小龍&#xff0c;還有現在的多隆、行癲、道哥等人&#xff0c;但今天我想聊一聊的這位大神&#xff0c;他的技術成就也同樣令人矚目。19 年獲得國家技術發明二等獎、20 年獲得國家計算機協會頒發的“ CCF 杰出工…

vba交付圖表設計_您是在為交付目的而“設計”嗎?

vba交付圖表設計重點 (Top highlight)It’s a regular Monday morning. All the design team is organizing the tasks for the ongoing week and reviewing requirements and deadlines for the various projects at the studio or company you work at. Suddenly, among the …

正則表達式限制文本框只能輸入數字

許多時候我們在制作表單時需要限制文本框輸入內容的類型&#xff0c;下面我們用正則表達式限制文本框只能輸入數字、小數點、英文字母、漢字等各類代碼。 1.文本框只能輸入數字代碼(小數點也不能輸入) <input οnkeyup"this.valuethis.value.replace(/\D/g,)" …

前端必讀書籍推薦

大家好&#xff0c;我是若川。持續組織了近一年的源碼共讀活動&#xff0c;感興趣的可以 點此掃碼加我微信 ruochuan12 參與&#xff0c;每周大家一起學習200行左右的源碼&#xff0c;共同進步。同時極力推薦訂閱我寫的《學習源碼整體架構系列》 包含20余篇源碼文章。歷史面試系…

window程序設計學會_是時候我們學會設計合適的餅圖了

window程序設計學會Pie charts are common in data science — next to the 餅形圖在數據科學中很常見- bar chart and the line plot, the pie chart is incredibly standard and simple. A circle is split into several slices, with each slice’s angle representing how…