Goto Copenhagen

Goto Copenhagen


bruce lawson

November 20, 2019


  1. 2.
  2. 3.
  3. 4.
  4. 5.
  5. 6.
  6. 7.
  7. 9.
  8. 10.
  9. 11.

    @brucel Treasure! • More performant • More accessible • More

    robust • Less code to write • Less code to test • More time in the pub
  10. 12.
  11. 13.

    @brucel The treasure map: • Use HTML properly • Write

    more HTML • Use CSS properly • Built-in beats Bolt-on. Bigly.
  12. 14.
  13. 15.
  14. 16.
  15. 17.
  16. 19.

    @brucel Weary of jQuery? jQuery, the most popular JavaScript library

    ever created, is used in 85.03% of desktop pages and 83.46% of mobile pages.
  17. 20.

    @brucel Since its first publication in 1970 The Technique of

    Furniture Making has established itself as the bible for all woodworkers.
  18. 21.

    @brucel Introduction Any textbook concerned with the techniques of furniture-

    making must deal primarily with the basic handcrafts for it is upon this groundwork that machine production is built, and in fact all the machine can ever do is to translate the essential hand operations into rotary movements of the cutting tool.
  19. 22.

    @brucel anyone who has only been shown how to force

    a piece of wood against a mechanised saw will have learnt very little, but if he has had to saw that piece of wood by hand he will be more likely to know that much more about it, he will have greater respect for it and will understand in greater depth the problems that will have to be faced in its manipulation.
  20. 23.
  21. 24.
  22. 25.
  23. 26.
  24. 27.

    @brucel 職⼈人気質 The Japanese word shokunin is defined by both

    Japanese and Japanese-English dictionaries as ‘craftsman’ or ‘artisan,’ but such a literal description does not fully express the deeper meaning. Tashio Odate - “Japanese Woodworking Tools: Their Tradition, Spirit and Use”
  25. 28.

    @brucel 職⼈人気質 Shokunin means not only having technical skill, but

    also implies an attitude and social consciousness... a social obligation to work his best for the general welfare of the people, [an] obligation both material and spiritual. Tashio Odate - “Japanese Woodworking Tools: Their Tradition, Spirit and Use”
  26. 30.
  27. 32.
  28. 33.

    @brucel We broke it • fixed width • bad contrast,

    fonts, colours • pixel-perfect layout • lack of captions for videos • lack of keyboard accessibility • removing focus indicator
  29. 34.
  30. 37.
  31. 38.

    @brucel Top four 1. Have a fundamental understanding of JavaScript

    “Of course you can’t do full-stack JavaScript development (or full-stack any web development for that matter), without learning JavaScript itself.” 2. Front-End framework 3. Bootstrap 4 4. HTML/CSS
  32. 39.

    @brucel As for HTML, there’s not much to learn right

    away and you can kind of learn as you go, but before making your first templates, know the difference between in-line elements like <span> and how they differ from block ones like <div>. This will save you a huge amount of headache when fiddling with your CSS code.
  33. 40.
  34. 43.

    @brucel so is backwards compatible <video src=“video.mp4”> <p>Can’t play it.

    <a href=“video.mp4”>Download it</a>.</p> </video>
  35. 45.
  36. 48.

    @brucel JavaScript is NOT declarative Imperative programming focuses on describing

    how a program operates. The term is often used in contrast to declarative programming, which focuses on what the program should accomplish without specifying how the program should achieve the result.
  37. 49.

    @brucel Principle of Least Power The choice of language is

    a common design choice. The low power end of the scale is typically simpler to design, implement and use, but the high power end of the scale has all the attraction of being an open-ended hook into which anything can be placed: a door to uses bounded only by the imagination of the programmer. Sir Uncle Timbo “
  38. 50.
  39. 51.
  40. 52.
  41. 54.
  42. 58.

    @brucel <button> <div class=“Btn”>Click me (if you can!)</div> • Remember

    to set ARIA role (in HTML or JS) • Remember to manage focusability • Remember to listen for the correct keypresses
  43. 59.

    @brucel “Perhaps we could research why we need 92 variants

    of button related elements that aren't a native button, for example, and try to fill the native gap.”
  44. 60.
  45. 61.

    @brucel div “The div element has no special meaning at

    all. Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors.”
  46. 62.
  47. 65.

    @brucel 11 tags are used on > 90% of pages

    <html> <head> <body> <title> <meta> <a> <div> <link> <script> <img> <span> •
  48. 66.

    @brucel 15 other elements occur on > 50% of pages:

    <ul> <li> <p> <style> <input> <br> <form> <h2> <h1> <iframe> <h3> <button> <footer> <header> <nav>
  49. 67.

    @brucel “Structured data” When you add markup to your content,

    you help search engines understand the different components of a page. When Google's systems understand your page more clearly, Google Search can surface content through the cool features discussed in this post, which can enhance the user experience and get you more traffic.
  50. 68.

    @brucel ooooh $$$$ • Eventbrite leveraged event structured data and

    saw 100% increase in the typical YOY growth of traffic from search. • Jobrapido integrated with the job experience on Google Search and saw 115% increase in organic traffic, 270% increase of new user registrations from organic traffic, and 15% lower bounce rate for Google visitors to job pages. • Rakuten used the recipe search experience and saw a 2.7X increase in traffic from search engines and a 1.5X increase in session duration.
  51. 69.

    @brucel <article itemscope itemtype=""> <header> <h2 itemprop="headline" id="post-11">The HTML Treasure

    Hunt</h2> <time itemprop="dateCreated pubdate datePublished" datetime="2019-05-20">Monday 20 May 2019</time> </header> ... </article>
  52. 70.
  53. 71.
  54. 72.
  55. 73.
  56. 74.

    @brucel Accessibility is part of Usability “high conformance with web

    accessibility guidelines may provide benefits to users without disabilities.”

  57. 75.

    @brucel Schmutz, Sonderegger and Sauer
 • Sixty-one participants without disabilities

    used one of three websites differing in levels of accessibility • A high level of web accessibility led to better performance (i.e., task completion time and task completion rate) than low or very low accessibility. • Likewise, high web accessibility improved user ratings (i.e., perceived usability, aesthetics, workload and trustworthiness) compared to low or very low web accessibility. Department of Psychology, University of Fribourg, Fribourg, Switzerland
  58. 76.
  59. 78.
  60. 80.

    @brucel Sir Uncle Timbo: The web is for everyone and

    collectively we hold the power to change it. It won’t be easy. But if we dream a little and work a lot, we can get the web we want.
  61. 81.

    @brucel What can you do? Learn the semantics of HTML.

    There are 120(ish) elements, that’s all!
  62. 83.
  63. 84.
  64. 85.

    @brucel What can you do? • Learn the semantics of

    HTML. There are 120(ish) elements, that’s all! • Run automated tests and go for low-hanging fruit, e.g. colour contrast
  65. 88.

    @brucel What can you do? • Learn the semantics of

    HTML. There are 120(ish) elements, that’s all! • Run automated tests and go for low-hanging fruit, e.g. colour contrast • Use HTML (and CSS) wherever possible. • Make sites that work without JavaScript, then enhance with JS. • Choose your libraries carefully.
  66. 95.
  67. 96.
  68. 97.

    @brucel “The word jaywalk is not historically neutral. It is

    a compound word derived from the word “jay”, an inexperienced person and a curse word that originated in the early 1900s, and “walk” Jaywalking
  69. 99.
  70. 100.

    @brucel “Developer Experience” Bait-and-Switch We cannot continue to use as

    much JavaScript as is now “normal” and expect the web to flourish. To get this fixed, we need to confront the “developer experience” bait-and-switch. Tools that cost the poorest users to pay wealthy developers are bunk. Alex Russell “
  71. 102.

    @brucel How To Make Internet Affordable Even with more phones

    than ever before, the cost of Internet is a major obstacle. In Nigeria, the data needed to watch just 2 minutes of online video a day can cost more than sending a child to school for a month. “
  72. 103.

    @brucel The Baseline Costs of JavaScript Frameworks Your React application

    will never load faster than about 1.1 seconds on an average phone in India, no matter how much you optimize it. Your Angular app will always take at least 2.7 seconds to boot up. Ankur Sethi, Nov 2018 “
  73. 104.

    ICT access by population Total 
 global population ~7.4 billion

 internet 1.1 billion Total 
 internet users 3.2 billion Mobile phones 5.2 billion Within mobile coverage 7 billion World Bank: Digital Dividends 2016
  74. 105.
  75. 106.

    Developing countries are home to 94% of the global offline

    population. “ - State of Connectivity 2014,
  76. 109.
  77. 110.
  78. 111.

    If you want to liberate a country, give them the

    internet. “ - Wael Ghonim, Egyptian internet activist
  79. 112.
  80. 113.

    an increase in Internet maturity similar to the one experienced

    in mature countries over the past 5 years creates an increase in real GDP per capita of $500 on average during this period. “ Internet matters - The Net’s sweeping impact on growth, jobs, and prosperity (McKinsey Global Institute)
  81. 114.

    It took the Industrial Revolution of the 19th century 50

    years to produce the same result. “ Internet matters - The Net’s sweeping impact on growth, jobs, and prosperity (McKinsey Global Institute)
  82. 115.
  83. 116.
  84. 117.
  85. 119.
  86. 120.
  87. 121.
  88. 122.
  89. 123.
  90. 124.
  91. 125.

    THANKS ’N’ SNOGS! @brucel * Other Bruce Lawsons are

    available. ** known to cause nausea in some jurisdictions.
  92. 126.