Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <!DOCTYPE html><!-- This is a valid HTML5 document. -->
  2. <!-- Screen readers, SEO, extensions and so on. -->
  3. <html lang="fr">
  4. <!-- Has to be within the first 1024 bytes, hence before the `title` element
  5. See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
  6. <meta charset="utf-8">
  7. <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
  8. <!-- The viewport meta is quite crowded and we are responsible for that.
  9. See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <!-- Required to make a valid HTML5 document. -->
  12. <title>
  13. Perspective
  14. — David Larlet</title>
  15. <meta name="description" content="Let’s call the generally pro-Tailwind group Builders, and let’s call the generally anti-Tailwind group Crafters.">
  16. <!-- That good ol' feed, subscribe :). -->
  17. <link rel="alternate"
  18. type="application/atom+xml"
  19. title="Feed"
  20. href="/david/log/">
  21. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  22. <link rel="apple-touch-icon"
  23. sizes="180x180"
  24. href="/static/david/icons2/apple-touch-icon.png">
  25. <link rel="icon"
  26. type="image/png"
  27. sizes="32x32"
  28. href="/static/david/icons2/favicon-32x32.png">
  29. <link rel="icon"
  30. type="image/png"
  31. sizes="16x16"
  32. href="/static/david/icons2/favicon-16x16.png">
  33. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  34. <link rel="mask-icon"
  35. href="/static/david/icons2/safari-pinned-tab.svg"
  36. color="#07486c">
  37. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  38. <meta name="msapplication-TileColor" content="#f7f7f7">
  39. <meta name="msapplication-config"
  40. content="/static/david/icons2/browserconfig.xml">
  41. <meta name="theme-color"
  42. content="#f7f7f7"
  43. media="(prefers-color-scheme: light)">
  44. <meta name="theme-color"
  45. content="#272727"
  46. media="(prefers-color-scheme: dark)">
  47. <!-- Documented, feel free to shoot an email. -->
  48. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  49. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  50. <link rel="preload"
  51. href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2"
  52. as="font"
  53. type="font/woff2"
  54. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  55. crossorigin>
  56. <link rel="preload"
  57. href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2"
  58. as="font"
  59. type="font/woff2"
  60. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  61. crossorigin>
  62. <link rel="preload"
  63. href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2"
  64. as="font"
  65. type="font/woff2"
  66. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  67. crossorigin>
  68. <link rel="preload"
  69. href="/static/david/css/fonts/triplicate_t3_regular.woff2"
  70. as="font"
  71. type="font/woff2"
  72. media="(prefers-color-scheme: dark)"
  73. crossorigin>
  74. <link rel="preload"
  75. href="/static/david/css/fonts/triplicate_t3_bold.woff2"
  76. as="font"
  77. type="font/woff2"
  78. media="(prefers-color-scheme: dark)"
  79. crossorigin>
  80. <link rel="preload"
  81. href="/static/david/css/fonts/triplicate_t3_italic.woff2"
  82. as="font"
  83. type="font/woff2"
  84. media="(prefers-color-scheme: dark)"
  85. crossorigin>
  86. <script>
  87. function toggleTheme(themeName) {
  88. document.documentElement.classList.toggle(
  89. 'forced-dark',
  90. themeName === 'dark'
  91. )
  92. document.documentElement.classList.toggle(
  93. 'forced-light',
  94. themeName === 'light'
  95. )
  96. }
  97. const selectedTheme = localStorage.getItem('theme')
  98. if (selectedTheme !== 'undefined') {
  99. toggleTheme(selectedTheme)
  100. }
  101. </script>
  102. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick"
  103. data-instant-intensity="viewport-all">
  104. <article>
  105. <header>
  106. <h1>Perspective</h1>
  107. </header>
  108. <nav>
  109. <p class="center">
  110. <a rel="prev"
  111. href="/david/2023/09/23/"
  112. title="Publication précédente : Éco-conception">← Précédent</a> •
  113. <nobr>
  114. <a href="/david/" title="Aller à l’accueil" rel="up">
  115. <svg class="icon icon-home">
  116. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"></use>
  117. </svg>
  118. Accueil</a>
  119. </nobr>
  120. <nobr>
  121. <a href="/david/recherche/"
  122. title="Aller à la page de recherche"
  123. rel="search">
  124. <svg class="icon icon-search">
  125. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-search"></use>
  126. </svg>
  127. Recherche</a>
  128. </nobr>
  129. </p>
  130. </nav>
  131. <hr>
  132. <blockquote lang="en">
  133. <p>Let’s call the generally pro-Tailwind group <em>Builders</em>, and let’s call the generally anti-Tailwind group <em>Crafters</em>.</p>
  134. <p>This isn’t to say that Crafters don’t build things, or that the Builders aren’t skilled craftspeople. But as a quick and messy shorthand, let’s go with it for a moment, because I think it hints at the values of these two&nbsp;groups.</p>
  135. <p>[…]</p>
  136. <p>Builders clearly value getting the work done as quickly and efficiently as possible. They are making something—likely something with parts beyond the frontend—and are eager to see it through to&nbsp;completion.</p>
  137. <p>[…]</p>
  138. <p>On the other side, the Crafters tend to be seasoned CSS specialists, and almost always enjoy the part of the work that Tailwind is supposed to make easier. It’s fair to say they’ve overcome the challenge presented by CSS—or, at least, <mark>that this is where they <em>like</em> to be&nbsp;challenged.</mark></p>
  139. <p>Crafters may be building holistic products and projects, just like Builders. But Crafters generally are less focused on <em>getting through</em> the frontend as a <em>part</em> of that work, and instead see the frontend as <em>the product itself</em>.</p>
  140. <p><cite><em><a href="https://joshcollinsworth.com/blog/tailwind-is-smart-steering">Classic rock, Mario Kart, and why we can’t agree on Tailwind</a></em>&nbsp;(<a href="/david/cache/2023/2074a4d527220f5ddf2dc0b4e678c83a/">cache</a>)</cite></p>
  141. </blockquote>
  142. <p>Un article nuancé qui pose le doigt sur la différence de point de vue dans l’utilisation des outils. Oui, c’est le second article technique d’affilé, après je vais prendre mes&nbsp;gouttes.</p>
  143. <p>Le parallèle est intéressant avec les joueurs et les audiophiles car on est toujours dans la recherche de l’accomplissement au-delà de la performance pure. Une histoire de plaisir à arpenter le chemin et à le rendre accessible au plus grand nombre… tout en ayant conscience d’être un peu élitiste en se permettant cela car la face nord offre d’autres&nbsp;défis.</p>
  144. <p>Je respecte —&nbsp;et j’admire de plus en plus&nbsp;— les personnes qui n’ont pas besoin d’entrer à fond dans un sujet pour s’amuser. Il y a une innocence dont émane une forme de beauté. Certain·es pourraient y lire une condescendance mal placée mais pas du tout, cette recherche est bien trop souvent un fardeau chronophage qui pourrit la vie et les relations. Un groupe sain nécessite probablement d’avoir les deux façons d’appréhender les choses pour arriver à l’équilibre instable qui consiste à aller de&nbsp;l’avant.</p>
  145. <p>Oh, et pour revenir aux CSS, <strong>pour mon usage</strong> qui est de faire des petits outils résilients en équipe réduite, j’utilise de plus en plus des <em>frameworks</em> <a href="https://github.com/dbohdan/classless-css">sans classes</a> (ahum) comme <a href="https://picocss.com/">Pico.css</a> qui procurent une base saine, configurable et facilement portable. Est-ce que cela fait de moi un <em>Brafter</em>&#8239;? (<a href="https://www.urbandictionary.com/define.php?term=Braft">Non</a>.)</p>
  146. <hr />
  147. <blockquote lang="en">
  148. <p>✍️ Most people default to one or another behavior but rarely use them exclusively. Writers will often benefit from talking things out when they get stuck; and talkers will find that occasionally writing something down helps solidify their thoughts. Both strategies can be learned. Whether you’re a writer or a talker isn’t about your inability to do one or the other so much as it is a preferred or optimized&nbsp;mode.</p>
  149. <p>This is, incidentally, <mark>a much more valuable way of understanding different working styles</mark> than the old maker vs manager canard. Both talkers and writers make things (including decisions), but they means by which they make things—and the needs they have in relation to their colleagues—are not the&nbsp;same.</p>
  150. <p><cite><em><a href="https://everythingchanges.us/blog/writers-and-talkers-and-leaders/">Writers and talkers and leaders, oh my!</a></em>&nbsp;(<a href="/david/cache/2023/b2292d98e9d54537c13b8c1e2cae5583/">cache</a>)</cite></p>
  151. </blockquote>
  152. <blockquote lang="en">
  153. <p>🐉 But in general, I’d still be wary of using local-first outside real-time / multiplayer / offline use cases. <mark>Local-first is definitely still bleeding-edge.</mark> You will hit unexpected problems. A good community has rapidly developed, but there’ll still be some stretches on the road where you’ll have to solve novel&nbsp;problems.</p>
  154. <p>So: if you need local-first, see if it makes sense to isolate the local-first parts and architect the rest of the app (for now) in a more conventional&nbsp;fashion.</p>
  155. <p><cite><em><a href="https://bricolage.io/some-notes-on-local-first-development/">Some notes on Local-First Development</a></em>&nbsp;(<a href="/david/cache/2023/49f2ce04dd0beb94dc2f662163bc6339/">cache</a>)</cite></p>
  156. </blockquote>
  157. <blockquote>
  158. <p>😔 En fait ma plus grande inquiétude dans ses parcours hors-circuits sont les autres humains, ceux qui ne comprendraient pas ma&nbsp;démarche.</p>
  159. <p><cite><em><a href="https://www.la-grange.net/2023/03/03/suburb">banlieue ou suburb</a></em>&nbsp;(<a href="/david/cache/2023/5f93f91a46391e0e120dac49298857d1/">cache</a>)</cite></p>
  160. </blockquote>
  161. <nav>
  162. <p>
  163. <a href="/david/2023/complexite/"
  164. title="Liste de tous les articles 2023 associés à cette étiquette"
  165. rel="tag">#complexité</a>
  166. <a href="/david/2023/recherche/"
  167. title="Liste de tous les articles 2023 associés à cette étiquette"
  168. rel="tag">#recherche</a>
  169. <a href="/david/2023/technique/"
  170. title="Liste de tous les articles 2023 associés à cette étiquette"
  171. rel="tag">#technique</a>
  172. <a href="/david/#tags-2023" title="Liste de toutes les étiquettes 2023">
  173. <svg class="icon icon-tags">
  174. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-tags"></use>
  175. </svg>
  176. tous ?</a>
  177. </p>
  178. </nav>
  179. <nav>
  180. <p class="center">
  181. <a rel="prev"
  182. href="/david/2023/09/23/"
  183. title="Publication précédente : Éco-conception">← Précédent</a> •
  184. <a href="/david/2023/" title="Liste des publications récentes">↑ En 2023</a>
  185. </p>
  186. </nav>
  187. </article>
  188. <hr>
  189. <footer>
  190. <p>
  191. <nobr>
  192. <a href="/david/" title="Aller à l’accueil">
  193. <svg class="icon icon-home">
  194. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"></use>
  195. </svg>
  196. Accueil</a>
  197. </nobr>
  198. <nobr>
  199. <a href="/david/log/" title="Accès au flux RSS">
  200. <svg class="icon icon-rss2">
  201. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-rss2"></use>
  202. </svg>
  203. Suivre</a>
  204. </nobr>
  205. <nobr>
  206. <a href="http://larlet.com"
  207. title="Go to my English profile"
  208. data-instant>
  209. <svg class="icon icon-user-tie">
  210. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-user-tie"></use>
  211. </svg>
  212. Pro</a>
  213. </nobr>
  214. <nobr>
  215. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">
  216. <svg class="icon icon-mail">
  217. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-mail"></use>
  218. </svg>
  219. Email</a>
  220. </nobr>
  221. <nobr>
  222. <abbr class="nowrap"
  223. title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340">
  224. <svg class="icon icon-hammer2">
  225. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-hammer2"></use>
  226. </svg>
  227. Légal</abbr>
  228. </nobr>
  229. </p>
  230. <template id="theme-selector">
  231. <form>
  232. <fieldset>
  233. <legend>
  234. <svg class="icon icon-brightness-contrast">
  235. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-brightness-contrast"></use>
  236. </svg>
  237. Thème
  238. </legend>
  239. <label>
  240. <input type="radio" value="auto" name="chosen-color-scheme" checked>
  241. Auto
  242. </label>
  243. <label>
  244. <input type="radio" value="dark" name="chosen-color-scheme">
  245. Foncé
  246. </label>
  247. <label>
  248. <input type="radio" value="light" name="chosen-color-scheme">
  249. Clair
  250. </label>
  251. </fieldset>
  252. </form>
  253. </template>
  254. </footer>
  255. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  256. <script>
  257. function loadThemeForm(templateName) {
  258. const themeSelectorTemplate = document.querySelector(templateName)
  259. const form = themeSelectorTemplate.content.firstElementChild
  260. themeSelectorTemplate.replaceWith(form)
  261. form.addEventListener('change', (e) => {
  262. const chosenColorScheme = e.target.value
  263. localStorage.setItem('theme', chosenColorScheme)
  264. toggleTheme(chosenColorScheme)
  265. })
  266. const selectedTheme = localStorage.getItem('theme')
  267. if (selectedTheme && selectedTheme !== 'undefined') {
  268. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  269. }
  270. }
  271. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  272. window.addEventListener('load', () => {
  273. let hasDarkRules = false
  274. for (const styleSheet of Array.from(document.styleSheets)) {
  275. let mediaRules = []
  276. for (const cssRule of styleSheet.cssRules) {
  277. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  278. continue
  279. }
  280. // WARNING: Safari does not have/supports `conditionText`.
  281. if (cssRule.conditionText) {
  282. if (cssRule.conditionText !== prefersColorSchemeDark) {
  283. continue
  284. }
  285. } else {
  286. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  287. continue
  288. }
  289. }
  290. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  291. }
  292. // WARNING: do not try to insert a Rule to a styleSheet you are
  293. // currently iterating on, otherwise the browser will be stuck
  294. // in a infinite loop…
  295. for (const mediaRule of mediaRules) {
  296. styleSheet.insertRule(mediaRule.cssText)
  297. hasDarkRules = true
  298. }
  299. }
  300. if (hasDarkRules) {
  301. loadThemeForm('#theme-selector')
  302. }
  303. })
  304. </script>
  305. </body>
  306. </html>