SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
網站套版最      恨 的幾件事
                             何澤清 TSE-CHING HO
                            2013/01/13 WEBCONF.TW




Sunday, January 13, 13
Sunday, January 13, 13
套版是誰的事?




                         HTTP://WWW.SLIDESHARE.NET/LIS186/20130112WEBCONF



Sunday, January 13, 13
有⽔水很重要,但不要只會修⽔水管

                     HTML 5

                     CSS / SASS / COMPASS

                     JAVASCRIPT / COFFEESCRIPT

                     SPRITE IMAGES

                     WEB FONTS / ICON FONTS

                     SVG / CANVAS

                     ......

                                            HTTP://CHARACTER.WORKERCN.CN/C/2011/02/09/110209154040128279566.HTML




Sunday, January 13, 13
HTTPS://SPEAKERDECK.COM/EVENWU/2012-WEB-TECHNOLOGY-BY-RGBA-GROUP




                         網⾴頁設計是資訊流的整理
                         河川整治是很重要的,不然會氾濫成災!

Sunday, January 13, 13
CODE FOR SYSTEM
                                   NOT FOR PAGES
                     SCALABLE AND MODULAR                           NAMING CONVENTION
                     ARCHITECTURE FOR CSS
                                                                        USE CLASS OVER ID
                     CATEGORIZATION
                                                                        USE CHILD SELECTOR
                         BASE                                           (.MENU > LI > A)

                         LAYOUT                                         APPLY A CLASS WHEN
                                                                        THE HTML WON’T BE
                         MODULE                                         PREDICTABLE

                         STATE                                      DECOUPLE HTML/CSS

                         THEME

                            HTTPS://SPEAKERDECK.COM/HLB/MAINTAINABLE-CSS-WITH-SASS-AND-COMPASS




Sunday, January 13, 13
⽅方法濫⽤用是災難的開始




Sunday, January 13, 13
有時候不只是遺尿的問題

                     沒有 CSS

                     沒有 CSS REST

                     沒有 CSS FRAMEWORK

                     沒有統⼀一的 CSS 命名規則

                     沒有 NAMESPACE

                     沒有依樣板⾴頁⾯面將 CSS 獨
                     ⽴立成⼩小檔案

                                        HTTPS://SPEAKERDECK.COM/EVENWU/2012-WEB-TECHNOLOGY-BY-RGBA-GROUP




Sunday, January 13, 13
是包了尿布,還會尿床的問題

                     沒有 JAVASCRIPT
                     FRAMEWORK

                     沒有統⼀一的命名規則

                     沒有依樣板⾴頁⾯面將
                     JAVASCRIPT 獨⽴立成⼩小檔案

                     沒有模組化

                     沒有 NAMESPACE

                     沒有 I18N 策略



Sunday, January 13, 13
有時候我只是想套
                                某個⾴頁⾯面的某個組件
                                     FORM_WIZARD.HTML




                         HTTP://THEMEFOREST.NET/ITEM/MOONCAKE-RESPONSIVE-ADMIN-TEMPLATE/3138068




Sunday, January 13, 13
看起來很有條理




Sunday, January 13, 13
其實是個災難




                         ⼀一堆跟樣板⾴頁⾯面
                          不相干的 CSS




Sunday, January 13, 13
即使是 EMPTY ⾴頁⾯面
                               還是災難


                         EMPTY.HTML




Sunday, January 13, 13
別忘了 JAVASCRIPT 也有同樣問題
                   FORM_WIZARD.HTML    EMPTY.HTML




                                      這些都⽤用得到?
                                      別亂放外掛!



Sunday, January 13, 13
Sunday, January 13, 13
要怎樣才不會被幹到爆呢?




                         考量應⽤用程式⼯工程師的使⽤用者經驗!

Sunday, January 13, 13
設計師,如果能夠

                     遵循被社群接受的法則

                     ⼀一定要有 EMPTY.HTML ⽤用來單純套 LAYOUT 版⾯面

                     每個樣板⾴頁⾯面都有獨⽴立、專屬的 CSS / JAVASCRIPT 檔案們

                     每個組件的 CSS / JAVASCRIPT 檔案都能獨⽴立存在、⽅方便組裝

                     組件請以某⼀一個 CONTAINER 為單位(.WIZARD)

                     設計師也是要注重 ASSETS 的維護性

                     注意 3 PARTY 套件的版本差異



Sunday, January 13, 13
其實我只是想舒坦地套個版




Sunday, January 13, 13
梗都是別⼈人的,這就是套版。

                         最幹的就是套不進去!




Sunday, January 13, 13
DEFINED? ME


                     何澤清 Tse-Ching Ho

                     twitter: @tsechingho

                     https://github.com/
                     tsechingho

                     Ruby, Rails, NoSQL

                     ⽣生物資訊與醫療系統




Sunday, January 13, 13

Mais conteúdo relacionado

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Webconf2013