scieee AI-readable full text Open interactive document viewer

Web Design Patterns for Mobile Devices

Jorge Miguel Neves Ribeiro

Full text

mestrado em multimédia Faculdade de Engenharia da Universidade do Porto July 2012 web design patterns for mobile devices Advisor: Miguel Carvalhais, Faculty of Fine Arts, University of Porto Jorge Miguel Neves Ribeiro AbstrAct We have in our hands a universe of personal devices that are always available, always on, and always connected. By their characteristics, mobile devices have brought new constraints and possibilities to the field of web design. It is no longer possible to design a website without at least consider how it will work on a mobile device: the whole mobile experience needs to be designed. Because designing for these devices is considerably different from designing for conventional web interfaces, we cannot only rely on the established techniques: we will need new ones. Throughout a pattern-based approach, this work aims to contribute to the development of new tools for the design of mobile interfaces, by capturing and presenting already proven solutions that aspire to help us design better and more engaging experiences on the mobile web. resumo Temos à nossa disposição um universo de dispositivos móveis que estão sempre disponíveis, sempre ligados e sempre conectados. Devido às duas características, estes dispositivos trouxeram novas limitações e possibilidades ao domínio do web design. Não é possível desenvolver um website sem pelo menos considerar como é que irá funcionar num dispositivo móvel: toda a experiência móvel tem que ser pensada. E porque desenvolver para este tipo dispositivos é consideravelmente diferente de desenvolver para interfaces web convencionais, não podemos continuar a depender apenas das ferramentas atuais: precisaremos de novas. Através de uma abordagem baseada em padrões de design, este projeto pretende contribuir para o desenvolvimentos de novas ferramentas que ajudem no design de interfaces móveis, através da captura e apresentação de soluções comprovadas que aspiram ajudar na criação de melhores e mais envolventes experiências web. Acknowledgments I would like to thank my advisor Miguel Carvalhais for all the support and advice, essential to the unfolding of this work; to Dr. Alejandra Garrido for the help with the patterns; to the team at idd who accompanied me through the past two year; to everyone that somehow contribute to the development of this dissertation; and to family and friends. tAble of contents Abstract Resumo Acknowledgments 1 Introduction 17 1.1 Objectives 18 1.2 Dissertation Structure 19 2 Designing For Mobile Devices 21 2.1 The Devices 21 2.1.1 Operating Systems 22 2.1.2 Performance 23 2.1.3 Why only smartphones? 23 2.2 The Browsers 24 2.2.1 Browser Chrome 26 2.3 Screen Sizes and Resolutions 27 2.4 Touch Interfaces 29 3 Design Patterns 31 3.1 What is a Pattern? 31 3.1.1 Interaction Design Patterns 32 3.2 Pattern Languages and Pattern Libraries 33 3.3 The Benefits of Design Patterns 34 4 Comparative Analysis of Pattern Libraries 37 4.1 Pattern Libraries 37 4.1.1 A Pattern Language 39 4.1.2 Design Patterns: Elements of Reusable Object-Oriented Software 41 4.1.3 Common Ground: A Pattern Language for Human-Computer Interface Design 43 4.1.4 A Pattern Approach to Interaction Design 45 4.1.5 The Design of Sites: Patterns for Creating Winning Websites 47 4.1.6 Designing Interfaces 49 4.1.7 Yahoo! Design Pattern Library 50 1 IntroductIon This work began from an interest to further explore the design of interfaces, particularly web interfaces, on mobile devices. We cannot remain indifferent to the growth of the mobile web, and to how it is changing the web as a whole, it is important and necessary to understand how it affects our work, and how we, designers, can contribute to the solution. We have at our disposal a generation of portable devices that are closer to a personal computer than to a phone, that are very capable devices with more processing power than some computers from a few years ago, and with browsers that are comparable to their desktop counterparts. Devices are getting more affordable, and data connections are becoming cheaper, faster and ubiquitous. By their portability, mobile devices accompany us to wherever we go and are used on the most diverse contexts, for the most distinct purposes, what Clark (2010) describes as “nontraditional computing environments”. The web usage has also been changing, more people are using their devices as an effective mean to access the web, and for some users that is indeed the only, or at least the primary, channel to browse the web. We have a new interaction model, based on gestural interfaces that provide for more natural and appealing interactions. But because of its relative novelty, there are no strong standards or guidelines to help us design for them, there is in fact a lack of established guidelines for gestural interfaces (Nielsen and Norman 2010). Moreover, there is a lack of recognized patterns. Users do not have rigid expectations of how an interface should behave (Budiu and Nielsen 2010, 6), as they might have in desktop environments. The usage of gestural interfaces became more exploratory, i.e., when lost, or just because they want to explore the interface, they tap arbitrarily just to see how interface elements respond. Nevertheless, we can regard this not necessarily as problem, but as an opportunity to experiment with new approaches to the design of sites. These devices shifted, in an irreversible manner, the perception of what is the web, and have raised new questions of how to design for it. Designing for mobile should be an essential part of any present design project, in fact, it should be considered from the beginning of every project. The mobile and desktop are not incompatible or even opposing forces, they are in- 18 Web Design Pattern for Mobile Devices deed part of the same web experience that needs to be designed as a whole. We can now start thinking about creating unified web experiences between mobile and desktop environments. Designing for mobile need to take into account the mobile landscape, the characteristics of these devices, and the limitations and possibilities that they impose in order to understand what their role on the web is. Designing for mobile devices is considerably different from designing for traditional desktops environments, so the tools that we have now may not be enough for our needs. It is important to rethink our current tools and strategies in order to understand how they can be used in our advantage. Like any new medium, mobile devices impose new constraints and capabilities that should be considered, but these limitations are what make the mobile web a much more challenging and interesting subject within the field of web design. There is a more receptive space to the conception of new ideas of what can be considered an interface; there is a gap to explore, develop and suggest new techniques, or more precisely, to find and propose new patterns. 1.1 Objectives In this work we intend to explore the design of web interfaces on mobile contexts, which invokes the need to study the implications that these devices brought to the field of web design. It is essential to outline and understand what are its main characteristics and limitations, and how they affect the design of sites, especially when compared to traditional web interfaces. Therefore, in this research, we expect to summarize the prevailing factors that one needs to consider when designing a mobile website. We intend to explore the design of mobile interfaces through a pattern-based methodology. In order to accomplish that objective, it is important to study what are design patterns and how they can be used as a design tool. We therefore aim to identify, understand and systematize different methodologies that can be applied to the writing, cataloguing and presentation of design patterns, with the purpose to propose a template that best fit the patterns in this work. The main objective of this dissertation is to develop a set of design patterns that capture proved solutions, and describe them in a comprehensible manner so they can be easily used by people throughout their design projects. We intend to present those patterns in an organized catalogue and offer them through an online platform accessible to the design community. Therefore, with this project we expect to contribute to the development of a pattern library dedicated to the design of web interfaces for mobile devices, with which we hope to endow designers and non-designers with a set of useful solutions and tools that augment their capabilities to design and evaluate websites. Ultimately, the goal of this project is to indirectly improve the end-user fruition of their devices when browsing the web. Introduction 19 1.2 Dissertation Structure The first chapter introduces the context of this dissertation, and describes the motivation and objectives that will lead us throughout the development of this project. The second chapter addresses the concerns regarding the design of sites for mobile devices. It defines our object of study and enumerates the constraints and possibilities that these devices impose. The third chapter introduces the concept of patterns and pattern languages, and provides a theoretical background for the work in the following chapters. The fourth chapter presents a comparative analysis of pattern libraries, proving a historical background. It presents an individual study of each library, as well as a critical analysis of the different approaches to the problem of presenting patterns. Based on the research conducted on the previous chapters, the fifth chapter describes the template that will be used in the patterns of this dissertation. The sixth chapter unveils the twenty-one design patterns that comprise the main body of this dissertation, a library of patterns that synthesizes the research performed in this work. The seventh chapter presents three cases studies, each one describing the process of implementing the patterns that were previously formulated on a real web design project. Finally, the eighth chapter summarizes the results of this research, reporting the contributions and future work. 20 Web Design Pattern for Mobile Devices 2 desIgnIng for mobIle devIces 2.1 The Devices In order to understand how to design for mobile, first we need to define what a mobile device is. Hoober and Berkman (2011, xVi) consider that a mobile device has the following characteristics: it is small, portable, connected, interactive, and contextually aware. Firtman (2010, 4) describes a mobile device as being: portable, personal, available all the time, easy and fast to use, and having some kind of network connection. These definitions are too broad in such a manner that may describe as mobile an enormous set of devices. It is possible to include in the description everything ranging from smartphones, feature phones, portable gaming devices, portable media players or tablets. To address this problem it may be helpful to categorize them. Firtman (2010, 6–10) groups mobile devices in the following categories: mobile phones, low-end mobile devices, mid-end mobile devices, high-end mobile devices, smartphones, non-phones devices, small personal object technology and at last, tablets, netbooks, and notebooks. Devices from the first group do not have Internet access, so we can leave them aside; tablets and netbooks, although portable, may deserve an entire category for themselves; and what the author describes as low-end, mid-end, highend mobile devices are devices that fit into a category that is commonly designated as feature phones. Alternatively, Fling (2009, 3–10) sets a chronological background for the evolution of mobile devices — he only examines mobile phones though. He places the ‘feature phones era’ between 1989 and 2008, the ‘smartphones era’ from 2002 to present and at last the ‘touch era’, which began with the release of the iPhone in 2007. Chronological categorization may not be always helpful, since, for example, a smartphone can also be a touch device. On the other hand, Wroblewski (2011) only distinguishes between feature phones and smartphones, though he never explicitly defines them. Likewise, Hoober and Berkman (2011) only compare feature phones to smartphones, but do not describe them. Koch (2010) only refers to smartphones and ‘non-smartphones’, and proposes a simpler definition: “A smartphone is a phone that runs a recognizable os on which the user can install applications.” However, he 22 Web Design Pattern for Mobile Devices divides smartphones in three categories — analogous to those used by Fling (2009) — based on their audience and cost: mid-range, business, and high-end. It is possible to recognize that the line that distinguishes a smartphone from a feature phone is not that clear or even consensual, and to make it worse, the definition of what a smartphone is constantly evolving (Firtman 2010, 8) and changes depending on the author. If we understand the characteristics that define what a smartphone is as transitional, the term smartphone can be used to describe the most advanced device at a given time. In general, feature phones have more capabilities than a simple cell phone but not enough to be called a smartphone; they have a proprietary operating system (usually firmware), which cannot be easily updated; and the support for third-party applications is limited or nonexistent. Although these devices are not web oriented they have some sort of web support and offer a basic browser. Smartphones have all the functionalities of a feature phone as well as a multitasking operating system, a full desktop browser, Wifi, 3G or 4G connections, a camera and an additional set of sensors (e.g., accelerometer, gps) (Firtman 2010, 8), and can install third-party applications. 2.1.1 operating systems Linked to the device we have the underlying operating system. When users decide to buy a phone, they are also choosing the operating system they will use, which helps to distinguish if the device is a feature phone or a smartphone. The operating system, but also its version, is important given that it dictates what will be the browsers available for that device. According to Statcounter, 1 on the first trimester of 2012 the worldwide leading operating system on mobile devices was Symbian os with 31.22%, immediately followed by ios with 24.47% 2 and Android with 23.83%. However, if we only take in account the data from Europe or the usa these numbers change dramatically. Symbian drops to 8.37%3 in Europe and to 1.66% 4 in the usa; ios jumps to the first place with 41.69% in Europe and 47.02% in the usa; Android reaches the second place with 31.33% in Europe and with 41.42% in the usa. Both are followed by Blackberry os in the third place but with a much lower market share. Another relevant factor is the ratio of devices that use the latest version of the os, because a more recent version generally means a better browser and support to new features. On Android only 7.1%5 of the devices have the latest version installed. Most devices (64.6%) are with 1 Source: http://gs.statcounter.com/#mobile_os-ww-monthly-201201-201203-bar. 2 This value represents all ios devices; it does not distinguish whether it comes from the iPhone, iPod or iPad. 3 Source: http://gs.statcounter.com/#mobile_os-eu-monthly-201201-201203-bar. 4 Source: http://gs.statcounter.com/#mobile_os-us-monthly-201201-201203-bar. 5 According to the official statistics from Google (http://developer.android.com/resources/dashboard/platform-versions. html), which is based on the Android devices that accessed Google Play during a 14-day period ending on June 1, 2012. The value 7.4% is the result from combining the minor versions of Android 4. Designing For Mobile Devices 23 version 2.3 and a respectable amount (19.1%) are still using version 2.2 that was released in May 2010. On the ios platform the adoption rate of the new versions is noticeably faster: around 72%6 of ios users have already updated their devices to the latest version. 2.1.2 Performance Mobile devices are also more limited in terms of performance than a common desktop or laptop computer. This does not make a very huge impact on simple pages, but is easier to notice, for example, on pages with complex animations on slower devices. It is important to be aware how the technical implementation affects the user experience, because simple css properties, such as box-shadow, or even how the css itself is coded, can make a negative impact on the page performance. Likewise, the network performance should not be disregarded. Mobile devices can be used in outdoor environments, where the only Internet access available is through mobile networks that are slower, and have generally expensive data plans. Serving oversized images can make a large impact on the page loading time, and thus, affect the overall experience of the site. Mobile websites — and websites in general — need to be optimized so that they do not receive unnecessary assets. Some new css properties (e.g., box-shadow, linear-gradient, font-face) allows us to stop sending images that are usually heavier, while still having rich graphics enhancing the page; however, one can use, and should use, any technique that reduces and optimizes the content that is delivered to the device. 2.1.3 why only smartphones? Although we recognize that a website should be accessible by any kind of device, and despite feature phones representing a significant percentage of mobile devices, we think that it is more worthwhile to focus our efforts — as designers in general, and in particular for the purpose of this dissertation — on designing for smartphones. Wroblewski (2011) points out a few reasons behind his decision to focus on designing for smartphones: smartphones have a disproportionate amount of web and data usage7 — smartphones represent only 13% of total mobile device but account for over 78% of total mobile traffic; smartphones have a faster adoption rate8 — in the fourth quarter of 2011 smartphone sales grew up 47%; and they are getting more and more 6 Apple does not make statistics publicly available. This value comes from the data of one developer — David Smith (http:// david-smith.org/blog/2012/05/11/ios-5-dot-1-1-upgrade-stats) — that has a data sample of 100 000 weekly downloads. 7 Source: http://newsroom.cisco.com/dlls/ekits/Cisco_VNI_Global_Mobile_Data_Traffic_Forecast_2010_2015.pdf. 8 Source: http://gartner.com/it/page.jsp?id=1924314. 24 Web Design Pattern for Mobile Devices affordable. This idea it is also supported by Koch (2010) because, as he puts it, “all good mobile browsers run on one smartphone platform or another”. Moreover, Nielsen recently dropped user testing with features phones (2011) and enumerated three reasons for that decision: • “[…] feature phone usability is so miserable when accessing the Web that we recommend that most companies don’t bother supporting feature phone. • Empirically, websites see very little traffic from feature phones […]; • Pragmatically, almost all participants in our mobile user experience courses tell us that they don’t design for feature phones.” Even though designing for only a subset of devices might pose the risk of alienating a respectable share of users, the adoption rate and the greater experience that these devices offer, make it more compelling to do so. 2.2 The Browsers Since we are talking about designing for the web, it is important to understand which browsers are available, what are their capabilities, and how they compare to desktop browsers. The browser used, and its capabilities will dictate how the page will render, and thus, contribute to how the website will be experienced. According to StatCounter the worldwide mobile browser share9 on the first quarter of 2012 was led by Opera with 22.36%, followed by the Android browser with 21.6% and Mobile Safari with 20.16%. However, if we take as reference Europe and the usa those numbers change considerably. In both cases Opera drops abruptly, to 1.98%10 in the usa and 10.14%11 in Europe. On the other hand, in Europe the iPhone gets 36.09% followed by the Android with 29.15%; in the usa, Android leads with 40.43% followed with the iPhone with 37.8%. Except for the Blackberry and Nokia browsers, the market share of all other browsers is almost residual. On the desktop we have five major browsers (Internet Explorer, Firefox, Chrome, Safari and Opera), which represent four major layout engines (Trident, Gecko, Webkit and Presto); on mobile, the browser engines are not much different, but the leading browsers are others though. When we take Europe or the usa as reference, more than 70%12 of current mobile web browsing comes from Webkit browsers (essentially Safari Mobile and the Android browser), and because Webkit represents a great percentage of mobile browsers we can expect similar 9 Source: http://gs.statcounter.com/#mobile_browser-ww-monthly-201201-201203. 10 Source: http://gs.statcounter.com/#mobile_browser-us-monthly-201201-201203. 11 Source: http://gs.statcounter.com/#mobile_browser-eu-monthly-201201-201203. 12 When the results from the Safari Mobile and Android browser are combined. Designing For Mobile Devices 25 web rendering on simple web pages (Firtman 2010, 44); however, there are differences between Webkit implementations, so testing on only one device and browser does not guarantee that a page works perfectly on every Webkit browser. Moreover, mobile browsers are in general more limited in terms of features than their desktop counterparts, but more advanced than older13 desktop browsers. For example, css gradients are supported by most mobile browsers but are still unsupported by Internet Explorer. Some features are not available, or have limited support on mobile. For example, the support for fixed positioned elements is incomplete, or even nonexistent on almost all the current mobile browsers; and the support for sVg files is absent from older Android versions. The supported features depend greatly on the browser and devices used, so ideally websites should be tested in as many devices and browsers as possible. Fling (2009, 170) proposes a classification of mobile browsers based upon their characteristics, from Class A to Class F. Class A mobile browsers have an excellent support for html, css and JavaScript that is comparable to a “desktop-grade” browser. On the contrary, Class F are browsers with unreliable css support, poor table support, basic forms, and no JavaScript support. Lower-grade browsers are usually associated to feature phones and older devices, whereas Class A browsers are present on modern devices such as the iPhone and Android devices. Class A browsers offer a superior browsing experience, and for the same reasons that were stated above for smartphones, they are the ones that you will want, and probably should, focus your work. There is also an additional class of browser, in which the browser client does not contact the website server directly. Instead, all content goes through a proxy server that performs a series of actions on behalf of the client and reformats the page to a format more suitable for the client device. Browsers such as the Opera Mini or Skyfire are included in this class of browsers, and can perform the following actions (Firtman 2010, 43): reduce the content by eliminating features that are not compatible with the device; compress the content; pre-render the content so it can be displayed in the browser faster; convert the content to a supported format, e.g., Flash; encrypt the content; and cache the content for quick access of frequently visited sites. These browsers are very limited in terms of dynamic interactions, since that for every new state the browser request information from the server, so if you need to support them, more complex interactions need to be thought with caution. 13 We are referring to browsers that were released years ago but still have a respectable user share, and need to be somehow supported, e.g. Internet Explorer 7. 32 Web Design Pattern for Mobile Devices Object-Oriented Software (Gamma et al. 1995). Afterwards appeared the first attempts to adapt the work of Alexander to the field of hci. A first substantial set of patterns was proposed by Jenifer Tidwell in Common Ground (1999), and later expanded on works such as The Design of Sites (van Duyne, Landay and Hong 2006) or Designing Interfaces (Tidwell 2005), as well as in others that will be discussed later. Despite the shift on the domain of application of patterns, the essential characteristics that define a pattern remained. A pattern is a three-part rule that expresses a relation between a certain context, a problem, and a solution (Alexander 1979, 247): a context that sets up the pattern in the language; a problem that describes a common problem; and the solution that prescribes a response to that same problem. Formally the structure of a pattern differs depending on the domain — this will be explored further on the next chapters — but nonetheless, each pattern contains only the essentials that cannot be avoided if one wants to solve the problem (Alexander et al. 1977, xiV), so nothing should be imposed. Patterns are possible solutions to a specific design problem, but nevertheless, they are only suggestions, or as Alexander puts it “each pattern represents our current best guess as to what arrangement of the physical environment will work to solve the problem present” (1977, xV). The goal of a pattern is to solve a problem by the means of resolving or balancing the ‘forces’ that are conflicting in a given context. For example, an Entrance Room should be designed in such a way that addresses the following: “A person answering the door often tries to see who is at the door before they open it.” (Alexander et al. 1977, 623). Forces are the constraints that drive a design, and that should be answered before a system finds its equilibrium. The nature of forces depends on the domain of the pattern but can be of social, economic, or physical nature (Borchers 2001, 11). A pattern is an attempt to discover some invariant features that occur on a particular system of forces (Alexander 1979, 260). That is not always successfully done. Patterns are not all equal and authors cannot be equally confident about the validity of all patterns. Therefore, it is important to assess the authors’ confidence on any pattern. Alexander defined that confidence in terms of the ‘invariant’. That is, there are unavoidable features that are present on all the successful implementations of a given pattern, so that a solution for a pattern will become more ‘invariant’ the more it captures those features. For instance, Alexander asserts that a pattern is a ‘true invariant’ when the authors are very confident that it is not possible to solve that problem without using the prescribed solution. 3.1.1 Interaction design Patterns As it was stated above, the concept of patterns was later embraced in domains other than the architecture and urbanism. Tidwell’s (1999) and Borchers’s (2001) works introduced the concept of patterns to the domain of interaction design, which, while different, share some similarities Design Patterns 33 with architecture: they both produce artifacts that inhabitants (or users) can directly interact with or even live in (Borchers 2000). A key distinction between architecture patterns and interaction design patterns is the inclusion of the time dimension. Alexander’s patterns deal with the spatial relations between static structures, which is also reflected on how the patterns are organized in the language: from towns to the smaller construction details. Interaction design patterns, in addition to the spatial dimensions, also have to cope with the dynamic behaviors and change in elements in response to the user activity (Cooper, Reimann and Cronin 2007, 156); changes that occur both in response to the application state and the human activity. Interaction design patterns are more dynamic, and the context and forces often change during the course of interaction (Borchers 2001, 28). This distinction is particularly important when one needs to illustrate a pattern. For example, Alexander’s patterns are illustrated by photos of towns and buildings, however, the dynamic components of interactive design patterns cannot be easily captured by this type of illustration. Therefore new strategies need to be found. 3.2 Pattern Languages and Pattern Libraries […] when you build a thing you cannot merely build that thing in isolation, but must also repair the world around it, and within it, so that the larger world at that one place becomes more coherent, and more whole; and the thing which you make takes its place in the web of nature, as you make it. (Alexander 1977) Patterns are not isolated entities. To be useful they must be meaningfully organized on a set of patterns related to a specific context (Cooper, Reimann and Cronin 2007, 157). Patterns exist on a structured network of interdependent patterns; each one depending both on the smaller patterns it contains, and on the larger patterns within which is contained (Alexander 1979, 312). This means that patterns are linked in a system, in which each one depends on all the others, so to solve a design problem all nodes in that system must be resolved. A set of patterns forms a language, and any smaller sequence of patterns of that language also forms a language on its own. Alexander uses the term pattern language to describe all patterns in a set (e.g., all 253 patterns in A Pattern Language), as well as to describe any smaller sequence of patterns. Borchers defines a pattern language as a “hierarchy of design patterns ordered by their scope” (2001, 7), while Tidwell (2011, xix) defines it just as a very complete set of patterns. A more common term to describe a collection of patterns in a domain is pattern library or pattern catalogue (Cooper, Reimann and Cronin 2007, 157); whereas, they define a pattern language as a set of patterns that “is rigorously defined and specified, and sufficiently 34 Web Design Pattern for Mobile Devices complete to describe all solutions in a domain”. The exact definition of what is a pattern language and its precise scope may vary depending on the author; nevertheless, in short, a pattern language is a collection of patterns for a given context. In this work we adopted the term pattern library to describe a collection of related patterns for a specific domain, e.g., the collection of all the patterns in this work or in books as A Pattern Language (Alexander et al. 1977); and pattern language to describe any subset of patterns collected from a pattern library that are used on a specific context, e.g., all patterns that form the interface of a particular website. 3.3 The Benefits of Design Patterns The goal of Alexander’s patterns was to empower inhabitants with the tools to design and create their own buildings. Patterns support this goal by capturing well-fitting designs and writing them down in an accessible and comprehensible language, understandable by the laymen. They capture the collective wisdom of designers in a way that can be use used by lessexperienced designers (Tidwell 1999), by providing designers with a set of reusable design solutions that can be used on multiple projects and shared with others. They also offer some advantages against other design artifacts, such as design guidelines, style guides or standards. Design guidelines are too abstract or too concrete. Abstract guidelines do not provide a solution to a real problem and do not create a common vocabulary of applicable solution, therefore they do not form a language (Borchers 2001, 7). On the other hand, concrete guidelines only work for a specific interface, which makes them quickly obsolete. Style guides are to used ensure that interfaces share a coherent look and feel; however they are too much tied to a specific technology or company, so they cannot be used outside that particular domain; whereas, patterns do not make assumptions about the aesthetics of a design. Standards establish rules and technical specifications that oversee the implementation of a particular technology on a given domain (e.g., the W3C Web Standards); however, standards are too abstract, do not provide a context, lack examples of use, and are usually written on a very formal and almost unintelligible language that cannot be easily comprehended by people outside that particular technical background. Patterns have had great acceptance on the hci community, because they exhibit some benefits: • Patterns provide designers and non-designers with a common vocabulary and terminology that is valuable in the communication within a team, but also to communicate a project to stakeholders (Tidwell 1999). All the involved parties in a discussion can talk about the same concepts by referring to the patterns name, which results in fewer misunderstandings. Design Patterns 35 • Patterns can work as a learning and educational tool (Carvalhais 2008; Tidwell 2011). They allow designers to expand their interface design vocabulary by reading patterns as a source of inspiration or as reference for when a problem arises. • Patterns reduce design time and effort on new projects (Cooper, Reimann and Cronin 2007, 156), because they offer designers a set of reusable and already proven solutions, thus suppressing the need to solve problems that were already solved; • Moreover, because patterns solve common problems, they allow designers to devote more time to solving new problems. They impose constraints to the designer’s work but allow flexibility in the visual design and interaction details (Tidwell 1999). • Patterns reduce the users’ cognitive load by serving solutions that are familiar. The widespread use of a given pattern makes the behavior of that interface component more easily recognizable, and thus, reduces the time that one needs to learn a new interface. 36 Web Design Pattern for Mobile Devices 37 4 comPArAtIve AnAlysIs of PAttern lIbrArIes 4.1 Pattern Libraries In order to better understand the writing of patterns, and to help us to find a template for the patterns in this work, we started by developing a comparative analysis of sixteen libraries: • A Pattern Language (Alexander et al. 1977); • Design Patterns: Elements of Reusable Object-Oriented Software (Gamma et al. 1995); • Common Ground: A Pattern Language for Human-Computer Interface Design (Tidwell 1999); • A Pattern Approach to Interaction Design (Borchers 2001); • The Design of Sites: Patterns for Creating Winning Websites (van Duyne, Landay and Hong 2006); • Designing Interfaces (Tidwell 2011); • Yahoo! Design Pattern Library (Yahoo! 2006); • Patterns for Computer-Mediated Interaction (Schümmer and Lukosch 2007); • ui Patterns (Toxboe 2007); • Info Design Patterns (Behrens 2008b); • Patternry (Pattern Factory 2009); • Designing Web Interfaces (Scott and Neil 2009); • Designing Social Interfaces (Crumlish and Malone 2009); • Banco de Padrões de Design (Instituto Superior Técnico 2010); • Designing Mobile Interfaces (Hoober and Berkman 2011); • Mobile Design Pattern Gallery (Neil 2012). The main focus of the analysis was on libraries with patterns for interaction design, especially those with emphasis on the design of sites. We sought to include in this study a diverse range of libraries, regarding how they addressed the organization of patterns; the list should also reflect what we considered the most relevant libraries for the domain of this work. Nonetheless, two exceptions were made for historical reasons — A Pattern Language (Alexander et al. 1977), which introduced the concept of patterns, and Design Patterns: Elements of Reusable 38 Web Design Pattern for Mobile Devices Object-Oriented Software (Gamma et al. 1995) that proposed the first meaningful set of patterns outside the domain of architecture and urbanism. Two of these libraries contain patterns for the design of mobile interfaces: Designing Mobile Interfaces (Hoober and Berkman 2011) and Mobile Design Pattern Gallery (Neil 2012), although the last one does not contain patterns as they are usually understood — it is mainly a gallery of images. With regard to their medium, seven of the libraries are books, five are online libraries and the remaining are available on both media.19 The analysis was conducted by taking the model defined by Alexander as a starting point and comparing it to those used in other libraries. We focused on two areas: how patterns are organized in the language; and how the pattern itself is composed. In the analysis of the organization of patterns in the language we focused on: • what hierarchy was used; • the characteristics of each hierarchical level (when they exist); • how patterns were ordered. For the analysis of the structure of the pattern itself we took the sections used by Alexander — name, ranking, picture, content, problem, forces, solution, diagram, and resulting context — and compared them with those used in other libraries. We focused on: • the layout used to format the pattern; • the writing style; • which sections were used, and which were left out; • how authors explained each section; • the different nomenclatures given to the sections; • other sections not present in Alexander’s work that seemed relevant. 19 We only considered libraries in which the online and print versions were the same or very similar. For example, Designing Social Interfaces (Crumlish 2009) has a website where the names of the patterns are listed, but it is mostly a promotional website for the book. Comparative Analysis of Pattern Libraries 39 4.1.1 A Pattern Language figure 4.1 Overview of the Main Gateways pattern (Alexander et al. 1977, 276–279). The concept of patterns was first established in The Timeless Way of Building (1979), and put in practice in A Pattern Language (1977) by the architect Christopher Alexander and his team. Their work, in the fields of architecture and urbanism, proposed a set of patterns with the purpose to empower people with the tools to design their own tows and houses. Since the publishing of this seminal work, other authors sought to expand the concept to other domains. A Pattern Language contains 253 patterns ordered in terms or scale: from the largest ones, such as towns, until the patterns focussing on the details of construction. The sequence presented was chosen based on the connections between them, but since patterns work as a network of relations, that sequence does not represent a strict order between patterns. They work as a hierarchical system where each pattern helps to complete the ones above and is itself completed from the ones below, in short, “no pattern is an isolated entity” (Alexander et al. 1977, xiii). Patterns are also clustered in three major groups: Towns, Building, and Construction, with these being further divided in smaller groups. These groups do not have an explicit title, but rather a small description of the purpose its patterns, for example: fix the position of individual buildings on the site, within the complex, one by one, according to the nature of the site, the trees, the sun: this is one of the most important moments in the language; 20 (Alexander et al. xxVi) Alexander’s patterns consist of: a name; a ranking; a picture; the context; a short problem statement; the body of the problem; the solution; a diagram illustrating the solution; and finally, connections to other patterns. The first pattern does not have a context and the last one 20 Description for the group of patterns 104 to 109: Site Repair, South Facing Outdoors, Positive Outdoor Space, Wings of Light, Connected Buildings, Long Thin House. 40 Web Design Pattern for Mobile Devices does not have related patterns, therefore, reinforcing the idea that patterns in the language are interconnected in a continuous thread. The sections are not explicitly declared, that is, there are no headings delimiting each one, but the limits of a section can be inferred from the strict format used in the layout and typographic style: • all patterns have the same number of components, and their components are always displayed in the same order; • an ellipsis establishes the beginning of the context, another the end of the pattern — they are used to reinforce the relations between patterns, i.e., signalizing that there are patterns before and after the current one; • the problem and solution paragraphs are formatted in bold and spatially separated from the rest of the text by a blank line; • the solution is always introduced with “Therefore:”; • diagrams share a common graphic language; • a series of three diamonds is used to mark the beginning of the problem, and to mark the end of the solution; • patterns’ names are always set in small caps throughout the book, so they can be easily recognized. Patterns are identified by a number and a name. A name is an essential component of a pattern, and expresses, in one or a few words, the problem it solves. Next to the pattern name there are a series of asterisks classifying the confidence of the authors in the pattern. A pattern is marked with two asterisks when is thought to be a ‘true invariant’, i.e. when the authors considered that it was not possible to properly resolve the problem stated without the use of this pattern; one asterisk when it is believed that an ‘invariant’ has been identified, but that it is still possible to improve the pattern; and no asterisk when the authors are certain of having not succeeded in defining a ‘true invariant’, i.e., when the solution presented is only one for the possibilities of solving the stated problem. figure 4.2 Illustration for the Bed Cluster pattern (Alexander et al. 1977, 676). Comparative Analysis of Pattern Libraries 41 After the pattern’s name there is an archetypal picture illustrating the application of the pattern: a photography of how the pattern’s solution may work (Figure 4.2). This is followed by an introductory paragraph with the context of the pattern within the language, usually explaining how the pattern is related to larger ones. Marking the beginning of the problem there are three diamonds, followed by a paragraph, formatted in bold, stating the essence of the pattern, and summarizing the problem the pattern addresses. It follows the body of the problem, the longest section of the pattern and the place where the empirical background of the pattern is described. Here is where the forces that drive the pattern are discussed. Formatted similarly to the problem statement, the solution is stated in the form of an instruction, and presents, in a general and abstract way, what one needs to do to resolve the conflicting forces. figure 4.3 Diagram for the Interior Windows pattern (Alexander et al. 1977, 897). To help the reader visually understand the solution, each pattern is complemented with a sketch: a diagram (Figure 4.3) that synthesizes the solution and the spatial relations of its components. It follows the last row of three diamonds, and finally, a paragraph that connects the pattern with other patterns in the language, i.e., a list of which other patterns can be use to complete this one. 4.1.2 Design Patterns: Elements of Reusable Object-Oriented Software Design Patterns: Elements of Reusable Object-Oriented Software (Gamma et al. 1995), by the authors that are also informally known as the Gang of Four, was the first effective attempt to expand the concept of design patterns to a domain besides architecture and urbanism. This work in the field of software engineering describes twenty-three patterns for the design of software applying the principles of object-oriented programing. Patterns are organized in a more complex structure than that which is used in other libraries. They are simultaneously classified by two criteria: a purpose that reflects what the pattern does, and that can either be Creational, Structural or Behavioral; and a scope that specifies whether the pattern applies to classes or objects. That is, each pattern has a purpose and a scope, e.g., the pattern Composite is Structural and an Object. Authors also identified other 48 Web Design Pattern for Mobile Devices The Design of Sites (van Duyne, Landay and Hong 2006) is the second edition of a book first published in 2003 that contains patterns for the design of websites. In addition to the book there is a supporting website,22 which functions primarily as a promotional website, where we can find simplified versions of the patterns in the book. They are organized in thirteen groups of thematically related patterns (e.g., Basic E-Com- merce) which are identified by a name, a letter, and a color. The disposal of these groups is not arbitrary, it starts with the more broad ones until those that deal with details (e.g., Speeding Up Your Site), or as the authors put it, “the earlier the pattern group appears on this scheme, the earlier it should be used in the design process” (31). Patterns are formally organized in six parts: name, background, problem, forces, solution, and other patterns to consider; these sections are explicitly titled, except for the forces. The name of each pattern was chosen so that it consists of a phrase that can be used within a sentence, e.g., “You should add Category Pages to this site”. As in A Pattern Language, patterns’ names used throughout the book are formatted in small caps to be quickly identify. Besides the name, each pattern is also identified by a unique code, consisting of a letter and a number inside a color-coded circle, in which, the color and the letter identify the group of the pattern; and the number, the pattern within the group. When a pattern is referenced in the text, this code shows up on the text margins, and the textual part of this code shows in a parenthesis next to the name. Following the name there is an image illustrating the pattern (with a corresponding label) describing the image, and the date in which this screenshot was taken. Next, there is a background providing the pattern context: other patterns that originate this one, and the scope of the pattern. It is followed by the problem (formatted in bold), which consists of a succinct description of the specific problem that this pattern addresses. The longest part of the pattern is the one dedicated to its forces, and depending on the pattern, it may be divided in multiple sections, addressing the different questions that one must answer to solve a design problem. This text is formed primarily by text in prose, but can have additional images or graphics. Next comes the solution — formally similar to the problem, — formatted in bold and consisting of a succinct statement of how to solve the problem; accompanied by a sketch of the pattern. Finally, there are recommendations of additional patterns that may help to complete the current one. Although this book was published in 2006, the last group of patterns offers a small sample of patterns for the design of sites in mobile devices: Mobile Screen Sizing, Mobile Input Controls, and Location-based Services. While these patterns do not necessarily represent the character- 22 www.designofsites.com Comparative Analysis of Pattern Libraries 49 istics of the current mobile websites, and are optimized for what is now more commonly described as feature phones, it is still interesting to take notice of them. 4.1.6 Designing Interfaces figure 4.14 Overview of the Sequence Map pattern (Tidwell 2011, 118–119). Designing Interfaces (Tidwell 2005) is the successor of Tidwell’s previous work, in which it was proposed a first set of pattern for the design of interactive systems. This work offers 125 patterns for the design of interfaces, in particular, applications and websites. In the second edition of the book (Tidwell 2011) besides updated patterns and examples, the most relevant addition is a chapter dedicated to mobile interfaces. Patterns are organized in eleven chapters, loosely ordered in terms of scale, implying some sort of top-down hierarchy, and corresponding to the order that they usually appear in the design process. It starts with the users’ behavior, and then follows the organization of the content until the details. All patterns follow a similar structure except the ones in first chapter, because these patterns are related to the users’ behavior with interactive systems rather than graphic components. Thus, these patterns only have a name; a subtitle, which is a sentence posed as a hypothetical opinion of a user about the pattern, for example, the Keyboard Only has as subtitle “Please don’t make me use the keyboard.”; and the reasoning of the pattern. 50 Web Design Pattern for Mobile Devices figure 4.15 Illustration for the Clear Entry Points pattern (Tidwell 2011, 87). The consequent patterns are composed by a name that is styled throughout the book in blue and capitalized. This is followed by an illustration: usually a screenshot from a website or application; when the pattern does not have a clear shape, a schematic representation is used instead, e.g., Clear Entry Points (Figure 4.15). The explanation for the pattern is distributed through four sections: What, Use When, Why, How. It is also provided a section with additional Examples or implementation details, and another section with links to equivalent patterns In other libraries. 4.1.7 Yahoo! Design Pattern Library figure 4.16 Overview of the Progress Bar pattern (Yahoo! 2006). Comparative Analysis of Pattern Libraries 51 Developed by Yahoo! and published in 2006, 23 this library currently contains 59 patterns that are used on Yahoo!’s own network of sites. Patterns are organized in categories, with five groups in the top level: Layout, Navigation, Selection, Rich Interaction, and Social. As other libraries, this one also tries to organize and sort the main categories in terms of scale; sub-levels are organized by the pattern function, e.g., all types of transition are in the same section. One difference between this and other libraries analyzed is that, here, patterns can appear at any level, except at the first one, i.e., we can find a pattern next to a section name, being both at the same level. This is also the library with most hierarchical levels: a total of four. Each pattern starts with a title, ranking, last modification and a major example (always from the Yahoo! network), followed by a small description. The main content is divided in multiple sections, addressing four central questions: What Problem Does This Solve?, When to Use This Pattern?, What’s the Solution?, Why Use This Pattern? Besides these main sections, other optional sections may be developed, such as: Accessibility or Special Cases. Almost all the textual content of the patterns is composed as lists, with small paragraphs, and occasionally with images providing additional details about its implementation; however, these images are not directly linked to the corresponding website, instead, links are aggregated on a list in the sidebar, which makes it more difficult to find the correct example. Finally, additional examples of the pattern in other websites may also be offered. Beyond the pattern main components, associated content may be provided in a sidebar: related patterns to accomplish the same objective; code examples or instructions of how to technically implement each pattern; where can we find the pattern on the Yahoo! network; where can we find it on external websites; wireframe stencils. The library is also open to users’ feedback and discussion through a forum, but participation can be considered poor.24 One interesting aspect is how ratings are presented. They are not expressed in a numerical scale, but rather textually: Beta; Working Solution; Best Practice, but we can still translate those expressions to a three-level scale, as in Alexander’s patterns. Because of this less abstract approach, it is easier to decode the meaning of the rating; however, because of the expressions chosen, it is also easier to misunderstand its purpose, for example, we could understand Best Practice as a pattern we must always use, though, that is not what was intended. 23 As stated by Erin Malone (Crumlish 2009), Yahoo! started the development of this pattern library in 2004, only later, in 2006 it was decided to publish a subset of the library to the public. 24 Inside the Yahoo! Developer Network there is a forum dedicated to design patterns, and within, a subforum for each major section (e.g., Social). Since its opening in 2008, around twenty topics were started, many of them with not much more than two posts, most made by the same Yahoo! employee; and with some of the topics unanswered. 52 Web Design Pattern for Mobile Devices 4.1.8 Patterns for Computer-Mediated Interaction figure 4.17 Overview of the Application Sharing pattern (Schümmer and Lukosch 2007, 215–216). Published in 2007 by Till Schümmer and Stephan Lukosch, this book discusses patterns for applications supporting computer-mediated interactions or groupware applications. Patterns in this work are arranged in what the authors call ‘layers’, each one addressing a different problem. In the top layer we find “patterns for establishing a community” (Schümmer and Lukosch 2007, 43), in the second “patterns for supporting small groups in their interaction” (44) and the lowest layer “patterns for designing the infrastructure that is needed by the groupware tools” (44). Each layer is further divided in ‘clusters’, each one addressing a specific theme or type of need. In short, each pattern contains: a name; a ‘sensitizing’ photograph; the Intent; the Context; the Problem; a Scenario; Symptoms; the Solution; the Dynamics; the Rationale; a Check List; Danger Spots; Known Uses; and, Related Patterns. Patterns start with a name that should be memorizable so it can be used in communication within a project (30). Throughout the book, names are formatted in small caps and assigned a corresponding index number (e.g., 3.1.7) representing the chapter and section where the pattern can be found. The name is complemented with alternative names by which the pattern may be known. Next to the name is the pattern ranking. Authors opted to use the same type of ranking used in Alexander’s patterns: two asterisks, one asterisk or none. Then, follows a ‘sensitizing’ picture illustrating the pattern, a picture that should capture the essence of the patterns and help users remember it (30). However, oddly enough, this im- Comparative Analysis of Pattern Libraries 53 age is not necessarily an explicit representation of the pattern, but rather a metaphor of the pattern solution. Authors give the example of the Activity Log pattern which is illustrated by a photograph of an elephant’s head, meaning that this patterns advocates remembering activities like elephants (Figure 4.18). The picture is further complemented with a dictionary definition of some part of the pattern name; for example, in the case of the Activity Log there is the definition of the word log. figure 4.18 Illustration for the Activity Log Pattern (Schümmer and Lukosch 2007, 371). The main body of the pattern follows, starting in the Intent, which states the purpose of the pattern in a prescriptive sentence, e.g., “Show who has been active at a specific point in time.” (104) Afterward, there is the pattern’s Context, where the authors describe the situation for which the pattern was intended, followed by the description of the problem, which gives a quick overview of the problem the pattern tries to solve; authors recommend that one should start reading a pattern from this section. To help in the contextualization of the pattern, there is a section describing a possible scenario for its application: a description of a concrete example of the pattern use. In the beginning of the book the authors tell the story of Paul Smith, a software engineer who works in a collaborative game engine development community, whose story is the main setting for the scenarios described in each pattern. Then, there is a list of Symptoms, presenting the situations when one should consider the use of this pattern. This is followed by a paragraph with the solution, which succinctly provides instructions on how to implement the pattern, and it is formatted similarly to the corresponding section in A Pattern Language (Alexander et al. 1977): a paragraph styled in bold, and starting with “Therefore:”. Then appears the main explanation for the pattern. First, in the section Dynamics, it is discussed the elements that are in play when this pattern is used; then the Rationale with the reason of why we should use this pattern. Followed by a section named Check, which offers a list of questions we must answer when applying it. And then, the Danger spots presents new conflicts that may arise when in this pattern is used. 54 Web Design Pattern for Mobile Devices Examples of the implementation of the patterns are present in the section Known Uses. The majority of these are textual descriptions of sites, applications or other types of systems that implemented the pattern, many are complemented by screenshots. Finally, there is the Related Patterns section, describing the patterns that may complement this one. Generally the connections are established to other patterns in this library, but they can also reference external libraries, for example, the pattern Active Map lists as a complement to it, the pattern Annotated Scrollbar present in Designing Interfaces (Tidwell 2011). 4.1.9 Info Design Patterns figure 4.19 Overview of the Ring Chart pattern (Behrens 2008b). The Form of Facts and Figures (2008a) is the title of the Master’s thesis of Christian Behrens, a work with design patterns for information visualization. His print work is accompanied by a website — Info Design Patterns 25 (2008b) — only with the patterns of his thesis. 25 www.infodesignpatterns.com — The current version of the site is different from the one that was available at the time of writing of his document. Comparative Analysis of Pattern Libraries 55 Patterns are organized hierarchically in three major categories (grouped by purpose), and divided further in subcategories, although in the website version the top-level is not displayed. Additionally to the taxonomy used, Behrens also proposes the use of a tag system in the online version26 of his work, for the reason that within a hierarchic system “the rigid tree structure proves somewhat inflexible the larger the collection grows” (Behrens 2008a, 43) Therefore, each pattern has one or more labels assigned to it that attempt to summarize its characteristics, and allow users, for example, to search for a pattern that matches two conditions. Each pattern can be identified by a code, composed by an alphanumeric id that precedes the pattern title, in which a letter denotes the pattern major category, and the two-part number represents the subcategory and the pattern. Besides the title and identification code, each one is also associated with an iconic image visible next to its title. Patterns were designed to be able to perform a certain task autonomously, but also to work inside a system of patterns where interconnections are established among them. Thus, the author devised a system of relations where a pattern could be connected at the same time to multiple patterns. Five types of relations, each one with an associated icon, were created: • A pattern is called Specialization when it shares the same functionality of another, but has more specialized characteristics or features — analogous to the concept of inheritance in software development. • Consequently, a pattern is a Generalization of another when it serves a more generic purpose. This and the former type of relation are bi-directional, i.e. when a pattern is a Specialization, the opposite pattern is a Generalization. • A pattern is called an Alternative when a different pattern can be used to archive the same or similar purpose. • Patterns can be linked by Collaboration when the use of a pattern depends on some functionalities of another. • Finally, Feature Similarity describes when a pattern shares some functional aspects, but not enough to be qualified and recommend as an alternative. figure 4.20 Summary of the relations that the Simple Bar Chart pattern can perform (Behrens 2008a, 67). 26 The tags that he mentions in his thesis are currently absent from the website, thus, it was not possible to analyze them in more detail. 56 Web Design Pattern for Mobile Devices In the website these related patterns are linked on the sidebar, while on the print version, this information is visible in two places: on the first spread of each pattern description, in a row of bookmarks attached to the right margin, using only its code id; at the end of each pattern with its full title and the correspondent icon (Figure 4.20). The pattern itself consists of four sections: the Description, which gives a short introduction on its purposes and outlines the problems that usually trigger its usage; the Required Data describing what kind of data is needed to use the pattern; the Used section outlines the steps we have to perform to implement it; and the Rationale summarizes the pattern and arguments it for its usage, i.e. why it is a good idea to use it. Patterns are illustrated by an infographic, with the exception of a few, e.g., Faceted Browser. The author opted to develop a consistent graphic language common to all patterns, so users would not be distracted by structural or functional details. In addition to the infographic, each pattern is illustrated by a ‘real-world’ example of the application of the pattern; however, in the online version this image does not exist. Images also have a label explaining what kind of data it is representing, and from where the image was taken. 4.1.10 Patternry figure 4.21 Overview of the Vertical Module Tabs pattern (Pattern Factory 2009). Comparative Analysis of Pattern Libraries 57 Patternry27 is a commercial service focused on delivering a way to document, share and collaborate on design patterns. It offers a public pattern library — Patternry Open Library — as a demonstration of some of its functionalities. In short, with this service users are able to create their own private pattern libraries and share them with coworkers. The public library presents thirty-seven patterns, seven of which are marked as mini, as they exhibit a lower level of development. Since the main focus of this service is in allowing users to create their own private libraries, they cannot edit the main body of the public patterns, or freely add new ones; however, users are free to add new examples, code snippets, useful links, and comments. Patterns are displayed without any hierarchy, i.e., they are all at the same level. However, some methods are implemented to help on its organization: patterns can be sorted alphabetically or by creation date, and filtered by tags. Patterns are identified by a name, but alternative names (Also known as) of how they might be known are also provided. Date and author of the last edit are also displayed. A major difference on the formatting of these patterns is that the solution is presented before its explanation. A visually highlighted block shows the solution next to an illustration of the pattern, generally is used a single screenshot, but when the pattern deals with more dynamic content, a video (e.g., Inline Edit) or a series of screenshots (e.g., Ratings) may be used. Only then follows a more extensive explanation of the pattern, which addresses four main topics: what, when, how, why; 28 some patterns may have one section dedicated to accessibility, and another to sources — where we can find this pattern on other libraries, or articles that inspired it; however, in the mini patterns this extensive explanation is missing. Nearly all of the text is composed as lists, except for the first block. Finally, there is a section with Possibly related patterns, composed with patterns (programmatically chosen) that share a common tag. 4.1.11 Designing Web Interfaces Published in 2009, Designing Web Interfaces is a book by Bill Scott and Theresa Neil with interaction design patterns for the web, most of them referring to the design of rich web interactions. These patterns handle, primarily, specific details of the user’s interaction with the system, in contrast, for example with The Design of Sites (van Duyne, Landay and Hong 2006), which deals with a more structural level of websites design. There is also a supplementary website29 with an outline of all the patterns, and updated examples. 27 www.patternry.com 28 In the original: “What problem does the pattern solve?”, “When to use it?”, “How to use it” and “Why to use it”. 29 www.designingwebinterfaces.com 64 Web Design Pattern for Mobile Devices Audio and Vibration. Patterns are also divided into thirteen smaller subsections, in terms of the pattern function. In contrast with the top-level sections that were sorted by scale, it is not clear whether there is an order in the subsections. figure 4.27 Overview of the Location Jump pattern (Hoober and Berkman 2011, 260–261). Patterns are identified by a name that is styled throughout the book in color and capitalized. This is followed by a section describing the problem; and another section describing the solution that is accompanied by an illustration. Authors chose not to include screenshots of real interfaces to illustrate each pattern, instead, they opted to use a low-fidelity image, similar to a wireframe, with a schematic and abstract representation of the pattern. They produced illustrations that shared a common language, for example, when color is used it has some meaning: interactive elements are styled in yellow; blue is used for images or graphics; gray represents non-selectable items; and orange is used when the item is in focus, e.g., when scrolling a list. They considered that screenshots might not display clearly the pattern, since each device adds its own style, and these additional graphic elements could overshadow the pattern itself. Additionally, they also chose to use illustrations for a reason of practicality: some of the examples needed were from devices where it was difficult to take clear pictures, e.g., feature phones or gps. At the end of the pattern there is a section with possible variations of the pattern, e.g., the Vertical List pattern suggests as an alternative, the pattern Infinite List. The section Interaction Details explains the interaction of the user with the pattern, such as, places where the user can click and what happens when they do it. Similar to the previous Comparative Analysis of Pattern Libraries 65 section, there is the section Presentation Details, which discusses the elements of the pattern that cannot be interacted by users. Both sections may be complemented with illustrations of the interaction, and graphics of hands interacting with the elements of the patterns are usually used to help in the understanding of the pattern. At last, the section Antipatterns, discusses the situations when we should not use this pattern, or problems that may arise with its implementation. 4.1.16 Mobile Design Pattern Gallery figure 4.28 Overview of the Basic Table pattern (Neil 2012, 68). This in one of the latest pattern libraries published and one of the few that only contains patterns for mobile devices. This library — or gallery, as they appropriately describe it — is a twopart work: a book and a website.36 It is composed by patterns for the design of mobile applications, with examples collected from multiples devices and platforms. There are no examples from websites, but nevertheless, some are generic enough to be used on the web. The patterns presented are somehow incomplete, at least if one follows Alexander’s model. Despite being described as patterns, they are at best very simplified versions: they are composed by a name; screenshots from interfaces that use the pattern; a short description; and a sketchy illustration (Figure 4.29), in which the pattern is abstracted to a simplified and stylized form. 36 www.mobiledesignpatterngallery.com 66 Web Design Pattern for Mobile Devices figure 4.29 Illustration for the Expanding List pattern (Neil 2012, 240). Although not as complete as other libraries, this kind of work can be very helpful if we want a general and quick overview of how a pattern looks, or a usable source of inspiration. The usefulness of this work might also be augmented if we can link each pattern to a matching pattern in other libraries. 4.2 Summary of the Results The work of Alexander has been providing a common ground for what is a pattern language; however, that does not mean that the pattern format he proposed has been followed faithfully.37 The departure from the strict format of Alexander’s patterns may be understood as a need to reach a broader public, but also as the result of the experience gained by authors through the years while working with patterns. An example of this can be found in Tidwell, in the way how her earlier work is closer to the format of A Pattern Language than the later. A Pattern Language (Alexander et al. 1977) established a set of typographical rules that make the pattern structure visible without being explicitly declared, stipulating a clean and effective outline for patterns without cluttering the design with labels. However, this format did not get much support by other authors. While effective, implicit sections with long paragraphs of text can be rather unintelligible for someone who is trying to read a pattern for the first time. Thus, authors departed from this model towards one more direct and comprehensible, through the use of more and smaller sections, and more descriptive names, allowing an easier scanning of the content. 37 Only Borchers followed strictly the format of A Pattern Language, but Common Ground (Tidwell 1999), and The Design of Sites (van Duyne, Landay and Hong 2006) have a somehow comparable structure in terms of sections and content. Comparative Analysis of Pattern Libraries 67 Alexander defends that patterns should be written in prose. Borchers also asserts that patterns should be presented as written texts “to make them easy to read and understand even for people from other professions” (Borchers 2001, 54), and avoiding “genre-specific jargon and notation where possible” (43). Regardless of the idea, this writing style has been dropped for something more direct and concise. The works of Alexander and Borchers have a rather academic tone, written in a quite technical language that may be a little intimidating for a reader trying to quickly decode the pattern purpose. For example, books published by O’Reilly (e.g., Designing Interfaces) aim to reach a broader public, therefore, they are written in a friendlier style, with fewer and shorter paragraphs, and with a widespread use of lists, combined with several images. Online libraries also follow this more direct language. Alexander carefully ordered his language to reflect the spatial relations among patterns, from the ones of larger scale to the building details. This organization worked particularly well because architecture deals predominantly with physical relations. Although this order is not so clear in patterns for interaction design, authors have tried to propose systems that respond to this problem. For instance, van Duyne proposed an order in which “the earlier the pattern group appears on this scheme, the earlier it should be used in the design process” (2006, 31). Tidwell uses a similar system, in which she sorted patterns “by their approximate order in the design progression” (Tidwell 2011, xx) that, in short, is translated as: first, it is given the users’ behavior; then, the structural components; and finally, the details. Patterns libraries are generally organized in some sort of hierarchical system that provides a more manageable list, helpful when one needs to find a particular pattern. Only libraries with few patterns do not have a rigid hierarchic system in place, but even in those it is useful to have some sort of organization; for example, Patternry uses a tag system for that purpose. From the set of libraries analyzed, thirteen use a two- or three-level scale hierarchy, and one (Yahoo! Design Pattern Library) has a hierarchy with four levels. 4.2.1 name Naturally, every pattern needs a name, so it can be called and recalled during a design project, which needs to be strong and clear so clearly communicates its purpose. Alexander considers that “the search for a name is a fundamental part of the process of inventing or discovering a pattern” (1979, 267). Tidwell (1999) recommends the avoidance of “gui-centric” names whenever possible (e.g. mice, menus, dialogs), so patterns can be used outside the domain of graphic user interfaces. A good example is expressed in The Design of Sites (van Duyne, Landay and Hong 2006), in which the name is designed as a phrase so it could be used within a sentence, e.g., “What is the name of that Page Template?”. However, in other libraries the nomenclature of patterns is not so consistent. For example, in Designing Social Interfaces (Crumlish and Malone 68 Web Design Pattern for Mobile Devices 2009) we can find in the same library patterns named as nouns (Forums), actions (Saving), or phrases: some imperative (Edit This Page), some metaphorical (The Ex-Boyfriend Anti-pattern). When a pattern is referenced in another section of the library, it is a common practice to visually emphasize it. However, how this should be done is left to the author or publisher. Since Alexander started to compose the pattern name in small caps, some authors followed him, e.g., A Pattern Approach to Interaction Design (Borchers 2001), but that does not mean that this is the only, nor the best, way to format it. In the books from O’Reilly, e.g., Designing Interfaces (Tidwell 2011), the name is capitalized and in color, while in the online libraries, the name is, as expected, linked to the corresponding pattern, and styled with a contrasting color or underlined. In some libraries, a numeric or an alphanumeric code is used to identify patterns. Alexander numbered his patterns sequentially from 1 to 253, reflecting the hierarchy between them. A more interesting approach is used, for example, in The Design of Sites, in which a unique alphanumeric code identifies the pattern and the hierarchic structure of the language (e.g., F3 Shopping Cart, the ‘F’ refers to the group and the ‘3’ to the position of pattern in the group). Patterns for Computer-Mediated Interaction (Schümmer and Lukosch 2007) uses a similar system, with the difference that, there is not a dedicated index for the patterns, so the index of the book chapters is used to this purpose (e.g., 3.1.6 User Gallery). These type of codes are more useful in print works, since books are not inherently open to constant changes. Indeed, none of the online libraries use this type of system. For example, in libraries such as ui-Patterns (Toxboe 2007) it would not be advisable to number patterns — other than by the order that they were added to the library —, since at any time a new pattern can be added to the library, and thus, break the relations established previously. In The Form of Facts and Figures (Behrens 2008a) each name is accompanied by a unique pictogram, with a very simplified version of the pattern solution (Figure 4.30). Although helpful and a nice touch, given the scale of those images, it might be difficult to extend this strategy to other domains. figure 4.30 Tree Diagram pattern from The Form of Facts and Figures (Behrens 2008a, 98). 4.2.2 ranking Most libraries do not classify patterns, and in those that rate them, the most common type of ranking is a three-level scale, probably grounded on the one originally used by Alexander, corresponding to the authors’ confidence in a pattern. However, only Borchers and Schümmer Comparative Analysis of Pattern Libraries 69 use the same ranking as Alexander, i.e., the same asterisks with the same meaning. The Yahoo! Design Pattern Library uses a similar three-level scale, but it is expressed as textual expressions: Beta; Working Solution; Best Practice. In two of the online libraries, patterns are classified by the users’ input; in ui-Patterns and Info Design Patterns users can vote up or down for a pattern. The main difference between the two is that one presents the result in absolute values, for example: 8 persons ‘approved’ the pattern (Tree Diagram, in Info Design Patterns); and the other as a percentage (Figure 4.31). figure 4.31 Article List rating from ui Patterns (Toxboe 2007). 4.2.3 context In A Pattern Language (Alexander et al. 1977), each pattern is introduced by a small paragraph contextualizing the pattern within the language through the reference of other patterns; however, this information does not assume the same relevance in other libraries. Some have a short introduction for each pattern, but these do not have the same characteristics of the context, i.e., higher level patterns are not reference as a way to contextualize that pattern in the language. One reason for this may be that patterns in Alexander’s book function as a whole, and that the relations and even the order where they appear in the language have considerable significance, whereas, other authors do not give the same emphasis to the language as he gives. 4.2.4 Illustration All libraries provide some sort of illustration for patterns, with the exception of Common Ground (Tidwell 1999) that only lists the examples textually. The type of illustration differs depending on the domain of the pattern and the medium of the library. In architecture, Alexander uses photographs of buildings and spaces. Borchers uses a diverse set of examples, the most common being photographs — mainly for patterns that represent people interacting with a system —, but also musical notations, organizational charts, and screenshots. In Patterns for Computer-Mediated Interactions, authors opted to illustrate patterns with symbolic photographs, usually a literal interpretation of the pattern’s name, e.g., the pattern Letter of Recommendation is a photo of someone writing a letter; whereas patterns for interaction design use, predominantly, screenshots of the interface. 70 Web Design Pattern for Mobile Devices figure 4.32 Illustration for the Film Strip pattern, in Designing Mobile Interfaces (Hoober and Berkman 2011, 91). One important aspect of the interaction design patterns, is of the time dimension, i.e., the representation of the users’ actions with the system. It is commonly denoted by the use of multiple images, each one portraying a different state of the system, and working analogously to a storyboard. The best example is the book Designing Web Interfaces (Scott and Neil 2009), in which almost all patterns are illustrated by a series of annotated screenshots, corresponding to the pattern’s solution. In Designing Mobile Interfaces (Hoober and Berkman 2011), patterns that denote an interaction between the user and the interface have graphics representing those gestures, e.g., the graphic of a hand with arrows embodying the movement needed to interact with the system (Figure 4.32). An alternative approach to this problem is the use of small videos showing the user interacting with the system. However, this method is not used extensively, we only found a few examples in Banco de Padrões de Design (Instituto Superior Técnico 2010) and Info Design Patterns (Behrens 2008b). figure 4.33 Illustration for the Checkbox pattern, in Info Design Patterns (Behrens 2008b). The checkboxes on the top right can be ticked to toggle the visibility of the map layers. Comparative Analysis of Pattern Libraries 71 The most interesting and noteworthy approach was used by Behrens (2008b) in Info Design Patterns through the application of real interactions, rather than merely static illustrations, depicting how a pattern really works. For example, in the pattern Checkbox (Figure 4.33) we can actually use the checkbox to toggle the visibility of the layers on the image. This approach allows us to apprehend more easily how interface elements respond to users’ actions or how the system responds through time. Besides the main example, it is common to have additional ones, either on a dedicated section (Designing Mobile Interfaces), throughout the pattern itself when needed (Designing Interfaces), or even through a whole website section dedicated to examples (ui Patterns). In some online libraries examples are complemented with users’ content. 4.2.5 Problem Alexander summarizes the pattern problem in a paragraph styled in bold and spatially detached from the rest of the text. This format was initially followed in A Pattern Approach to Interaction Design (Borchers 2001) and in The Design of Sites (van Duyne, Landay and Hong 2006), but dropped by most authors since then. The change has been towards a more explicit label for the section. For instance, the problem may be presented as What, or even more descriptive as “What Problem Does This Solve?”. Nonetheless, regardless of the nomenclature used, a statement describing the problem that the pattern addresses is somehow present in all patterns. 4.2.6 forces In A Pattern Language (Alexander et al. 1977) the reasoning for the pattern appears in a section between the problem and the solution statements. This is usually the longest part of a pattern, and in the case of Alexander and Borchers it is written in a dense block of text. To make this content more approachable, most authors opted, since then, to divide it in multiple and smaller sections, with a more direct writing style and broader use of lists. The meaning of the expression forces might not be entirely clear for readers, thus, most authors omitted the reference to it. Indeed, the section that states the main reasoning for the pattern is only named as Forces in Common Ground (Tidwell 1999) and in The Design of Sites (van Duyne, Landay and Hong 2006). Instead, the corresponding content is normally disposed in more descriptive sections, such as, Why or Considerations. 4.2.7 solution Alexander clearly states the solution of the pattern in a succinct paragraph visually detached from the rest of the text, written in a prescriptive language. Since all patterns need to provide 72 Web Design Pattern for Mobile Devices a clear solution, this format was somehow followed by most authors, either through a section named Solution, or in an equivalent section. The most distinct case is Designing Web Interfaces, in which the solution is not explicitly given, but can be understood by the reading of the pattern. Indeed, the main steps necessary to the pattern’s implementation are revealed in the storyboard. Patternry and ui-Patterns present the solution at the beginning of the pattern, in a highlighted block, containing a short description and illustration of the solution. By clearly setting the purpose of the pattern and presenting the solution, this approach helps the reader to get a quick overview without the need of further reading. 4.2.8 diagram Although particularly important in Alexander’s work, the diagram is not present in many of the libraries later developed. As he defended: “If you can’t draw a diagram of it, it isn’t a pattern.” (Alexander 1979, 267). This is especially true in architecture because it deals with physical elements and spatial relations, but in other domains the drawing of a diagram can be a more difficult task. Nonetheless, even the patterns in Design Patterns: Elements of Reusable Object-Oriented Software (Gamma et al. 1995), which do not have a concrete shape, have some type of graphic representation, namely, a diagram based on the object-modeling technique (Figure 4.34). figure 4.34 Diagram for the Template Method pattern, in Design Patterns: Elements of Reusable Object-Oriented Software (Gamma et al. 1995, 325). With regard to interaction design patterns, few libraries provide a diagram. In Common Ground (1999), Tidwell occasionally uses drawings to represent a pattern, though, these sketches work primarily as illustrations, as they are used interchangeably with screenshots. The patterns in Borchers’s work and in The Design of Sites (van Duyne, Landay and Hong 2006) are the only ones that have the solutions illustrated by diagrams (Figure 4.35); in Borchers’ Comparative Analysis of Pattern Libraries 73 work, the sketches assume different graphic styles depending of the domain of the pattern, e.g., musical notations for the musical pattern language. figure 4.35 Diagram for the Category Pages pattern, in The Design of Sites (van Duyne, Landay and Hong 2006, 250). 4.2.9 related Patterns It is common for authors to establish some type of connection among the pattern in the language. While the nomenclature may differ, it is usually done through a dedicated section at the end of the pattern, referencing patterns that may complement that one. This information can be just a link to the pattern, but also an explanation of the connection. In other libraries, such as Designing Mobile Interfaces (Hoober and Berkman 2011), there is not a dedicated section for this; instead, the relations are explained within the text when necessary. Normally, the list of the related patterns is curated by the author, but can also be done programmatically by some criteria. For example, in Patternry all patterns have a list of five Possibly Related Patterns that are chosen based on common tags. Generally these connections are established by a simple reference of the pattern’s name, but sometimes the relation is explained. However, Behrens in Info Design Patterns (2008b), devise a more complex and interesting system, in which a pattern can be connected to another by one of five types of relations. Although they are not the same kind of connections, some libraries acknowledge the existence of other works by linking to a corresponding pattern in another library (e.g., ui-Pat- terns). This information can be helpful given that it provides an alternative take in the same subject, but more important, it can complement and enrich the value of a pattern with additional material. 80 Web Design Pattern for Mobile Devices theoretical background for it. We present the reasons of why one should use the pattern, when should and should not use it, as well as liabilities, problems, tips, concerns or implementations instructions that may be applicable. 5.7 examples Although a more abstract representation of a pattern can be superior when trying to grasp its basic structure, it is still important to see real-world examples. Therefore, at the end of the pattern, we present a collection of screenshots from websites that we consider a good example of the pattern’s implementation, linked (when possible) to the page from where they were taken. 5.8 Related Patterns Finally, at the end of the pattern there is a section with additional information that helps to expand and complement each one, consisting of two types of content: • The first group consists of patterns in this library that have similar a function, and thus can be used as an alternative; or patterns with complementary functionalities. • The second group is composed by equivalent patterns in other libraries. We acknowledge other libraries with patterns that accomplish similar functions, given that they can provide additional information for the same problem, without the need to repeat the same content. For example, the Mobile Design Pattern Gallery (Neil 2012) contains an extensive list of examples that can be a useful source of inspiration. 81 6 web desIgn PAtterns for mobIle devIces The research described in the previous chapters had as its main purpose the development and writing of design patterns. The above study contributed to the definition of the current state of art of the mobile media, particularly regarding the domain of web design; and provided us with a methodology for the writing of design patterns. Furthermore, to assist us in the writing of patterns, we developed three web design projects — which will be described in the next chapter — that allowed us to experiment with the design of mobile interfaces, as well as to validate the patterns that were being written. This research was later systematize and organized through the means of the patterns that are presented here. In this chapter we describe a set of twenty-one patterns, developed with the objective of helping in the design of websites for mobile devices. The set of patterns proposed intends to be viewed as a work in progress, in the way that these patterns can be further developed, as well as new ones can be suggested. They address the problems of designing interfaces for the current devices and technology, hence they are receptive to improvements as the state of the mobile web progresses. These patterns were created with the purpose to be used as a practical tool, one that could be easily consulted when needed throughout the course of a design project. To facilitate on this task, and so that this work would not become constricted to this dissertation, we published these patterns online,39 with the hope to offer a more accessible medium for consulting them. The idea, and sometimes the name, of the patterns included in this work came from two main sources: 1) other pattern libraries with comparable patterns, 2) from the research on designing websites for mobile; complemented with the work on designing mobile websites. At the beginning of this project, we conducted a comparative analysis between libraries with patterns for interaction design, particularly those that already addressed the design of mobile interfaces. In this analysis we collected patterns that could be adopted and adapted to the design of mobile websites, and rewrote them to respond to the particularities that designing for the web on smaller screens impose. For example, the pattern Vertical list has 39 www.patterns.jribeiro.org 82 Web Design Pattern for Mobile Devices a comparable pattern in almost all libraries that were analyzed. It appears as List Menu in the Mobile Design Pattern Gallery (Neil 2012) or as Vertical List in Designing Mobile Interfaces (Hoober and Berkman 2011). Others came to life from reading and researching on the design of interfaces for mobile devices. For instance, the pattern iceberg tip was inspired on the idea, and name presented in Designing Gestural Interfaces (Saffer 2008). Other patterns, such as tabs and dropdown, which are quite common patterns on the web, were adapted in order to respond to the limitations that these devices require. Web Design Patterns for Mobile Devices 83 6.1 Linearized Layout figure 6.1 linearized layout <patterns.jribeiro.org/patterns/linearized-layout>. Problem On smaller devices with narrow screens, more complex designs with multiple columns do not fit perfectly. In most cases you end up with a scaled-down page that is unreadable. Solution Linearize the content, by stacking all blocks of information on top of each other, spanning the width of the screen. *** Layouts with multiple columns are a common pattern on web design. However, they do not work properly on devices with narrow viewports. When this type of websites is accessed on these devices, browsers will zoom out the page until it fits on the width of the screen; or they will add horizontal scrolling. Both alternatives are far from satisfying. Column layouts should be optimized for mobile viewing. Therefore, you should design your mobile site by assembling the page vertically and by stacking each page section on top of each other, which is already the default behavior of a page when no style is defined. Because we cannot foresee the size and resolution of the devices that will access our website, blocks with fixed widths are not a good practice. The linearized layout should have a fluid layout that adapts to the width of the browser whatever is its effective size. This pattern is also a requirement for many of the other patterns proposed, particularly the Vertical list, i.e., if you want to use it you will invariably need to linearize the content. An alternative approach the organization of content on a page is the grid layout pattern. 84 Web Design Pattern for Mobile Devices *** figure 6.2 United Pixel Workers <www.unitedpixelworkers.com>, April 2012. figure 6.3 Colly <www.colly.com>, April 2012. Related Patterns • grid layout • Vertical list • Vertical Stack in Designing Interfaces (Tidwell 2011) Web Design Patterns for Mobile Devices 85 6.2 Grid Layout figure 6.4 grid layout <patterns.jribeiro.org/patterns/grid-layout>. Problem Although a linearized layout works in most cases, sometimes you have content that does not need to, or should not, fill the entire width of screen. Solution Arrange elements in a matrix of one or more rows. *** While not as recurrent as the linearized layout, a grid layout can be quite effective with some types of content. It is typically used with image content such as photos, illustrations or icons. The most common case is to present a gallery of images, but you can still use it with text, as long you keep it to a few words. Long paragraphs of text can become almost unreadable even if your grid only has two columns. A grid layout can have as many divisions as needed; however, if the grid blocks work as buttons they should be large enough and adequately spaced so they are easily triggered — use a touch friendly target or an iceberg tip on those cases. Although in most examples blocks have the same height and width, they can still assume irregular forms. That is, blocks can span multiple columns or rows (Figure 6.5). 86 Web Design Pattern for Mobile Devices figure 6.5 Hillsong website <www.hillsong.co.uk>. Because with this pattern you are displaying multiple items side by side, in some cases it can be a more efficient use of the vertical space than a linearized layout. For example, if you have a Vertical list where each item is composed by only one word, you can save space by displaying several items on the same line (Figure 6.6). figure 6.6 The toggle menu on Etsy website <www.etsy.com> reveals a menu that presents items on a grid. figure 6.7 The Etsy website <www.etsy.com> uses a slideshow that presents on the same slide multiple images on grid, each one working as a link. Web Design Patterns for Mobile Devices 87 The grid layout can be used as a more structural pattern, or combined with other patterns to extend their capabilities. For example it can be used with a toggle menu to increase the number of items visible on the screen (Figure 6.6); or with a slideshow to increase the number of items by slide (Figure 6.7). *** figure 6.8 dConstruct <www.2012.dconstruct.org>, April 2012 figure 6.9 Jessica Hische <www.jessicahische.is>, April 2012 Related Patterns • linearized layout • toggle menu • slideshow • Grid in Designing Mobile Interfaces (Hoober and Berkman 2011) 88 Web Design Pattern for Mobile Devices 6.3 Linearized Menu figure 6.10 linearized menu <patterns.jribeiro.org/linearized-layout>. Problem Although inline menus are quite common on desktop websites, they are difficult to achieve on mobile. If your menu has several items, it will not fit properly on the mobile version of the website. Solution List all menu items vertically spanning the width of the device. *** Because of the narrow width of mobile devices, in most cases you do not have enough space to display items inline. The solution involves disposing list items vertically covering all the width of the screen. This type of menu is quite easy to implement because it is the default behavior of a list when not styled. Be aware that if the menu is extensive and is positioned on top of the page it will probably fill most of the page. You can easily cope with this problem with a Jump menu. You should optimize list items for touch by making the list span across the width of the screen, and tall enough so they are easily triggered and nicely spaced so the wrong target is not tapped by mistake — touch friendly target or iceberg tip. An alternative approach the organization of content on a page is the grid layout pattern. Web Design Patterns for Mobile Devices 89 *** figure 6.11 New Adventures <www.2012.newadventuresconf.com>, April 2012. figure 6.12 Clean Air Works <www.clearairchallenge.com>, April 2012. Related Patterns • Vertical list • Jump menu • toggle menu • side menu 96 Web Design Pattern for Mobile Devices give some affordance of how the menu works. Additionally, you can display an animation of the menu moving to show users what is happening. Like in the Jump menu, an abrupt change of the context can disorient the user. *** figure 6.22 Barack Obama <www.barackobama.com>, April 2012. figure 6.23 Kettle <www.kettlenyc.com>, April 2012. Related Patterns • toggle menu Web Design Patterns for Mobile Devices 97 6.7 Select Menu figure 6.24 select menu <patterns.jribeiro.org/patterns/select-menu>. Problem On small screens, an extensive menu can fill the entire page. However, if you have a menu that has to work simultaneously on wide screens and on mobile devices, you want that menu to be as efficient as possible regarding the use of vertical space. Solution Present the navigation on a menu that on narrow screen devices dynamically changes to a native select component. *** This pattern is useful for designing a navigation menu with numerous and lengthy items that needs to work simultaneously on the mobile and desktop version. In the desktop version of the website the menu is presented expanded, on a narrow screen it is converted through JavaScript to the native select component. Thus, this pattern is normally seen in websites that implement a responsive design. This type of menu can be a practical alternative for when vertical space is scarce and you want to display the menu on top of the page. However, it is not the most elegant of the alternatives, because it adds another layer of information with a distinctive interface. A more clean 98 Web Design Pattern for Mobile Devices and elegant approach in terms of visual design can be achieved through the toggle menu pattern, which uses a comparable type of interaction but with a custom interface. This type of menu is easier to recognize as something selectable because it uses the native controls of each device. Likewise, because it uses controls that are optimized for the respective device, you can be confident that it will work and be accessible in most of them. Though, as a downside, because it uses the native browser components, it is very difficult to achieve a consistent look across platforms (Figure 6.25). figure 6.25 Screenshots from the same select menu at Smashing Magazine website <www.smashingmagazine.com> on different platforms; ios on the left, Android on the right. You can also work with subitems, though that can be even more confusing. In Figure 6.25 subitems are denoted by an indent, but dashes are also a common alternative. Web Design Patterns for Mobile Devices 99 *** figure 6.26 WorldSkills London 2011 <www.worldskillslondon2011.com>, April 2012. figure 6.27 Lancaster University <www.lancs.ac.uk>, April 2012. Related Patterns • toggle menu 100 Web Design Pattern for Mobile Devices 6.8 Vertical List figure 6.28 Vertical list <patterns.jribeiro.org/patterns/vertical-list>. Problem A linearized layout is a quite common layout that gives much emphasis to the vertical orientation. If you have information that is organized as a list, you need to have a method to efficiently display that content of this type of layout. Solution Display these chunks of information stacked vertically, spanning all the width of the screen and graphically dividing each item. *** Along with the linearized layout this is perhaps the most common pattern that you will encounter when designing for mobile. Given that the width of the devices is not generous, you will invariably need to rely on the vertical space to accommodate most of the content. For most of these situations, this pattern or one of its variations will be used, such as: infinite list, thumbnail list or expanding list. Therefore, most of the recommendations given for this pattern also apply to the related patterns. Generally, there are two different alternatives to the implementation of this pattern: one that only displays information; another where each list item works as a link — which sometimes can be a linearized menu. Web Design Patterns for Mobile Devices 101 When the list items work as links you should optimize them for touch — you can use a touch friendly target for this. Each item ideally should only contain a link. Even if the item contains text with different hierarchies (Figure 6.29), you can wrap all those elements on an anchor tag rather than using only the title as a link. The result is similar to what can be attained with an iceberg tip. figure 6.29 On the Authentic Jobs website <www.authenticjobs.com>, while each list item contains a diverse range of information with different hierarchies, the entire rectangle works as a link. For this pattern to work effectively, each item should be clearly separated. You can use any design that visibly distinguishes items, such as: a horizontal line spanning the width of the screen; alternative color rows; typographic hierarchy; or just white space. *** figure 6.30 Readability <www.readability.com/mobile>, April 2012. figure 6.31 Boston Globe <www.bostonglobe.com>, April 2012. 102 Web Design Pattern for Mobile Devices Related Patterns • infinite list • thumbnail list • expanding list • linearized menu • Vertical List in Designing Mobile Interfaces (Hoober and Berkman 2011) • List Menu in Mobile Design Pattern Gallery (Neil 2012) Web Design Patterns for Mobile Devices 103 6.9 Infinite List figure 6.32 infinite list <patterns.jribeiro.org/patterns/infinite-list>. Problem A very extensive Vertical list can become quite heavy on mobile devices. It would not be advisable to load and display all information in the list at once. Solution Design a normal Vertical list or any of its variations but only fetch the beginning of the list, loading the rest as the user scrolls through the page. *** This pattern is based on a homonym pattern from Designing Mobile interfaces (Hoober and Berkman 2011). It is very similar to the Vertical list with the main difference that only a portion of the list is initially loaded. It is most adapted for displaying a list of data with an uncountable number of items. For example, when loading all the news of a site in the same page we can be dealing with hundreds of items. It would not be a good idea to load all that information at once. That would be extremely heavy in terms of download and load time; it would add an unnecessary burden in terms of browser memory and rendering time; and probably, users would not need all that information from the beginning. Thus, we can start by loading only a few items, and only load subsequent items when the user provides some signal that he wants 104 Web Design Pattern for Mobile Devices to keep browsing through the page. The number of items to load on each action varies, but it will depend on the length and download size of the content. This pattern takes advantage of methods for asynchronously loading additional content without the need to refresh the page: new items are just appended to the interface following the previous ones. Because the browser does not need to reload the page, we can get a perceivably faster response. It can be used as an alternative to a common pagination, which normally implies more touches and a refresh on each load. Since there is not any refresh, users never lose the context of where they are at the list. There are two main alternatives that can be used for its implementation: explicit and implicit loading. On the first, the content is loaded with a direct action of the user; on the second, the list is loaded automatically as the user reaches its end. When designing a list in which the user has to explicitly load new content, place at the bottom of the list a button that indicates that more data will be loaded on the same page. You can use a label with “more”, “load more”, or another appropriate variation. You can also use that button to indicate how many more items will be loaded. While the browser is loading the next chunk of the list, provide some feedback of the action that is occurring. In Figure 6.33, the page displays a ‘More’ button that when pressed changes to a loading animation. figure 6.33 Loading animation at The Verge <www.mobile.theverge.com>. In the implicit loading mode there is not any direct action of the user to load additional content. Instead, the browser detects when a user reaches the end of the page and automatically loads another portion of the list. This is a type of implementation that is normally called lazy loading. To give the impression that the list is really bottomless, you can start preloading the adjacent content before the user gets to end of the list. Although this pattern is normally used with content that is virtually endless, it is still possible for users to reach its end. Therefore, provide some indication when there are no more items to fetch. Web Design Patterns for Mobile Devices 105 Because this pattern is a variation of the Vertical list, it can be combined with any of its other variants, such as: thumbnail list, expanding list. *** figure 6.34 Authentic Jobs <www.authenticjobs.com>, April 2012. figure 6.35 Facebook <www.facebook.com>, April 2012. Related Patterns • Vertical list • thumbnail list • expanding list • Infinite List in Designing Interfaces (Tidwell 2011) • Infinite List in Designing Mobile Interfaces (Hoober and Berkman 2011) 112 Web Design Pattern for Mobile Devices 6.12 Fixed Content figure 6.43 fixed content <patterns.jribeiro.org/patterns/fixed-content>. Problem The normal behavior of content on a page is to go off the viewport as the user scrolls through. However, you may need to provide quick access to functions or information persistently through the entire page. Solution Present the content positioned fixed to the edges of the browser window, over the page, and assuring that it is visible through the entire page. *** fixed content allows us to provide quick access to functions that need to be present through the entire page, or alert the user of some important information. Given that, it is commonly used for designing web applications or to give a more native look to the interface. A major drawback40 with this pattern is that it takes a considerable amount of space, which is already a limited asset on these devices. Besides of the already small height of the device, 40 Another downside is caused by a somehow buggy implementation of the position fixed on current mobile browsers. In some older browsers it simply just does not work, but it is especially problematic on the browsers that implement it poorly rather than those where it is just ignored. Thus, do not assume that your design will work, without carefully testing it. You can Web Design Patterns for Mobile Devices 113 we have to account for the os toolbar, the browser chrome, and a potential keyboard, all those contributing for reducing the effective real estate of the page. This problem is even more prevalent when the device is oriented in landscape. Therefore, make sure that any fixed content is absolutely essential in your website. *** figure 6.44 dConstruct 2011 <www.2011.dconstruct.com>, April 2012. Related Patterns • Bottom Navigation in Designing Interfaces (Tidwell 2011) • Fixed Menu in Designing Mobile Interfaces (Hoober and Berkman 2011) solve some of these problems through JavaScript, though, by doing that you are adding complexity and it will probably still not work with some older browsers. figure 6.45Twitter <www.mobile.twitter.com>, April 2012. 114 Web Design Pattern for Mobile Devices 6.13 Slideshow figure 6.46 slideshow <patterns.jribeiro.org/patterns/slideshow>. Problem You need to display a series of related information, with comparable content in terms of length, without consuming a considerable amount of vertical space. Solution Reveal items one at a time, by changing the visible item automatically in a specific time interval or by providing a method for browsing through the entire content. *** When you have a series of related content that is extensive but not considerably important, you can save vertical space by having all pieces of that content arranged horizontally, placed virtually beyond the width of the device, while keeping a window — generally with the same width of the device — that works as a viewfinder for the list. Users can only see one item of the list at each time but have some method for traversing through the list. The slideshow is a common pattern on the web, and was previously formulated as a pattern for mobile in Designing Mobile Interfaces (Hoober and Berkman 2011). It is commonly used with images, although it can be successfully implemented with text, or image and text. Each slide can be simply used to display information but can also work as a link. Web Design Patterns for Mobile Devices 115 However, do not use this pattern for presenting critical information. Since only one item will be visible at any time and users may not understand that they can scroll through the list, hidden content can easily go unnoticed. The slideshow is most suitable for presenting more casual information like a gallery of images. Although you can use slides with different content in terms of length, it is a good idea to keep the slide height constant across slides to prevent the layout from moving up and down between slides. Interaction Details Signalize that additional content is hidden, moreover, use that sign as a hint of how to reveal it. An arrow or an index of the list (Figure 6.47) are commonly used to solve this problem. Alternatively, you can display a portion of the previous and following images to alert users that more content is available — closer to the behavior of what is usually described as a carousel. For scrolling through the content you can use one of these approaches or a combination of them: • Slides change automatically without any control of the user. • A tap on the slide to make it move to the next one; if this is the only method for navigating the slideshow, it has the inconvenient that if you have a long list and want to go back one slide, you need to scroll through the entire list. • You can use a “next” and “previous” buttons for scrolling through the slideshow; arrows or textual descriptions are usually used for this. • Use a swipe gesture, which is probably the most elegant and a natural of the alternatives because you are directly manipulating the content; however, because of its relative novelty it is harder to be discovered and more difficult to implement.Whenever possible try to take advantage of the swipe gesture to traverse trough the gallery, but it is a good practice to provide a fallback — a button — for devices that may not support gestures; and for users who may not understand it or are not used to this kind of interaction. Nevertheless, implement an animation between each slide to help users grasp what is happening. A crossfade is common with this type of pattern, but an animation of the section sliding in and out can provide a better affordance, particularly if a swipe is used to move between slides. figure 6.47 slideshow index. 116 Web Design Pattern for Mobile Devices Provide some feedback of the user’s position within the list. It can be done by using an index of the list (Figure 6.47), and if it is important to identify each slide, you can number them. Markers can also work as buttons that link to the corresponding slide, although they need to be large enough to work efficiently. Thus, you should always provide an alternative method for scrolling through the list. figure 6.48 Screenshots from Airbnb’s product page <www.m.airbnb.com>. The Airbnb website has two slideshow galleries in the same page, and each one implements a different method for browsing the gallery: one only works with a swipe (Figure 6.48, left image) and one only works with buttons (Figure 6.48, right image). Although they are used for different purposes and are visually distinct, it can still confuse users and it would be expectable that at least the interaction worked identically. *** figure 6.49 The Verge <www.mobile.theverge.com>, April 2012. figure 6.50 Boston Globe <www.bostonglobe.com>, April 2012. Web Design Patterns for Mobile Devices 117 figure 6.51 Zappos <www.m.zappos.com>, April 2012. Related Patterns • Slideshow in Designing Mobile Interfaces (Hoober and Berkman 2011) 118 Web Design Pattern for Mobile Devices 6.14 Tabs figure 6.52 tabs <patterns.jribeiro.org/patterns/tabs>. Problem You have a series of related information with a clearly defined hierarchy, and comparable length that needs to be presented at a similar level without wasting too much vertical space. Solution Arrange horizontally the headings of all items of those elements, but display only the content of one. The visibility of each one can be toggled by users. *** tabs are widely used in web design and are therefore recognizable by users. They use a metaphor of the labels on folder archives which make them easy to understand. tabs should be used to alternate between views within the same context (Nielsen 2007) rather than between pages. That is, they do not take the user to another page, only the visibility of the content changes. You should clearly identify which is the active tab. The tab heading should be visually connected to the content for better making this distinction. You should take special attention when there are only two tabs, because the inactive state can be more easily mistaken as being active. tabs work better when you only have a few tab modules that fit on the width of the page, and there is only one row of tabs. Two rows or more of tabs are a quite confusing and not very elegant. If you have a list of tabs headings that do not fit the width of the device it is better to Web Design Patterns for Mobile Devices 119 truncate part of the list and to provide a method for scrolling through the tabs headings — a behavior similar to a slideshow. Nonetheless, it may be a better idea to revise your design and think of an alternative approach. A Vertical list or a slideshow can sometimes be an option. *** figure 6.53 bbc <www.m.bbc.co.uk/news>, July 2012. figure 6.54 Airbnb <www.m.airbnb.com>, April 2012. Related Patterns • slideshow • Tabs in Designing Mobile Interfaces (Hoober and Berkman 2011) • Tab Menu in Mobile Design Pattern Gallery (Neil 2012) 120 Web Design Pattern for Mobile Devices 6.15 Dropdown figure 6.55 dropdown <patterns.jribeiro.org/patterns/dropdown>. Problem Sometimes you may have information that is not frequently needed. To simplify the interface it would be convenient to remove it; however, it is still important to provide access to that content. Solution Design an element on the page that toggles the visibility of additional content. Keep the content hidden until the users express a direct intention to access it, then, make the content appear over the page. *** You should try to not overload the page and the user with information that is not frequently needed. A dropdown allows you to keep the layout simpler and cleaner by concealing nonessential information until there is a direct action of the user. You can use it to present small pieces of information that do not exceed the height of the screen. That is, you should not add additional complexity to this interface component by having the user scroll the page or the dropdown to see truncated content. In a dropdown you have a button or any other element on the page that once tapped reveals the hidden content hovering on top of the page. Users should be able to withdraw it by tapping the same button again or any part of the page that is not the dropdown. Web Design Patterns for Mobile Devices 121 *** figure 6.56 Authentic Jobs <www.authenticjobs.com>, April 2012. figure 6.57 Pinterest <www.m.pinterest.com>, April 2012. Related Patterns • expanding list 128 Web Design Pattern for Mobile Devices 6.19 Clear entry figure 6.65 clear entry <patterns.jribeiro.org/patterns/clear-entry>. Problem Although typing on a virtual keyboard is a difficult task, resetting an input form to the default state may be no less easy. Deleting a long string of text letter by letter can be a very tedious error prone task. Solution Provide a button that resets the input form with one tap. *** You should always strive to minimize users’ need to input text on mobile. Like text entry, deleting long strings of text can be a very tedious task and propitious to mistakes. While, generally, operating systems have some sort of method to facilitate the clearing of input fields, such as, faster deleting on long presses, you may still provide a better and faster method for this task. Therefore, provide a button on all free-text input fields that allows users to quickly remove previous composed text. Place that button inside the input field aligned to the right and farther enough from other targets so it is not tapped by mistake. If it is needed you can use an iceberg tip to improve the efficacy of that button. A button with an “x” is succinct, unambiguous and almost a standard so it is usually favored, but if you have the space you can use a label like “Clear” or “Reset”. Web Design Patterns for Mobile Devices 129 This pattern is based on the patterns Text Clear Button (Tidwell 2011) and Clear Entry (Hoober and Berkman 2011), so you can find additional information there. *** figure 6.66 Google <www.google.com>, April 2012. figure 6.67 Bing <www.bing.com>, April 2012. Related Patterns • touch friendly target • Clear Entry in Designing Mobile Interfaces (Hoober and Berkman 2011) • Text Clear Button in Designing Interfaces (Tidwell 2011) 130 Web Design Pattern for Mobile Devices 6.20 Touch Friendly Target figure 6.68 touch friendly target <patterns.jribeiro.org/patterns/touch-friendly-target>. Problem Because of the small screen, the nonexistence of tactile feedback, and the lack of precision of our fat fingers,41 hitting a target on a mobile device can be a challenging task. You need to design an interface that must be effortlessly used by touch. Solution Design all touchable elements large enough and generously spaced so they can be easily triggered. *** With a mouse we can easily trigger very small targets, on mobile devices, because we are using our fingers as an input device that can be a more challenging task. Our fingers are much more imprecise than a mouse, as such, you should design touchable elements large enough so users can easily interact with them. It is frustrating when we press a button and nothing happens. Currently devices provide no haptic feedback, so users cannot know for sure if they just missed the target or there is a prob- 41 The ‘fat finger syndrome’ is a colloquial term used to describe the trigger of accidental actions caused by the fact that users’ fingers are larger than the intended target. Web Design Patterns for Mobile Devices 131 lem with the website. You can reduce the problem of the lack of feedback by providing some visual response to the fact that a target was tapped; for example, changing the background color of the target. In addition to larger targets, you need to account for the space between targets. You should have generous space between elements to minimize errors. If the implementation of this pattern leads to enormous targets, you can use an iceberg tip instead. Optimal Size The recommended minimum size for a target differs depending on which user interface guideline we may be following. However, the optimal size should be approximately that of an adult finger, which largely have a diameter of 16mm to 20mm (Saffer 2008), but the size in pixels varies depending on pixel density: • The iPhone Human Interface Guidelines (Apple Inc 2012), recommends a minimum of 44 x 44 pixels for targets. Since the release of devices with higher dpi, Apple updated that value to an abstract measure of 44 x 44 points. • User Experience Design Guidelines for Windows Phone (Microsoft Corporation 2012) recommends a 9mm target as the ideal size for all devices across Microsoft platforms, and 7mm as the minimum for the height when the width of the target is larger. It also recommends 4.2mm as the minimum visual size for a touchable item; and 2mm for the space between targets. • Nokia Developer’s (Nokia Corporation 2012) resources recommends that touchable elements should be no smaller than 10 x 10mm. And the minimum size for target should be: 7 x 7mm with 1mm gaps for index finger usage; 8 x 8mm with 2mm gaps for thumb usage; and lists should have a minimum of 5 mm of line spacing. 132 Web Design Pattern for Mobile Devices *** figure 6.69 Etsy <www.etsy.com>, July 2012. figure 6.70 Microsoft <www.m.microsoft.com>, July 2012. Related Patterns • iceberg tip • Generous Borders in Designing Interfaces (Tidwell 2011) Web Design Patterns for Mobile Devices 133 6.21 Iceberg Tip figure 7.71 iceberg tip <patterns.jribeiro.org/patterns/iceberg-tip>. Problem Sometimes you need to design a touch friendly target, but you do not want to have enormous and inelegant buttons to clutter the interface. Solution Design the visible part of your object with whatever size you planned, but make the real target invisible and large enough so it can be easily touched. *** This pattern is inspired on the idea described by Dan Saffer in Designing Gestural Interfaces (2008), which, like the name suggests, uses the metaphor of an iceberg for describing a target that is larger than the visible area. When designing touch friendly interfaces, touchable elements must be large enough so users can easily interact with them. However, it is not always practical, or visually pleasing to design big buttons throughout the entire interface, in fact, touch friendly buttons may sometimes look clumsy. This pattern is valuable for when we have any element, either text or image, that by itself is not large enough to be triggered without effort; or when designing big buttons may go against what was envisioned for the visible design of the interface. 134 Web Design Pattern for Mobile Devices The solution involves having the visible part of the element surrounded by an invisible padding area that also works as a target, i.e., only a portion of the target is visible, the rest is hidden. One limitation of this pattern is that it cannot be used when we have several touchable elements side by side, without creating additional white space between them. We should always try to provide the correct affordances for the interface, but because of the small scale that the visible component can reach, the simpler design, or just because users were not expecting that elements that small would work as buttons, it may happen that these elements are not be perceived as touchable. Microsoft (2012) recognizes this downside and recommends that the graphic component should be at least 4.2mm. figure 6.72 iceberg tip on Starbucks <www.starbucks.com>, the color overlay represents the real target. Starbucks (Figure 6.72) uses small circles with a diameter of 16 pixels as buttons for navigating through a slideshow. Those buttons do not look large enough for being easily touched; however, the real target is a 36 pixels square, which improves considerably its efficacy, though, it is still below what is usually recommended by touch friendly target. figure 6.73 Comparison of targets on Starbucks <www.starbucks.com> (left) and bbc <www.m.bbc.co.uk/news>(right). On the Figure 6.73, on the left image, we have a menu with links that could be improved by using this pattern. The text is too small, which by itself is not necessarily a problem, but the target occupies the same space as the text, in this case, as low as 8 pixels height; and there is not adequate space between links, which makes it almost impossible to hit the intended target on the first try. On the contrary, on the right image, we have a comparable menu, but here, while the visible part is still small, links have plenty of space between them and the real target occupies the maximum space possible. Web Design Patterns for Mobile Devices 135 *** figure 6.74 bbc <www.m.bbc.co.uk/news>, April 2012. figure 6.75 Earth Hour <www.earthhour.fr>, July 2012. Related Patterns • touch friendly target 136 Web Design Pattern for Mobile Devices 137 7 cAse studIes The idea of using real projects as part of the process of writing patterns was explored by some of the authors cited in this dissertation. A Pattern Language (Alexander 1977) is the result of the experience of working on the planning and building of the University of Oregon campus by Alexander and his team as it is documented on The Oregon Experiment (1975). The Gang of Four (1995) presents a case study of the design of a wysiwyg editor that demonstrates how design patterns can be applied in practice. The patterns presented in A Pattern Approach to Interaction Design (Borchers 2001) result from the experience gained by the author during the design of user interfaces for four different projects. In this chapter we present three case studies, where we describe the results of the experience and know-how obtained from designing websites for mobile devices. With these projects we expect to ascertain how the patterns that were previously proposed perform on realworld contexts. The projects presented in these case studies were developed in parallel with the writing of the patterns. Neither came first than the other. The writing and design were part of an iterative process that shared information between both tasks, which was part of the whole process of capturing patterns. The design and implementation of these websites allowed us to discover new patterns, and to explore and validate the patterns that were being written, while the writing of the patterns enabled us to systematize the insights gathered throughout the design part. We present three different projects and for each one we describe a unique pattern language obtained with the patterns in this work. 7.1 e-Learning Café For the e-Learning Café project we had to design a website for the purpose of presenting the e-learning café spaces — leisure and study spaces open to the academic community that combines social, entertaining, study and work contexts — to the University of Porto community. 144 Web Design Pattern for Mobile Devices figure 7.8. expanding list, mobile on the left, dektop on the right. figure 7.9. iceberg tip for closing a dropdown. We used an iceberg tip to improve the efficacy of tappable links on different design elements. For example, on Figure 7.9 the visible target for closing a dropdown is 10 pixels square while the real target is a 50 pixels square, as can be seen with the color overlay. Case Studies 145 figure 7.10 dropdown. The dropdown was useful to provide access to additional information without to clutter the interface with additional content. For example, on Figure 7.9 a dropdown was used to display contextual help; on Figure 7.10 it was used to provide access to additional functionalities. figure 7.11 abridged table. Moodle recurs occasionally to tables for presenting information, but most of those tables are very extensive so do not work properly on smaller screens. To overcome this problem we had to simplify them, which in practice meant to remove columns that we considered less important. This was the elemental idea for what later became the abridged table. For example, on Figure 7.11 we have a table with two columns that lists forum posts. The original table was 146 Web Design Pattern for Mobile Devices longer but was simplified by omitting two additional columns, so it fitted comfortably on the mobile view. Although the abridged table recommends the use of a button to toggle the visibility of the hidden columns, we opted to not provide it, because the information contained in those columns was not essential to the comprehension and use of the table. 7.3 University of Porto figure 7.12 Desktop versus mobile version. The last project focused on the design of the mobile layout to the new website of the University of Porto (up). For this project the idd team worked in collaboration with elements from up that were responsible by the technical implementation of the website, as well as content producers. Our team was responsible by initial research, focused on a user-centered design, in which we developed a content analysis of the previous website, interviews with project stakeholders, Case Studies 147 an inquiry to the up community about the old site, development of usability, accessibility and mobile guidelines, creation of personas, and the proposal of a new information architecture. The second stage consisted on the development of wireframes, visual designs with different levels of fidelity, and the development of a functional prototype; all this work was assisted by usability testing. At the time of the writing project is still ongoing, so the screenshots and patterns presented here may not be part of the final version. The project was focused on the design of the desktop layout, but from the beginning all the design decisions took into consideration the mobile version. For this project, because the content of the mobile version would not differ drastically from the desktop version we opted to design the mobile view with a responsive design approach. Unlike, for example, the e-Learning Café project, this website had a quite complex information architecture, with a navigation that had three hierarchic levels. The navigation was indeed the most difficult and changeling part to adapt successfully to the small screen, since the rest of the layout was implemented straightforwardly with a linearized layout (Figure 7.12). The mobile layout was simplified through the removal of complementary information such as the sidebar dedicated to the news. The website header was also simplified on the mobile version: only three items, which were designed as a touch friendly target, were kept. The branding image was changed to simpler and smaller version; the menu was removed from the top of the page; and the search form was changed. Similar solution to that already used on the e-Learning Café project. figure 7.13 Desktop versus mobile navigation. 148 Web Design Pattern for Mobile Devices On the desktop version we had a large footer that was used to present a site-wide navigation of the top two levels; and to present additional links to important sections of the site. This complex footer became particularly useful for the implementation of the navigation on mobile. Since we already had the entire navigation replicated at the bottom of the page, and because the menu was quite extensive, we decided to use a Jump menu (Figure 7.13). The implementation was fairly simple: we only had to hide the menus on the top of the page and to provide a link to the bottom (Figure 7.15). figure 7.14 Second-level menu expanded on the left, and third-level menu expanded on the right. Although already complex on a wide screen, efficiently present a three-level navigation on a small screen is even more difficult. To achieve that task we extended the Jump memu with an expanding list (Figure 7.14). When the page loads only the first level is visible, so that the page does not extends excessively. However, users can expand the menu by tapping the downward arrow — which changes to an upward arrow when the item is expanded — at the right of the list item (Figure 7.14), and thus access the additional navigation levels. Ideally, the entire row would work as a toggle for the expanding list, however, those headings were also links, so we had to have in the same row a link and a toggle button. Because the list item text and toggle icon were both too small, we used an iceberg tip to improve the efficacy of their tappable areas; the real target can be seen on Figure 7.14 through the color overlay. Case Studies 149 figure 7.15 dropdown used to present the search input, closed on the left, opened on the right. To provide easy access to the website search, we decided to display the search form on top of the page, but because we did not wanted to highlight it too much, we used a dropdown (Figure 7.15) that was only unveiled when the search icon was tapped. To facilitate the removal of text entries, the search input also had a clear entry button (Figure 7.15), which was also improved by the use of an iceberg tip (Figure 7.15, right image). 150 Web Design Pattern for Mobile Devices 151 8 conclusIons The purpose of this work was to research on the design of mobile websites in order to propose new tools to help designers, as well as non-designers developing for mobile devices. We approached this problem through a pattern-based methodology, which resulted on the design patterns that were here presented. We research on the current state of mobile devices regarding the domain of the web, in which we explored the limitations and possibilities that these devices impose to the design of sites. We consider to had provided a comprehensive overview of the current state of the mobile web, however, the topics addressed in this research regard subjects in a field that has been evolving at a fast pace in the last few years, hence these information needs to be revised once new devices and technologies emerge. Nevertheless, we believe that some of the points made will not change significantly, for instance: limitations concerning the smaller size of the screen are inherently part of the characteristics that define a mobile device; as well as those related to human factors, such as target sizes. We conducted an extensive comparative analysis of different patterns libraries, from where we can apprehend how different authors have been approaching the same problem; from analysis also we can also extract a historical overview of how patterns, and pattern libraries evolved over the years. Based on the initial research, we proposed a new template for the organization of patterns, which was then used to format the patterns of this work. Although the template does not differ substantially from the ones used by other authors, there are some differences that we consider that contribute to a more clear and precise understanding of interaction design patterns, namely, the illustration that complements each pattern. We developed, in a systematic manner, a series of interactive illustrations that we regard as important elements to a successful representation of patterns, which can be useful, as well, to other interaction design pattern libraries. With the purpose of offering a more accessible means for viewing the patterns, but mostly with the necessity of presenting the interactive illustrations, we developed a website from where patterns can be consulted — www.patterns.jribeiro.org. Currently the website is, above all, a practical tool for presenting the interactive illustrations; however it might be worthwhile 152 Web Design Pattern for Mobile Devices to continue its development by providing additional context about this work, and by centering the improvement and expansion of the pattern library around it. The website can become a more valuable tool as it reaches a broader audience. The research presented in this work culminated on the twenty-one design patterns that were here proposed. We expect to have been able to capture a comprehensive sample of patterns, large enough to help one get through an entire design project. However, this work is far from finished, these patterns need to be viewed as a work in progress, in a way that the current ones can be expanded and new ones can be added. Through the course of this project, we were developing, simultaneously, three different projects that allowed us to consolidate and validate the development of patterns. These works also offered us some insights for new patterns that may be recorded on future work. For example, as it was previously described, in a few occasions we solved the problem of limited space by changing elements (or removing part of it) with ones that were more space efficient, while retaining the original meaning of that element. Although it did not have the time to make to the final list of patterns, this idea was documented for future work. Working with these patterns in real design projects allowed us to realize that some patterns were more recurrent than others, for which we consider to have found a respectable level of invariance. For instance, it is almost guaranteed that every design will have a Vertical list, or any of its variations. Likewise, the touch friendly target and the iceberg tip, because constrained by human factors will expectably remain relevant to any design. Nonetheless, all patterns that are here presented comprise some level of confidence, in the way that, somehow, we consider that each one, on its own manner, is a possible solution for a concrete design problem. Evidently, we cannot assert the same level of confidence to all of them. Therefore, if the development of the pattern library continues, while not mandatory, it would be important and advisable, to explore the conception of some sort of rating system that could offer a more systematic classification for each pattern. We also would like to mention that the resulting patterns were adapted to a paper format and submitted to plop 43 2012. Our submission was accepted, being now in the shepherding process — a stage in which the paper is reviewed by an experienced pattern author in order to improve the final version. The patterns that were presented already include some of the insights suggested by our shepherdess Dr. Alejandra Garrido. We developed this initial set of pattern with the hope to contribute to the design of better and more satisfying mobile experiences, but by their nature, patterns and pattern languages are unfinished artifacts, hence this work is just the foundation for an iterative, and ongoing process of development of tools that are aware of how the web evolves. 43 Pattern Languages of Programs (plop), an annual conference on design patterns. 153