Last week W20

I haven't used this blog in a few years. To get back in the groove, I'm starting with a weekly post.

WebPageTest contributions

I've done a few contributions to that project recently:

  • Docs #27: The table of contents shows more headings. This makes it easier to scan the content of a page and share anchor links. Before/After screenshots.
  • Docs #29: WebPageTest supported a few variable substitutions for quite a while but they were undocumented. No more!
  • WebPageTest #1498: Add labels to form inputs in Custom Waterfall. Bigger targets to customise faster than ever.

No, Utility Classes Aren't the Same As Inline Styles

Utility-first is a trend in the front-end world. I think it's a powerful tool and I've seen positive outcomes in terms of maintenance and performance for the projects where I've used this approach. Many people dismiss this approach. One of the common criticism is that it's just like inline styles. Sarah explains why it is not.

My highlights:

  • Utility can affect more than one element. Inline cannot (besides inheritance).
  • Utility can use pseudo-classes, pseudo-elements and media queries. Inline styles cannot.
  • Utility can be processed by tools like PostCSS or Sass. Inline styles, so far, cannot.
  • Utility can be cached much longer than inline styles.
  • Utility can declare several properties with one declaration. Inline styles cannot.
  • Utility fits in a strategy and architecture. You can limit a project to a set of colours, spacings, font stacks, text sizes, etc. Inline styles have no such restrictions.
  • It's better to say "I have not dug into that topic yet" rather than make snap judgements.

And if you want to go further, read or watch her advocate for this approach.

Teaching DOM Events visually

I've added this to my toolbox straight away. DOM Events have a lot of subtle parts and it can be tricky to explain them. With this tool, you can configure an event (What's the target? Does it bubble? Is it cancelable?) and some listeners. Then you can dispatch the event and see how it propagates. Maybe drop that in your next code design session or review?

Here's an exemple to showcase the difference between stopImmediatePropagation and stopPropagation.

Chrome is experimenting with RSS feeds

A few years ago, you could subscribe to RSS feeds in any browser. Safari 2, released in 2005, was even marketed as "Safari RSS". But it went away (Firefox removed support in December 2018)

As often in life, the pendulum is swinging back and we might see feeds make a come back. I'd welcome that since this is giving some control back to publishers and take it away from social networks. Notice the experiment is using the codes of social networks by calling this feature "Follow".

Why the sad face?

I really like very opinionated code formatters. In this post, Łukasz Langa (creator of Black) highlights how the formatting of closing parentheses is useful.

Simplifying macOS System Preferences

(via Karl)

I had no idea this was possible. I've disabled all panes for now and will re-enable as I go.

A Twitter quote

Someone on tv just said, “when we want to incentivize rich people we give them money but when we want to incentivize poor people we take away money,” and holy fuck that’s so true.

Async/await, a more compelling example

Most of the introductions to async/await in JavaScript that I’ve read are very similar, something like this: // Promise version function insertArticle(url, element) { return fetch(url) .then(response => response.json()) .then(data => { const article = document.createTextNode(data.article)  […]

Lire la suite

Moving to London and looking for jobs

My girlfriend and I decided to move to London1. We’re both looking for jobs. Shannon Shannon is looking for an Office Management or Executive Assistant position. She has managed offices all over Europe, was the lead manager for a global travel program and has experience organising events. She knows  […]

Lire la suite

On the utility of filing bugs

During my five years working at Mozilla, I’ve been known to ask people to file bugs when they encountered an issue. Most of the time, the answer was that they didn’t have time to do so and it was useless. I think it is actually very valuable. You get to learn from that experience: how to file  […]

Lire la suite

Updating my code search tools

Finding an information in a codebase is a very common task performed by software engineers. The quicker you can do it, the more chance you have of not losing your momentum. With proper tools, you can find things 10 times faster1. In 2011, I’ve presented ack in a lightning talk at Paris Web. That was  […]

Lire la suite

En recherche d'emploi - Looking for a job

English version Je suis à la recherche d'un nouveau poste dans le développement web. Comme pour mes précédents jobs, je recherche une société éditrice de ses produits et non financée par la publicité. J'aimerais intégrer une équipe qui s'interroge régulièrement sur ses méthodes de travail.  […]

Lire la suite

Code clarity

Let me tell you a story about code clarity. If you’ve met me, I’ve probably told you this story before. Back when I was in engineering school, I had some algorithmic courses. The teacher would often ask us how many lines a particular algorithm would take to solve. Some students would take guesses: -  […]

Lire la suite

Marks in Terminal.app

For a while after updating to El Capitan, I've seen those weird marks in front of every line. I thought it was an incompatibily with oh-my-zsh. Turns out it isn't and I've discovered that through John Siracusa. He links to a wonderful stack exchange answer. It explains in details what they are and  […]

Lire la suite

Une nouvelle aventure

Après cinq ans chez Mozilla, j'ai décidé de partir pour une nouvelle aventure qui débutera le premier août. Je ne sais pas encore où elle sera et c'est pour cela que je publie ce billet. Je cherche une société qui travaille sur ses propres produits (cela exclut donc les agences) et qui n'est pas  […]

Lire la suite

A little performance trick from Amazon

Have you noticed that Amazon search results feel really really fast? I've noticed that they use a little trick to achieve that. They preload a few results from the next page (6 in my example). So when you click on "Next page", they can display those items immediately and start fetching the other  […]

Lire la suite

Electrolysis without tabs underlined

Electrolysis has been re-enabled in Nightly. It brings lots of end-user benefits but it also brings a new style for tabs. I guess this underlining is to help users easily notice the difference with a non-Electrolysis build. But you can easily disable that: Locate your profile Go into the chrome  […]

Lire la suite

Enlever le logo Fnac sur une liseuse Kobo

En parcourant des forums, je me suis aperçu que la liseuse Kobo pouvait afficher la couverture du livre en cours quand elle est en veille. Mais je ne retrouvais pas cette option dans les réglages. Il s'avère qu'elle est désactivée sur les liseuses vendues par la Fnac. Mais une petite manipulation  […]

Lire la suite

Adopting Omnifocus and GTD

I've tried to adopt the Getting Things Done method a few times already. Every time, it wasn't a success. I wasn't applying most principles and fell back to noting things down on a collection of small papers. This time, I had a huge advantage: at work, I'm sitting next to Étienne, a big proponent of  […]

Lire la suite

Clinique des navigateurs, devoirs à la maison

Dans moins de deux semaines, j'animerais un atelier Clinique des navigateurs à Paris-Web. Le but de cet atelier est double : Montrer comment obtenir un changement de comportement d'un navigateur. Récupérer vos retours afin d'améliorer les navigateurs. Chacun y gagne, c'est du win-win comme on  […]

Lire la suite

My first patch in Gecko

A couple of weeks ago, I decided to try and fix a Gecko bug (Gecko is the rendering engine of Firefox). So I hoped onto the list of mentored bugs and found one that I thought would improve the Web Platform and looked easy enough for my skills. I found this one : add support for background-size in  […]

Lire la suite

La paralysie du tout parfait

Je souffre de cela. Depuis longtemps, je n'ose pas faire quelque chose si je n'ai pas un certain niveau de confiance. Par exemple, à l'école, je n'écrivais sur ma feuille que ce que je savais juste (ou tout du moins ce que je pensais juste). C'est aussi pour cela que je lisais les énoncés en entier  […]

Lire la suite

Free Mobile, mon expérience

(je n'arrive pas à tenir le rythme quotidien, tant pis) J'étais abonné chez Orange, je n'étais plus engagé, je possède un iPhone 4 et j'ai pris le forfait à 15€99. Inscrit mercredi 11 janvier aux alentours de 8h. Carte SIM reçue samedi 14 matin. Carte activée et fonctionnelle samedi 14 soir.  […]

Lire la suite

f.lux

Vous avez déjà remarqué la teinte bleue qu'émet votre écran pendant la nuit ? C'est désagréable et agressif. Jetez un œil sur f.lux. En fonction de l'heure, il va adapter la teinte de l'écran. En journée, elle sera proche du soleil alors que le soir, elle s'approchera de la teinte d'un halogène  […]

Lire la suite

Relancer les soirées performances web

Depuis décembre, j'ai repris l'organisation des soirées parisiennes concernant les performances des sites web. Mon but premier est d'installer un rendez-vous mensuel afin de pérenniser l'événement. Grâce à JF, nous avons un site un peu plus sympa à manipuler que le précédent. Et la deuxième soirée  […]

Lire la suite

Radio-réveil pour iPhone

Je suis en retard sur le billet d'hier, du coup c'est encore toi lecteur qui va travailler. Je recherche un radio-réveil (donc qui capte la radio et sonne à une heure déterminée) qui fasse aussi dock pour iPhone et qui puisse jouer la musique de l'iPhone. À vous :)

Haut de page