<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 陳劭恩 Sean, Shao En Chen on Medium]]></title>
        <description><![CDATA[Stories by 陳劭恩 Sean, Shao En Chen on Medium]]></description>
        <link>https://medium.com/@seanchen47?source=rss-fdcd3ff664d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*M2BaRUMwCl4r1yYY.</url>
            <title>Stories by 陳劭恩 Sean, Shao En Chen on Medium</title>
            <link>https://medium.com/@seanchen47?source=rss-fdcd3ff664d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:05:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@seanchen47/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Technology Probes]]></title>
            <link>https://medium.com/@seanchen47/technology-probes-4f0beb8b7b89?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f0beb8b7b89</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[interaction]]></category>
            <category><![CDATA[crowd-sourced]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[interaction-design]]></category>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Tue, 02 Apr 2019 01:03:42 GMT</pubDate>
            <atom:updated>2019-04-02T02:08:46.685Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ppll307SwtWKoErG" /><figcaption>Photo by <a href="https://unsplash.com/@4dgraphic?utm_source=medium&amp;utm_medium=referral">Alexander Dummer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Hutchinson, Hilary, et al. “Technology probes: inspiring design for and with families.” <em>Proceedings of the SIGCHI conference on Human factors in computing systems</em>. ACM, 2003.</blockquote><p>People are taking advantages of the development of computers and the Internet nowadays. Some argue that technologies are isolating and tearing individuals apart from their families and friends. People no longer know their neighbors, socialize with friends, or get along with their family as often as before. Meanwhile, they utilize emails, instant messages and social media to keep connected with others, distant, as part of their daily lives. Skeptical of these two conflicting feelings, the authors tried to explore how computer technology could be used to support communication.</p><p>In 2002, an European Union-funded project, InterLiving, was launched. It aimed to study and develop technologies and artifacts for communication between generations, together with families. Authors of the paper came from the coordinators and partners of the project, including CID (Centre for User Oriented IT-Design) at the Royal Institute of Technology in Stockholm, INRIA (Institut Nationale de Recherche en Informatique et Automatique), LRI (Laboratoire de Recherche en Informatique Université de Paris-Sud) in France and the Human-Computer Interaction Lab at the University of Maryland in the USA. InterLiving cooperated with several distributed and multi-generated families from Sweden, the U.S. and France. To find the potentials for new technologies that support communication, the authors adopted a variety of established research methods: participatory design, ethnography, cultural probes and <strong>technology probes</strong>, to achieve three interdisciplinary goals in order to develop novel ways of communication in home:</p><ol><li>The social science goal of understanding the needs and requirements of the family members;</li><li>The engineering goal of bringing them to new technologies, rather than the accustomed computer settings;</li><li>The design goal of inspiring them to take part in the design of new technologies.</li></ol><p>So what is technology probes? By definition, a probe is an instrument that is deployed to find out the unknown, that returns insightful data. Although it might fail, it is invaluable during the design process to collect data and feedbacks from users. Probes are used to tailor the complex environment and diverse participants.</p><p>Technology probes combines the three goals mentioned above to gather information in real-world setting, field-test and build the technology, and inspire users and designers to think of new technologies and methods to achieve their needs and desires.</p><p>Technology probes are like cultural probes — a technique used to inspire ideas in a design process — they affect the user’s behaviors and encourage the user to come up with new ideas, although cultural probes may not involve any technology in the design process. However, technologies installed in technology probes does not have to be complicated; they should be easy to use, well-defined and open-ended, because as technologies are essential elements in technology probes, their goal is to motivate new thoughts, as technical foundations, not to exhaust designers and users.</p><p>In the project, the authors were interested to learn how family members communicate with each other. They also wanted to know how and by whom probes were used to help communications. But besides using ethnographic interviews with the families to gather the information, I think one significant difference between the traditional design process and the probes is that not only did designers extract information from interviews and accordingly build something to fulfill the needs and desires of the users by themselves, but they let the users participate the design and implementation, inspiring not just the designers but the users as well. Feedbacks and advice were given instantly.</p><p>Low-tech prototyping workshops were held to elicit creative ideas, and the team came up with two probes: MessageProbe and VideoProbe. The first one was a digital post-it billboard that enabled distributed family members to leave notes (text and drawings were supported). The latter provided a simple method of sharing impromptu images among family members. Family members could take snapshots, and browse images with a remote control, before the images fade away. Although the two probes encountered some technical issues, they both supported the idea of technology probes: to help reveal needs, to provide real-life use cases and scenarios, and to introduce people to new technologies from that they’ve been used to.</p><p>I find technology probes interesting and practical in following reasons:</p><ul><li>It enables anyone to participate in the design process, with or without technical or design background. Everyone should be heard, and not just scientists can invent new stuffs.</li><li>It is faster for the users to be heard, when they are one of who are developing a new probe. Their feedbacks are also more concrete if they’ve done something themselves.</li><li>It brings new technologies to everyone. More ways to think of an existing problem. More ideas can thus be collected.</li></ul><p>This project reminds me of a video I watched several years ago, which was an advertisement of SoftBank from Japan. While the elderly are used to traditional media and may not be so familiar with modern applications such as social media and instant messages, they still want to catch up the trend, solely in order to stay in touch with their younger family members. People come up with ways to integrate traditional and novel technologies to support the elderly’s needs.</p><p>The video may not have shown much for the family members to join as part of the design team, but it did show how new technologies were brought into families, and how people accepted and learned from those technologies.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyY12m7tjghI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyY12m7tjghI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyY12m7tjghI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c2d0c1822bc1804ad916d234afa19fb/href">https://medium.com/media/5c2d0c1822bc1804ad916d234afa19fb/href</a></iframe><p>In the paper, a term “CSCW” was mentioned. So I looked it up. It was coined by Irene Greif and Paul M. Cashman in 1984. From Wikipedia, it is said that “CSCW is a generic term, which combines the understanding of the way people work in groups with the enabling technologies of computer networking, and associated hardware, software, services and techniques.” It supports teamwork and collaboration of team members, and supports organized activities, which emphasizes both each individual and the team.</p><p>The idea is rather abstract, but it was mentioned in the paper that this technique was adopted and used to develop the probes. It’s going to be taught in class in a few weeks, so I look forward to learning it. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f0beb8b7b89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Type and image: The language of graphic design]]></title>
            <link>https://medium.com/@seanchen47/type-and-image-the-language-of-graphic-design-cad170195d4d?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cad170195d4d</guid>
            <category><![CDATA[curation]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[graphicspace]]></category>
            <category><![CDATA[human-centered-design]]></category>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 01:39:14 GMT</pubDate>
            <atom:updated>2019-02-05T13:08:44.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*fbaSSzc35I8SAngh.jpg" /><figcaption>Type and Image: The Language of Graphic Design, by Philip B. Meggs</figcaption></figure><blockquote>“Man is the greatest pattern-maker and pattern-perceiver. No matter how primitive his situation, no matter how tormented, he cannot live in a world of chaos. Everywhere he imposes form.”</blockquote><p>Imagine that you are a graphic designer. You are ready to tell vivid stories. You have so many brilliant ideas to demonstrate. You open your laptop and open a new file in Illustrator. An empty white plane is shown on the screen. It’s obvious that your design has to be upon a flat, 2-dimensional plane, an area of space bounded by the four edges. The amount of messages the space can carry is limited. Now what? How do you start?</p><p>This may sound familiar in your recent life, right? You don’t have to be a graphic designer to face the problem. You need some strategies to arrange the information you have in your design, and effectively deliver it to the audience.</p><h4>Geometric v.s. Optical Point</h4><p>In the book, the author, Philip B. Meggs, gave the first suggestion: you should know about the space you are designing on, and how human vision works. Where the horizontal and vertical axes cross forms a powerful focal point called <strong>the geometric point</strong>. <strong>The optical point</strong>, the center to the human’s eyes, is slightly above the geometric point.</p><h4>Wait, who’s the author?</h4><p>The author, Philip B. Meggs, was an American graphic designer, historian, professor in Virginia Commonwealth University, and author of books on graphic design. He is the author of <em>History of Graphic Design (1983)</em>, a definitive, standard read in the field. According to Wikipedia, he believed that graphic design need adequate understanding of the past, and its relation with art. He is said, by Steven Heller, a noted contemporary graphic designer, to have “built a monument to graphic design’s legacy”.</p><p>Back to the topic, one good example is the design of the posters of movies. In many countries and cultures, people naturally tend to read from left to right. They naturally scan from the top-left to the bottom-right corner, passing through the focal point, above the geometric point illustrated by the auxiliary lines. Text is put below, and the posters produce a satisfying and effective balance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*0SAlSnhkKs1rNm7OOH-sEg.png" /><figcaption>the poster of Inception, found on the Internet</figcaption></figure><h4>Form Relationships in Graphic Space</h4><p>People seek order and clarity, as well as flexibility and originality, in environments and communications. To create such order, a graphic designer has some principles to follow and have their work based on.</p><ul><li><strong>Alignment</strong></li></ul><p>Relationships are established when the central axes or edges of elements are aligned. They form a pattern, connection, with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*5XtPpS6pXP9tcJk_FhvN7A.png" /></figure><ul><li><strong>Continuation</strong></li></ul><p>Eyes movements follow alignments. The book mentioned a metaphor that an eye movement is like a boat flowing forward in the water after its motor is cut off. Continuation creates alignments and relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/0*kA-qCCouPB6iB-KK.jpg" /><figcaption>In many culture, people read from top-left to bottom-right. An eye movement creates a flow.</figcaption></figure><p>There are a few famous patterns of how people read (especially online). A direct sweep of sight from a corner diagonally to another corner is called the <strong>Gutenberg diagram</strong>, the blue line in the above image. It is known as the <strong>reading gravity</strong>, generally speaking of reading from left to right, from top to bottom.</p><p>Also, there are the <strong>F-pattern layout</strong> and the <strong>Z-pattern layout</strong>, each describing a reader’s eyes movement. These patterns are discussed in eye tracking studies. In a graphic design with text-heavy content and few design distractions, such as a search result page, the reader tend to scan the text in the F-pattern. These patterns suggest that readers do not have enough patience to read through every word but scan. Therefore graphic design should take these into account and provide sufficient guidance for continuation.</p><ul><li><strong>Proximity</strong></li></ul><p>The distance of the elements creates relationship between them. I think that in different languages, say English, distances between words and characters create semantics and syntax. To me it seems like how we recognize the components (characters) of words, and different words. Together they form meanings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*O2DYy7Lq90loyHx17Y_nmg.png" /><figcaption>“The interval of space between 1 and 3 — connecting them — now separates them”</figcaption></figure><ul><li><strong>Correspondence</strong></li></ul><p>Similar size, shape, color, tone, texture and direction develop correspondence.</p><ul><li><strong>Completion</strong></li></ul><p>When elements have sufficient relationships of alignment, continuation, proximity and/or correspondence, they are seen as complete, one unified whole. What’s interesting is that audience participation can be part of the communications process of completion.</p><h4>Modular Relationships</h4><ul><li>Module</li></ul><p>A module is the basic elementary unit that can be combined to become a whole. The reading says that the use of a modular grid with horizontal and vertical lines may be the most common form of modular structure in graphic design.</p><ul><li>Visual program</li></ul><p>A visual program is the parameters to unify the design (or a sequence of designs). Grid system, colors, type style, size. These are all possible factors.</p><p>Russian constructivist designers in the 1920s had made important contributions to the development of visual programs. A trilingual book, <em>The Isms of Art, </em>by El Lissitzky in 1925, is a milestone using modular grid system and mathematical measurement to bring order to complex visual materials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*kshWpTshwfIEYB_G7FaskA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*wMtHnzwPyl2djMZFUZbLJw.png" /><figcaption>screenshots of The Isms of Art</figcaption></figure><p>By using black rules and bars, the contents on a page are divided into columns and rows. The page numbers and picture numbers provide continuity, establishing a flow to the reader’s eyes. Also, the grid layout is used consistently throughout the portfolio, bringing order, organized structure and clarity to the contents. Consistency can be observed through the use of the grid layout. Even its math measurement (in the book, a 12:6:8:4 ratio of units of contents is mentioned) is constantly used to provide consistency, while flexibility and originality are maintained.</p><p>It’s not like hypertext, non-sequential writing. The idea of hypertext is that it connect chunks of text (lexia) by alternative choices. The reader uses links to choose and read what they want to read, and thus the reading becomes non-linear. Grid system is linear and sequential. It does not let the audience choose what to read, but guiding them how to read.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cad170195d4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End of the First Semester]]></title>
            <link>https://medium.com/@seanchen47/end-of-the-first-semester-b108de8a81ae?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b108de8a81ae</guid>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Sun, 16 Dec 2018 08:41:10 GMT</pubDate>
            <atom:updated>2018-12-16T08:41:10.423Z</atom:updated>
            <content:encoded><![CDATA[<p>2018, Dec. 13</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0t5jb9LGZhKte5czaytZiQ.jpeg" /><figcaption>Closest In-N-Out from LAX</figcaption></figure><p>坐在洛杉磯機場旁的 In-N-Out 店外的陽傘座位上，我翻著帶來的書，突然想打開筆電寫些字。前來接我的朋友還有將近兩個小時才到，應該夠我寫完一篇文章。我不敢說我將記錄整趟旅程的每一件事，因為我們都擅長紀錄開始，也都因為怠惰而忘了持之以恆，但我想寫下今天發生的事，流水帳地。</p><p>早上到達休士頓 IAH 機場，我不斷回憶八月時前往馬里蘭的時候，機場和我記憶中是否長得一樣。最大的不同在機場今天人特別多，明明提早了一個多小時到，光是排隊 Check-In 就差點趕不上班機。八月時我在飛機上玩薩爾達荒野之息，這次則是將塵封已久的馬力歐奧德賽繼續破關。機長廣播即將在 17 分鐘後降落，我隨著靠窗座位的男子望向窗外。房屋密集的程度和德州天差地別，遠遠的地平線看得到數座棕色的山。仔細一想，在大學城幾乎是看不到山的，那裏應該是我看過地平線最低看得最遠的地方了，即使在房屋除了大城市外普遍低矮的美國應該也是數一數二的。或許是我去過的城市不夠多吧。</p><p>到了洛杉磯機場，我查著機場有什麼地方能讓我度過三個小時的等待，突然在背包客棧網站看到一句文字：不到一英哩的 In-N-Out 這個擁有一大堆死忠迷的漢堡連鎖店，距離一個飛機起降跑道很近，是近距離看飛機起降的好地方。走出航站，馬上就看到文中所說前往搭乘的 Shuttle。一問之下才知道這班 Shuttle 已改成付費預約才能搭乘，不過好心的駕駛說這次就讓我搭車。一下車就聞到了漢堡的香味，真的不誇張，難怪文章說下車後跟著鼻子走就會到 In-N-Out。</p><p>坐在店外的座位被陽光直射，一邊吃著漢堡薯條，一邊觀察周圍的人們。前方的停車位從來沒空過，店裡也擠滿客人。因為行李很重我也無法帶著它四處逛周圍的街道，因此我決定在這裡等朋友來接我。突然左邊傳來漸近的巨響，一架飛機就從眼前飛過，好像伸出手就能抓住。DELTA，中國東方航空，UNITED，一架架不同塗裝的飛機從左至右往跑道的方向飛過。沒過多久，右方也傳來響聲，一架飛機順著跑道往前滑行。機場離海很近，我試著觀察海鳥在飛機經過時的反應，只見牠停在路燈上，似乎不把飛機放在眼中。在德州看到的鳥除了隨處可見的麻雀鴿子，大多都是老鷹，到了離海更近的城市，鳥類品種的不同讓我感受到自己到了一個不同的城市。</p><p>寫到這裡，天色漸漸黑了，朋友也到了。先寫到這裡好了，我先去 In-N-Out 幫朋友買包薯條。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwUuWw_8K_twJsQhW88jhg.jpeg" /><figcaption>Their burger and fries are really good</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b108de8a81ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aviation — 從台灣到卡城]]></title>
            <link>https://medium.com/@seanchen47/aviation-%E5%BE%9E%E5%8F%B0%E7%81%A3%E5%88%B0%E5%8D%A1%E5%9F%8E-aa7cf189db60?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa7cf189db60</guid>
            <category><![CDATA[texas]]></category>
            <category><![CDATA[graduate-school]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[tamu]]></category>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Tue, 07 Aug 2018 02:50:37 GMT</pubDate>
            <atom:updated>2019-01-16T22:08:07.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4tutWGCQWwXjyUw-k1eAQ.jpeg" /><figcaption>抱歉沒時間和你們每個人好好說說話，謝謝你們。</figcaption></figure><p>謝謝爸媽，謝謝慈軒和大雞雞天團（這團名真的太恥了），謝謝你們來送機，謝謝爸爸送他們回去台北。謝謝所有朋友和家人的祝福，出發的前幾天我過得非常好。我覺得自己一向不懂得告別（有誰懂嗎？）告別一向倉促，覺得還有好多話沒說。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIvdbVGgnhWhPIv1UcPoeQ.jpeg" /><figcaption>到休士頓才拍照，飛行距離 13040 KM</figcaption></figure><p>登機前視訊失敗，看來我是機場認證的邊緣人。上飛機，隔壁中國大叔脫鞋子，腳臭撲鼻，跟空姐反應後我們都獲得拖鞋（大叔直接不穿…），後來空調傳來陣陣花香終於獲得舒緩。一路上被大叔各種推擠，還被他的安全帶丟到。</p><p>飛了13000公里，飛行時間大約13個小時，睡了9小時。機上非常冷，大概一小時醒來一次。機上兩餐分別是豬排飯和青醬義大利麵（另外的選擇是番茄海鮮配馬鈴薯以及粥）。覺得水煮紅蘿蔔很好吃。看了半本黑塔，翻幾頁大誌，殺了隻人馬。在飛機上讀了慈軒的卡片。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRlBFg5DdH-QPh4Nn8b1sg.jpeg" /></figure><p>入境時什麼都沒被問，也沒有安檢，意外的輕鬆，提供護照和 I-20，按指紋就通過了。領完行李之後打給飯店請他們派車子來載我們，先確認自己在的航廈，透過電話飯店會告知在哪裡等車，覺得透過電話講英文比當面更困難。總算走到正確的出口上車，謝謝飯店櫃檯阿姨的耐心。飯店是 LaQuinta，前往卡城時沿途多次看到。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98sMFZ93hmzLIMW82Zh0Ug.jpeg" /><figcaption>住的兩個旅館早餐都差不多長這樣：cream cheese &amp; bagel, gravy</figcaption></figure><p>早餐有炒蛋肉排，還有一種蘑菇、絞肉和黑胡椒的醬，相當好吃。此外有各種麵包，牛奶麥片，咖啡，還有麵糊可以自己用鬆餅機做鬆餅（聽起來很潮，但其實兩個旅館都有，對飯店來說可能滿方便的）。昨晚的櫃檯阿姨看到我拿了藍莓貝果，還提醒我冰箱裏有 cream cheese。目前在美國遇到的人都很友善，禮貌且熱情（凡事總有例外）。開始覺得很多生活理所當然的詞彙都不知道怎麼用英文說。</p><p>搭上 Ground Shuttle 前往卡城（大學城的 nickname）。Ground Shuttle 是 9 人座的黑色大型休旅車，大概是往返休士頓機場和卡城之間最方便的交通工具了。車程約一個半小時，車上走道和座位都非常寬廣，不過價格不便宜，一趟至少 $35 起跳。</p><p>司機 Ken 向一個個乘客介紹了車上的設備，一發車就問大家能不能播搖滾樂，讚。德州意外地（？）有很多樹。發車 50 分鐘後到了 Buc-ee’s 休息，Ken 說大概是這裡最大的便利商店。停留 5–10 分鐘就繼續乘車了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4uQ3Hyg_YTZKyrLYjogtSQ.jpeg" /></figure><p>再次發車不久，Ken 突然叫大家等等往右看，會看到 Big Foot。原來是路邊有各種恐龍模型，也有大腳怪和耶穌像（什麼組合）。一位乘客分享他在加州看到一個招牌寫著「此有大腳怪」，結果是一面鏡子。路邊有幾隻牛，乾草堆，一片接著一片的草原。我們穿梭其中，時間被壓縮在綠色的隧道裡。</p><p>到卡城了。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fr2XQ7GQy-Ks%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dr2XQ7GQy-Ks&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fr2XQ7GQy-Ks%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/109a4bd7b23082216a3127928edd1159/href">https://medium.com/media/109a4bd7b23082216a3127928edd1159/href</a></iframe><p>======</p><p>P.S 第一篇文很零碎，除了沿路不斷處於趕車、找搭車處、和不敢說英文的情緒搏鬥，也是因為自己還無法適應，原來已經離台北這麼遙遠了。姑且先以這篇文紀錄過程所見現象，之後再來好好思考。</p><p>有想看什麼的話請告訴我！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa7cf189db60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[自己寫個 Wordpress 佈景主題]]></title>
            <link>https://medium.com/practicode/%E8%87%AA%E5%B7%B1%E5%AF%AB%E5%80%8B-wordpress-%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C-4325f4bf3903?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4325f4bf3903</guid>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 12:01:36 GMT</pubDate>
            <atom:updated>2017-07-26T12:01:36.797Z</atom:updated>
            <content:encoded><![CDATA[<p>經營網誌或電子商務的人可能時常聽到 Wordpress 的名字。對於想要快速搭建網站，或是對於不熟悉網站架設的人來說，Wordpress 提供一個相當快捷、功能多樣的方案，藉由操作介面修改設定，讓不懂 HTML、CSS 或是 PHP的人能夠迅速完成一個部落格、購物網站或作品集。Wordpress 擁有許多外掛支援各式各樣的功能，迅速更新的團隊，詳細完整的文件，支援多國語言，並且擁有廣大的使用者社群，上傳無數佈景主題與外掛功能。</p><blockquote>WordPress 是由 <a href="http://cafelog.com/">b2/cafelog</a> 發展而來，一個建立在 PHP 和 MySQL 上的個人發佈系統，遵循通用公共許可證（<a href="http://zh.wikipedia.org/zh-tw/GNU%E9%80%9A%E7%94%A8%E5%85%AC%E5%85%B1%E8%AE%B8%E5%8F%AF%E8%AF%81">GPL</a>）授權，它是一個日漸成熟及穩定的產品，專注於用戶體驗及<a href="http://webstandards.org/">網頁標準</a>。—— <a href="http://wptw.org/about-wordpress/">Reference</a></blockquote><p>但是，對開發者來說使用 Wordpress 多少有一些困擾，例如總有些時候即使瀏覽很久依然找不到適合自己使用的佈景主題（或外掛，但外掛不是這篇文章要討論的主題），若要以現成的佈景主題做修改又容易在找對應的功能上花費許多時間，或被別人的程式綁手綁腳——既然這樣不如自己開發一個主題吧。</p><p>首先，你得先要安裝好 Wordpress。安裝的教學在網路上可以找到非常多且完整的文章。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*KDEi9wKHsWYUFQvzB8ZkKA.png" /><figcaption>Wordpress 安裝</figcaption></figure><p>安裝完成以後，首先來到 wp-content/ 資料夾，這個資料夾包括了安裝的外掛與佈景主題、不同語系的支援檔案與更新 Wordpress 用的檔案。我們進入 themes/ 資料夾，裡面應該包含了數個預設安裝的佈景主題（視 Wordpress 版本而定，例如 4.6.1 版會有 twentyfourteen, twentyfifteen, twentysixteen 三個佈景主題，更新至 4.8 版則會有 twentyseventeen 主題）。在這裡我們可以新增一個資料夾（wp-content/themes/），資料夾名稱可以自訂作為佈景主題的名稱，在此我們取名 customtheme。</p><p>一個最簡單的佈景主題至少要包含三個元件，分別如下：</p><ul><li>style.css 作為佈景主題最主要的樣式設定。</li><li>index.php 首頁的模板，若有其他頁面模板也可以放在佈景主題資料夾內。</li><li>functions.php 作為額外功能設定用，Wordpress 會以這支程式裡的設定為優先，通常用來對外掛、佈景主題或 Wordpress 本身做進一步的設定。</li></ul><p>在此我們先開啟空白文件，儲存成這三個檔案放在 customtheme 資料夾內。</p><p>為了簡單的教學用，我們在 index.php 內打上以下內容：</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br> &lt;head&gt;<br>  &lt;meta charset=&quot;utf-8&quot;&gt;<br>  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;<br>  &lt;title&gt;Wordpress Demo&lt;/title&gt;<br>  &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br>  &lt;h2&gt;Welcome to Wordpress.&lt;/h2&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre><p>接著我們來看看 style.css。Wordpress 在佈景主題會看文件開頭的註解內容，作為該文件功能的一部份，而 style.css 開頭的註解內容會影響在控制台如何呈現。因此我們在開頭上要打上以下內容：</p><pre>/*<br>Theme Name: Custom Theme<br>Theme URI: <a href="https://wordpress.org/themes/">https://wordpress.org/themes/</a>customtheme<br>Author: Practicode<br>Author URI: <a href="https://medium.com/practicode">https://medium.com/practicode</a><br>Description: You are awesome.<br>Version: 1.0<br>License: GNU General Public License v2 or later<br>License URI: <a href="http://www.gnu.org/licenses/gpl-2.0.html">http://www.gnu.org/licenses/gpl-2.0.html</a><br>Text Domain: customtheme<br>Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, post-formats, theme-options, threaded-comments</pre><pre>Some words you may want to say.<br>*/</pre><p>這段註解包含：</p><ul><li>佈景主題名稱</li><li>佈景主題網址，當你完成佈景主題以後可以上傳至 <a href="https://wordpress.org/themes/">https://wordpress.org/themes/</a>，在該網址也能找到許多的佈景主題。</li><li>作者名稱</li><li>作者網址</li><li>佈景主題描述，會呈現在佈景主題上</li><li>佈景主題版本</li><li>軟體授權許可（GNU GPL，或其他）</li><li>授權網址</li><li>字串對應域，佈景主題的內容需要轉換成其他語言時使用，通常由佈景主題自行定義</li><li>分類標籤，介紹該佈景主題擁有的特色，例如可以自訂模板、單欄式或多欄式等，標籤的介紹可以看<a href="https://make.wordpress.org/themes/handbook/review/required/theme-tags/">這裡</a></li><li>其他註解內容</li></ul><p>而以上內容在 Wordpress 控制台上會如此呈現：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8EeCHTaadyQxJLlRnPZIQ.png" /><figcaption>佈景主題細節</figcaption></figure><p>可以看到左方有一塊灰色，是因為我們沒有放佈景主題的圖片。在 custometheme 資料夾內新增一張圖片，檔名取作 screenshot.jpg，應該就會看到圖片呈現在佈景主題上。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ZUoUA_z43R6yqnpAT8X_Q.png" /><figcaption>子瑜我老婆</figcaption></figure><p>因為我們的 style.css 裡什麼內容都沒有，這時候 Wordpress 應該會長這樣：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyzI55AldWY_DgByjb3cDg.png" /><figcaption>自訂佈景主題的首頁預覽</figcaption></figure><p>於是接下來我們就能開始撰寫自己的首頁與樣式了，我們的教學也在此先告一段落。進階的做法還有許多細節，例如將不同文章拆成許多的 template，包含 header 與 footer，不同文章的頁面，或是在佈景主題外新增自訂模版等。值得注意的是，Wordpress 會辨認許多特定檔案，包含我們用到的 index.php、style.css 與 functions.php，還有許多，完整的列表詳如下列：</p><ul><li><em>style.css 最主要的樣式表</em></li><li><em>rtl.css 若佈景主題有從右到左的文字，則會自動讀這份樣式設定</em></li><li><em>index.php 首頁模板，若佈景主題包含模板，至少必須要有此份模版</em></li><li><em>comments.php 留言模板</em></li><li><em>front-page.php 首頁顯示靜態頁面時可作為首頁模版</em></li><li><em>home.php 首頁模板，且由此頁優先作為首頁模板，詳情可以閱讀 </em><a href="https://developer.wordpress.org/themes/basics/template-hierarchy/"><em>Template Hierarchy</em></a></li><li><em>single.php 日誌（文章）模板</em></li><li><em>single-{post-type}.php 自訂日誌（文章）類別用模板</em></li><li><em>page.php 網誌分頁模版（例如關於我們、聯絡我們等頁）</em></li><li><em>category.php 文章分類模板</em></li><li><em>tag.php 標籤模版</em></li><li><em>taxonomy.php 其他分類模板</em></li><li><em>author.php 作者模版</em></li><li><em>date.php 日期、時間模版</em></li><li><em>archive.php 搜尋類別模版，包含且會被 category.php、author.php 或 date.php 覆蓋</em></li><li><em>search.php 搜尋結果模版</em></li><li><em>attachment.php 附件模版</em></li><li><em>image.php 圖片附件模版</em></li><li><em>404.php 當網頁或搜尋內容找不到時呈現的模版</em></li></ul><p>關於自訂佈景主題的介紹，可以看 <a href="https://codex.wordpress.org/Theme_Development">Wordpress 文件</a>。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4325f4bf3903" width="1" height="1" alt=""><hr><p><a href="https://medium.com/practicode/%E8%87%AA%E5%B7%B1%E5%AF%AB%E5%80%8B-wordpress-%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C-4325f4bf3903">自己寫個 Wordpress 佈景主題</a> was originally published in <a href="https://medium.com/practicode">Practicode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[翻譯] 成為 Chrome Developer Tool 的高手吧！前端開發技巧更上層樓]]></title>
            <link>https://medium.com/practicode/%E7%BF%BB%E8%AD%AF-%E6%88%90%E7%82%BA-chrome-developer-tool-%E7%9A%84%E9%AB%98%E6%89%8B%E5%90%A7-%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BC%E6%8A%80%E5%B7%A7%E6%9B%B4%E4%B8%8A%E5%B1%A4%E6%A8%93-6d94f348a4db?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d94f348a4db</guid>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Sat, 08 Jul 2017 13:01:31 GMT</pubDate>
            <atom:updated>2017-07-08T13:01:31.579Z</atom:updated>
            <content:encoded><![CDATA[<p>文章來源：<a href="https://medium.freecodecamp.com/mastering-chrome-developer-tools-next-level-front-end-development-techniques-3ac0b6fe8a3">https://medium.freecodecamp.com/mastering-chrome-developer-tools-next-level-front-end-development-techniques-3ac0b6fe8a3</a></p><p>（本篇文章來自 <a href="https://weekly.codetengu.com/">CodeTengu Weekly 碼天狗第93期</a>）</p><p>你可能對 Chrome Developer Tool 的基礎功能有一定的暸解了：DOM檢視、樣式面板、JavaScript 的 console⋯⋯。但還有一些較少人知道的功能，能幫助你有效地提升應用程式除錯或開發的效率。</p><h4>暗色佈景主題</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvcVbWXjdFD4EeJCONP-rA.png" /></figure><p>Chrome 的開發者工具有內建的暗色主題。你可以點選面板的右上角三個點點的圖示，並點選設定來切換佈景主題。</p><p>我有時覺得暗色的主題對眼睛的負擔較小，而且很明顯的，這看起來比較酷：）</p><h4>選取模式</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*sSwYUflKyNlVb4ixePEQPg.png" /></figure><p>Chrome 的開發者工具（DevTools）提供數種選擇頁面元件的方式 — — 最方便的一種就是選取模式。</p><p>這個功能可以點選開發者工具左上角的鼠標圖示（或是快捷鍵 Cmd+Shift+C）開啟，在頁面上點擊來選取元件。</p><p>開啟選取模式以後，你可以在頁面上任意移動滑鼠，預覽頁面的元件，並且藉由點擊來選取元素去檢視。</p><p>這個功能可以很快速的選取頁面上對應的元件，因為可以藉由快捷鍵 Cmd+Shift+C 開啟開發者工具並直接進入選取模式。</p><h4>儲存全域變數</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*V0ay5uZmNZgMfvKqHhryJA.png" /></figure><p>若 Console 記入的物件有許多鍵（key）或是太過複雜而難以手動分析，有的時候要仔細檢視它們可能相當麻煩。幸好，Chrome 透過 JavaScript 讓這些處理變得輕鬆了些。</p><p>在 Console 的物件上點擊右鍵，並選擇 “Store as Global Variable”。選擇的物件會被儲存為全域的變數並取名為temp1，之後操作時就可以取用。</p><h4>動畫工具</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*10e_M_at-lkk8cZM0-uAsw.png" /></figure><p>最近，Chrome 開發團隊增加了一些動畫除錯與開發的新功能。</p><p>點選 Console 左邊三點的圖示開啟下拉式選單，可以開啟 Animation 分頁，操作網頁上所有動畫的播放速度。</p><p>你也可以把動畫通通暫停。這對一些有許多動畫的網站特別有用。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zShXwCLO7_mOJYCTLSfxQ.png" /><figcaption>可以個別設定不同屬性的動畫曲線</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*K4l8XAtMSr8pD8V4a7T7Xw.png" /><figcaption>CSS 動畫控制器</figcaption></figure><p>點選元件transition屬性可以觀看動畫的播放曲線，並且藉由紫色的圓形圖示（如上圖）調整其屬性。此外，你也能用方向鍵瀏覽預設的動畫效果並套用至元件上。</p><h4>偽元素狀態模擬</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AIly3bPYNJCB_jon6b38Yg.png" /></figure><p>另一個好用的樣式設定功能就是元件的狀態模擬。你可以點選右方 Styles 面板的:hov圖示開啟功能。</p><p>這個功能可以模擬元素不同的點擊狀態，包括 hover、focus、active，並且查看這些狀態對應的樣式設定。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*YqU3UjPFdUrAUPqLLKN2WA.png" /></figure><p>點選:hover右方的＋圖示新增一個選取器，並且在該選取器名稱後面加上:狀態(hover, focus, active...) 來設定一些對應樣式。</p><p>你可以勾選:hover 狀態來模擬滑鼠移至該元件上時的狀態，測試樣式設定是否正確。</p><h4>讓 CSS 和 JavaScript 變美麗</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*MVwQ8Hk23USPKSGCbikzjg.png" /></figure><p>觀看壓縮（minified）的 CSS 或是 JavaScript 或是除錯是一件很困難的事。幸運地，開發者工具讓這件事變得容易不少。</p><p>在 Sources 面板開啟壓縮的檔案後，你可以點選大括號的圖示（如上圖紅色框框），開發者工具就會把程式碼變漂亮。</p><p>這項功能將 CSS 處理得相當好，而 JavaScript 則處理得還不錯，雖然有些資訊因為壓縮而遺失了（例如變數的名稱）。</p><h4>Alt+方向鍵上 / Alt+方向鍵下</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*p0-oMOrj4JpHDnNEG1MEzg.png" /></figure><p>在 CSS 樣式面板可以點選一項屬性並用方向鍵上下調整該屬性的值。預設的情況下方向鍵會將屬性的值增加或減少 1 單位。然而，按住alt 鍵，可以將增加或減少改為 0.1 單位，對於浮點數的值相當有幫助。</p><p>相反地，按住shift 鍵則可以將增減改為 10 單位。</p><h4>保存日誌</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*SpkLrhLL3M8m6WMRfCwZ_Q.png" /></figure><p>藉由勾選 Preserve Log，你可以在頁面重整時依然保留日誌內容。這對於網頁需要重新整理的情況相當合適，不然重新整理時 Console 的內容都會被清除。</p><p>當這項功能開啟時，Console 會多一筆 “Navigation” 日誌，紀錄頁面重整或是跳轉到其他頁面的事件。</p><h4>網路＋日誌篩選</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*s5ZPHwChxld_9LKKl_EUjg.png" /></figure><p>處理較多請求或 Console 日誌的應用程式時，篩選特定事件將會相當有用。</p><p>Chrome 的篩選語法支援不同的狀況，包括萬用字元＊。</p><p>若你輸入- ，Chrome 會顯示一串能夠篩選的清單。你也能勾選 Regex 來進行正規表達式的篩選。</p><h4>程式覆蓋率</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BW6ChPhWvLfYA5y_p0Tc5A.png" /></figure><p>這項功能可以在執行應用程式後查看哪幾行的程式有被執行，而哪些沒有。這對處理較複雜或長期的應用程式相當有幫助，因為這些應用容易累積再也不被執行的程式碼。</p><p>要使用這項功能，首先要先確認 Chrome 的版本在 59 或以上。然後點選 Coverage 分頁。點選 Record 並開始使用你的應用程式。當你完成以後，Chrome 會顯示在執行過程中有被執行到的程式。</p><h4>產品上市後的除錯</h4><p>開發者工具只有在自己的電腦執行應用程式時可以使用。假如你想要暸解使用者在產品上市使用後遇到哪些問題以及該應用程式執行效率相關的問題，可以嘗試 <a href="https://logrocket.com/">LogRocket</a>。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPlJB9qSC2SCjNWJNwAfgw.png" /></figure><p><a href="https://logrocket.com/">LogRocket</a> 是一個前端日誌的工具，它可以在你自己的瀏覽器上重現發生的問題，讓你快速地知道是哪裡發生問題，而不需要瞎猜或向使用者要求螢幕截圖與錯誤訊息。它在不同框架的應用程式上都運作良好，也有 React，Angular 以及 Vue.js 的外掛插件以記錄更多的內容。</p><p>LogRocket 可以記錄 Console 日誌、請求與回應（包含標頭檔與內容）、瀏覽器的 metadata、Redux 的操作與狀態，以及執行效率的計時等。除此之外也能記錄頁面的 HTML 與 CSS，以及即便在複雜的單頁應用程式也能產生高畫質的影片。</p><p>你可以在這裡看看 <a href="https://logrocket.com/">LogRocket</a>。（原文廣告打得真兇XD）</p><p><a href="https://logrocket.com/">Session Replay | Product Analytics | Error Tracking</a></p><p>感謝你的閱讀。希望這些進階的技巧能幫助你費更少的勁，完成更好的應用程式。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d94f348a4db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/practicode/%E7%BF%BB%E8%AD%AF-%E6%88%90%E7%82%BA-chrome-developer-tool-%E7%9A%84%E9%AB%98%E6%89%8B%E5%90%A7-%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BC%E6%8A%80%E5%B7%A7%E6%9B%B4%E4%B8%8A%E5%B1%A4%E6%A8%93-6d94f348a4db">[翻譯] 成為 Chrome Developer Tool 的高手吧！前端開發技巧更上層樓</a> was originally published in <a href="https://medium.com/practicode">Practicode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[翻譯] 正確地設計登入頁]]></title>
            <link>https://medium.com/practicode/%E7%BF%BB%E8%AD%AF-%E6%AD%A3%E7%A2%BA%E5%9C%B0%E8%A8%AD%E8%A8%88%E7%99%BB%E5%85%A5%E9%A0%81-cca2febcbbc9?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca2febcbbc9</guid>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Wed, 14 Jun 2017 11:51:58 GMT</pubDate>
            <atom:updated>2017-06-14T11:51:58.986Z</atom:updated>
            <content:encoded><![CDATA[<p>文章來源：<a href="https://blog.prototypr.io/getting-the-login-page-right-d1ce6015235e">https://blog.prototypr.io/getting-the-login-page-right-d1ce6015235e</a></p><p>（本篇文章來自 CodeTengu Weekly 碼天狗第89期）</p><p>比起Web Application方興時，現在有關登入與註冊頁面的設計早已不是什麼嶄新的觀念了——市面上一大堆的應用早就將登錄頁面玩得淋漓盡致。不過，這些看似沒有特殊目的的設計，背後的動機卻相當重要。俗話說，太陽底下沒有新鮮事——前提是你知道太陽底下有什麼，或是它為什麼在那裡。這是我為什麼寫（翻譯）這篇文章來彰顯他人設計的天才。</p><p>首先要說的是，設計登錄頁面這門藝術（是的，這是一門藝術）並不是隨意設計的！或者應該說，如果想要更好的結果，這些頁面「不應該」是隨便生成的，因為這些頁面在產品整體使用經驗當中至關緊要！</p><p>因此，以下將會提到幾項影響頁面佈局設計的重要因素。</p><p>…</p><p>1 ) 產品接觸 TA 的途徑：網站或 APP</p><p>客戶會以哪種途徑造訪你的產品有一件明顯的事實：大部份造訪產品桌面版或網頁的客戶都是新的使用者。在客戶下定決心花費時間（與網路流量）下載一個陌生的APP以前，他們希望對你的產品有一些暸解與認識。「使用APP 代表著客戶忠誠度」已經是一種經驗法則：當客戶認同你的產品服務，並且希望享受產品提供的完整功能——例如即時通知——他們就會下載你的應用程式。也就是說，會使用你的 APP 的使用者大多都是老客戶（returning users，再購買、忠誠度較高的客戶），使用網頁的使用者則大多是新的使用者。因此我們該如何設計針對這兩種不同類型的使用者的登入頁面呢？</p><blockquote>在 APP 設計以「登入」為主的頁面，網頁版則是以「註冊」為主的頁面！</blockquote><p>這麼做可以滿足大部份分別使用這兩種途徑造訪產品的使用者。讓我們舉一些例子，一些你可能沒注意到的例子：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*mIVH_UR_jRzHDDA4Ucm5Aw.png" /><figcaption>紅框是登入的區塊，紫框則是註冊的區塊</figcaption></figure><p>從上圖你可以發現（網頁的）註冊的功能比起登入在版面配置上佔了更大的比例。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*g2mkLz7-4ewTUZHx6kfjDQ.png" /><figcaption>同樣地，紅框是登入的區塊，紫框則是註冊的區塊</figcaption></figure><p>同樣的產品在 APP 上則有完全相反的結果：登入的功能比起註冊在版面配置上佔了更大的比例。</p><p>…</p><p>2 ) 建立的客戶量</p><p>當老客戶與新的使用者都會湧入使用（通常是指網站）時適用，不過兩者數量接近的情況很少會發生。比方說你的產品剛推出時，肯定（通常來說）會有比較多新的使用者，與比較少的老客戶（包括 BETA 版的第一批使用者與開發人員）。這時你認為應該以哪種使用者為優先？當然是新的使用者們。那麼要如何做到呢？又到了教導讀者的時間了，讓我這麼說吧：</p><blockquote>在產品開發早期的時候，應該設計以註冊為主的頁面！</blockquote><p>很明顯，很多的設計師（或開發人員）都會參考市面上的產品如何進行版面配置，將類似的模板套用在登錄頁面，而這些既有的登錄頁往往是以登入為主的。然而問題在於，之所以會參考這些既有的產品如何設計，是因為它們早已累積一定數量的使用者客群了！因此才會第一個想到要參考其設計。也因此我們通常不會看到這些產品在成長、需要客戶量累積時是長什麼樣子。並不是參考錯了產品，而是在錯的時間參考它的頁面設計。也許讓我們回顧這些產品在和我們一樣處在開發早期時頁面的樣貌能給我們一些靈感。</p><p>這裡剛好有一部時光飛車（D’lorean，電影《回到未來》當中的時光機），我們可以回到過去看看其中一個最成功的社群網路是如何做頁面設計的。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HDh9FyaayA-bTXHe3WdTBQ.png" /><figcaption>1–2008, 2–2009, 3–2012.</figcaption></figure><p>沒錯，我說的是 Twitter（儘管它可能榮光不再了）。</p><p>#1 —2008年，這是 Twitter 的第一個登錄頁，概念還相當嶄新，可以看到在登入區塊上幾乎沒有什麼裝飾與設計，但你可以注意到他們花了相當大的篇幅在介紹自己，還有一個顏色漂亮的按鈕吸引你去註冊，以及一個紅色的 CTA（Call to Acion，讓使用者採取特定行為）按鈕，可以看看 Demo 的影片。Twitter 目前並沒有花太多的心力在登入部份，因為此時的首要任務是要吸引更多的使用者加入。至於那些已經加入的客戶呢？他們應該知道該如何登入。</p><p>#2 —2009年，現在他們有了一些注意和一定數量的會員，並且幾乎立刻（產品推出後一年）開始考慮既有的使用者；這些使用者達到了足以影響 UI 的數量。然而註冊部份還是盤踞了頁面的右上方，並維持著吸引人的亮綠色。</p><p>#3 —2012年，隨著一路上的發展到了這個時候，現在他們有著穩定流入的新會員，以及極大量早已加入的會員。這如何影響了登錄頁面？現在 Twitter 同時關注會員與新的使用者。為什麼？新的會員永遠需要獲得滿足，然而累積下來的會員數量已經大到無法忽略，不能再不關注。Twitter 此時必須確保兩者都能夠自在地使用這個他們所喜愛的社群平台。</p><p>你可能會有個問題：某位設計師在找尋設計一個甫推出的社群媒體登錄頁面靈感時看到這篇文章，想說：「哇！Twitter 真是天才，把註冊與登入放在同一個頁面！我也這麼辦吧。」不，因為他的產品不像 Twitter 已經達成了一定的舊會員：新會員數量比，不應該採用這樣的設計策略。因此我們學到了什麼？又到了教學時間，通常的原則是：</p><blockquote>有的時候比起看看別的產品現在的模樣，不如回顧過去它是怎麼設計的。</blockquote><p>3 ) 與眾不同</p><p>當然，總有些產品無法滿足於通常的設計模式，不受限制到好像要把 UI/UX 通通丟到一邊似的。他們走在前方，並且將常理通則通通打倒，建立自己的一套玩法。這包括了 Facebook，即使有了極大數量的使用者，還是採用以註冊會員優先的設計。還有 Medium，你正在看的平台，在使用者數量成長的早期，即使在 APP 上還是以註冊為優先。不過雖然他們採用和這篇文章所說不同的策略，但原因都是相當清楚的，因此他們應該還算是遵守了根據建立客戶量設計的原則。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*kEglyi0jOb7Zk7r8ggpkSg.png" /><figcaption>即使在行動版 APP 上註冊也比登入佔據更大比例</figcaption></figure><p>所以最後要說的是，別以為設計登入/註冊頁面不值得花心思，因為<strong>不管即便是多庸俗的設計，都必須包含著「為什麼如此設計」的原因與目的</strong>。最後…聽聽團隊中的其他人對於產品的目標有什麼想法，想想怎麼設計能夠幫助團隊達成整體的最終目標，從產品的第一照面——也是我們最常忽略的——登入/註冊頁面開始。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca2febcbbc9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/practicode/%E7%BF%BB%E8%AD%AF-%E6%AD%A3%E7%A2%BA%E5%9C%B0%E8%A8%AD%E8%A8%88%E7%99%BB%E5%85%A5%E9%A0%81-cca2febcbbc9">[翻譯] 正確地設計登入頁</a> was originally published in <a href="https://medium.com/practicode">Practicode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript 與物件…導向？]]></title>
            <link>https://medium.com/practicode/javascript-%E8%88%87%E7%89%A9%E4%BB%B6-%E5%B0%8E%E5%90%91-d499206decc9?source=rss-fdcd3ff664d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d499206decc9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[prototype]]></category>
            <dc:creator><![CDATA[陳劭恩 Sean, Shao En Chen]]></dc:creator>
            <pubDate>Mon, 15 May 2017 10:16:23 GMT</pubDate>
            <atom:updated>2017-05-15T10:16:23.076Z</atom:updated>
            <content:encoded><![CDATA[<p>前幾天和朋友野餐聊天時討論到，JavaScript 到底是不是物件導向程式語言呢？結果相當（不）意外的，它的確是。然而，JS 和以往寫 C、Java 時碰到的「物件導向」有不少差異。因為最近看了不少相關的文章，希望把一些有趣的事實與設計記錄在這邊，作為自己近期的學習筆記。</p><blockquote>JavaScript 是個物件導向語言。—— JavaScript 設計模式</blockquote><p>《JavaScript 設計模式》在第一章就開宗明義地告訴我們 JavaScript 的特性。在 JS 裡，幾乎大部分的東西都是物件，包含函數，他們擁有自己的屬性（properties）與方法（methods）。舉例來說大概像是這樣：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*2vlBkpVDm8vgn3eHm6KeBA.png" /><figcaption>Example of JS Object</figcaption></figure><p>如上所見，要定義一個 JavaScript 的物件，不像 Java 要做：</p><pre>Fruit fruit = new Fruit(); // Java 創建物件的方式</pre><p>JavaScript 的物件是一組 key — value 的對應，就像是一個空白的 Array 或是 Vector。當你創建一個新的物件，他會開啟一個「空白」的物件（當然，裡面預設有一些屬性，等等會提到），我們再接著把數值、函數或是其他物件丟進去。</p><p>和 C/C++、Java 等語言不同，JavaScript 沒有 Class，儘管在 ES6 引入了類別（classes）作為 JavaScript 現有 Prototype-based 繼承的語法糖（<a href="https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Classes">Class — MDN</a>）。在《JavaScript 設計模式》中提到該語法糖能夠精簡你的程式碼，讓 JavaScript 專心處理物件。</p><p>在此先不提 ES6 提供的語法糖，JavaScript 透過原型鍊（Prototype Chain）建立從屬關係，實作繼承關係。舉例來說，剛剛提到 Java：</p><pre>Fruit fruit = new Fruit(); // Java 創建物件的方式</pre><p>Java 在 new 之後以類別去創建新的物件。然而 JavaScript 沒有 Class，因此在 JavaScript 裡面可能是這樣的：</p><pre>function Fruit(name, number, ...) {<br>    this.name = name;<br>    this.number = number;<br>    this.type = &quot;fruit&quot;;<br>    ...<br>    this.getName = function() { console.log(this.name); }<br>}</pre><pre>var apple = new Fruit(“apple”, 10, …); // 以構造函數建立物件</pre><pre>// 並且構造函數可以包含方法<br>apple.getName();</pre><p>不過，當今天的情境變成了這樣：</p><pre>var apple = new Fruit(“apple”, 10, …);<br>var banana = new Fruit(“banana”, 20, …);</pre><p>apple 和 banana 將會有各自的 “type” 屬性以及方法，儘管他們的內容是一樣的東西，卻會佔據兩份空間。如果可以將這些共同的屬性與方法存放在同一個空間，應該會是很好的一件事。</p><p>因此我們在構造函數上增加了 prototype 屬性，只要將這些共同的屬性與方法存在該函數的 prototype 上，就可以讓這些屬於同一「類別」的物件共用，以節省空間。這就是「原型」的基本概念，創建出的物件因而可以繼承構造函數的 prototype。</p><pre>Fruit.prototype.type = &quot;fruit&quot;;</pre><p>而實際上創建出來的物件會有一個屬性： __proto__。這個屬性會指向構造函數的 prototype。當我們呼叫該物件的屬性或方法，首先將從該物件自身的屬性及方法尋找。若是找不到，則會向上往該物件的 __proto__ 找，直到找到相對應的屬性或方法，或是無法繼續向上尋找——這就是原型鍊的概念。也就是說，創建出來的物件大概是這樣的：</p><pre>var apple = new Fruit(“apple”, 10, …); // 以構造函數建立物件</pre><pre>apple.__proto__ == Fruit.prototype // true</pre><p>因此，若今天 apple 物件要尋找 “type” 屬性，程式將會先從 apple 自有的屬性尋找。由於該屬性已被存在 Fruit 的 prototype 當中，此時應找不到，程式便從 apple. __proto__ 取得 Fruit.prototype，並從該處取得 “type” 屬性。我們可以藉由 hasOwnProperty() 與 instanceof 方法驗證：</p><pre>apple.hasOwnProperty(&quot;type&quot;); // false<br>apple.__proto__.hasOwnProperty(&quot;type&quot;); // true</pre><pre>apple instanceof Fruit // true</pre><p>因此，藉由建立物件彼此間的原型鍊關係，我們可以在 JavaScript 達成繼承關係的功能。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d499206decc9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/practicode/javascript-%E8%88%87%E7%89%A9%E4%BB%B6-%E5%B0%8E%E5%90%91-d499206decc9">JavaScript 與物件…導向？</a> was originally published in <a href="https://medium.com/practicode">Practicode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>