Sunday reminder that rest is not laziness. Even the instruction to rest came with a reason attached, and it was not productivity. #faith
Community Feed
Count Up
Numbers that count up when they come into view, using IntersectionObserver rather than a scroll listener.
Scroll listeners fire hundreds of times a second and you end up throttling them. The observer fires once. #javasc...
Alt text is not for search engines. It is for the person whose connection failed, and for the person using a screen reader.
Write what the picture is doing in the sentence, not what is in it. #design
Long one.
I used to think the goal was to write code so clever that other people would admire it. Then I had to go back to something I wrote eight months earlier and I could not work out what I had been thinking....
Tabs That Slide
Tabs with an underline that travels to whatever you pick, measured from the tab itself rather than hard coded.
Arrow keys work, because tabs are a listbox to a keyboard and the browser will not do that part for you. #ja...
Kenyan freelancers: write the scope down. Not because you expect trouble, but because "we agreed" is a sentence two people can say about completely different things.
Short thought on prayer and planning. I used to treat them as alternatives: pray about it or plan it. They are the same posture pointed at different hours of the day. #faith
Faith is not certainty. Certainty does not need faith. It is moving while you are still unsure, which is most of what any of us do anyway. #faith
Faith and work are not two drawers. The way you treat a client who has not paid yet is the same thing as the way you behave on Sunday. It is one life. #faith
Nimegundua kitu: client akisema 'ni kitu kidogo tu', jipange kwa wiki mbili.
If you are learning to code and you feel stupid, that feeling is the job. It never fully leaves. You just get faster at moving through it.
The people who look confident are the ones who have been confused about more thi...
Sharks existed before trees. Sharks are about 400 million years old, the first trees around 350 million.
They have also outlived four mass extinctions, which is a better record than most companies. #science
There are more possible arrangements of a standard deck of cards than there are atoms on Earth. 52 factorial is about 8 followed by 67 zeros.
Shuffle properly and that order has almost certainly never existed before. #s...
What is the worst production incident you have survived? No names, no companies. Just the feeling.
Still the fastest tool I own.
Every planning app I have tried wanted me to pick a project, a tag and a due date before I could write down the thought. By then the thought is gone. #ideas
Ukiona developer ameanza kuongea na laptop. Usimsumbue. Ako karibu.
Octopuses have three hearts, and two of them stop beating when it swims. So it prefers to crawl, because swimming exhausts it. #science
Design systems are just agreeing with yourself in advance. #design
CSS has container queries now. You can style a component by how much room IT has, not how wide the window is. That is the thing we were faking with JavaScript for ten years. #css
Your API is a promise. Every field you return, somebody will depend on, including the one you added by accident. #dev
A honeybee has to visit about two million flowers to make one pound of honey. The average worker bee makes about a twelfth of a teaspoon in her whole life. #science
Spent the morning reading someone else's code. Not to fix it, just to read it.
Highly recommended. You learn more patterns in an hour of reading than a week of writing your own. #learning
Hot take: most "we need AI" projects need a search box and a sorted list. #ideas
Trees in a forest are mostly older than the oldest person you have met, and they will be there after everyone reading this. Worth standing under one for a minute. #science
Your browser ships with a whole database. IndexedDB has been there for years and most of us still reach for localStorage and then complain about the five megabyte limit. #javascript
Water expands when it freezes, which is almost unique among liquids. If ice sank, lakes would freeze from the bottom up and most of them would never fully thaw.
Almost everything alive in cold water exists because of th...
What is the first thing you check when something breaks in production? Mine is the time. If it started exactly on the hour, it is a cron job.
Eldoret people, where is the best place to actually sit and work? Needs power, needs WiFi that does not die at 2pm, needs chairs that are not punishment. #eldoret
Unapoitwa "computer guy" kwa family WhatsApp group. Hiyo ni promotion ama ni sentence?
Bahati ni kazi iliyofichwa. Hakuna mtu ameamka akakuta amefanikiwa.
Learn the shortcuts for the editor you already use before you spend a weekend trying a new one.
Multi cursor, go to definition, jump to file. Three of them. That is most of the speed people think comes from the tool. #d...
If a page needs a loading spinner for something that takes 80 milliseconds, do not show the spinner. A flash of loading is worse than a short wait. #design
Accessibility is not a checklist at the end. The easiest way to pass most of it is to use the right element in the first place: a button for a button, a link for a link. #design
Endless Marquee
A logo ticker that loops with no gap and no JavaScript. The list is duplicated once and the track slides exactly half its width, so the seam never shows.
It pauses on hover, because a moving thing you cannot read is jus...
Long one about shipping.
I delayed a project four months over a settings page. Not the feature, the settings page. I wanted every option in it to be right before anyone saw it....
Theme Switch
A cloud weighs about half a million kilograms. It stays up because the droplets are tiny and the air beneath is moving up faster than they fall. #science
The cheapest performance win on most sites is still the images. Not the framework, not the server, the images.
Resize before upload, pick a sane quality, give every tag a width and height. That is most of it. #dev
Naming is genuinely the hard part. I have renamed one function six times today and it still does not say what it does, which probably means the function is doing more than one thing. #dev
If you are freelancing and somebody asks for your rate, give a number and stop talking.
The silence after is not rejection. It is arithmetic. #ideas
Loading comments...
Sign in to comment.