Nilijaribu kuexplain kwa mum kazi yangu. Nikasema natengeneza website. Akauliza, 'na hizo zinamalizika lini?'. Swali gumu.
Community Feed
Serve your users the way you would want to be served when you are confused, in a hurry, and on a bad connection. That is the whole of UX. #design
Nairobi traffic taught me more about queue theory than any course. One slow thing at the front ruins everything behind it, and adding lanes does not fix it. #kenya
Git tip that took me too long: commit before you try the risky thing, not after it works. The whole point is the rope, and you tie it first. #dev
Tooltip, CSS Only
Tooltips with no JavaScript, positioned with one pseudo element and a transform. They read their text from a data attribute, so adding one is adding an attribute.
Hover any of the four. #css
Live Theme Builder
Three sliders writing straight into CSS custom properties, so the whole card restyles as you move them.
Nothing re-renders. The browser recalculates what depends on the variable and nothing else, which is why it stays s...
What is one thing you believed about this industry when you started that turned out to be completely wrong?
Something I am sitting with: ambition and contentment are not opposites. You can want more and still be grateful for where your feet are. The people who cannot do both burn out or stall. #faith
Ukiskia mtu anasema "itakuwa quick fix". Kimbia.
Mtu akikuambia "ni kitu kidogo tu" jua hiyo project ni ya miezi mitatu.
The Eiffel Tower gets about 15 centimetres taller in summer. Iron expands with heat. It also leans slightly away from the sun. #science
Forms: label every field, and put the label above it, not inside it as a placeholder. A placeholder vanishes the moment somebody starts typing, which is exactly when they need it. #design
Caching is easy. Knowing when to throw it away is the whole job. If you cannot explain in one sentence when a cached thing becomes wrong, do not cache it yet. #dev
If you are stuck, change the medium. Explain it out loud. Draw it. Write it as if to a beginner. The bug usually appears in the translation. #dev
Nobody has ever been talked out of a bad architecture by an argument. They get talked out of it by a small working version of the alternative. Build the small version. #ideas
A thing about working alone: you will have days with nothing to show. They still count. The week is the unit, not the day. #ideas
Learning in public is terrifying for about two weeks and then it is just normal, and you have a record of how far you have come. #learning
Long one about burnout, because somebody needs it.
I hit a wall in March. Not dramatic, no breakdown. I just opened the editor one morning and felt nothing. Did that for about five weeks....
Sticky Table Head
A table whose header stays put while the rows scroll under it, which is two CSS properties and a thing nobody tells you.
position: sticky on a th does nothing unless the scrolling happens on an ancestor that is not the ...
Your database will outlive your framework. Choose table names you can live with and write the migration down somewhere a human can read it. #dev
The reason your site feels slow on a Kenyan connection and fast on your laptop is not the server. It is the eleven things it downloads before it draws anything. #dev
Project idea for someone with more time than me: a proper directory of Kenyan APIs. Payments, SMS, logistics, government. Half of them you only hear about from a friend of a friend. #ideas #kenya
Rename things. Seriously. Spend ten minutes renaming the three worst names in whatever you are working on and watch how much easier the next hour gets. #dev
Keyboard shortcut that gave me hours back: multi cursor. Learn it in whatever editor you use. It is the one that feels like a superpower. #dev
Unapo-push kwa main bila kutest. Mimi ndio huyo. Sijabadilika.
Spent today writing documentation instead of features. Felt unproductive. Will feel extremely productive in four months. #dev
Long one about asking for help.
I once spent nine days on a bug. Nine. It was a caching layer returning a stale value in one specific case and I was convinced it was my own logic....
Wombat droppings are cube shaped. The intestine has sections of different elasticity that shape it. This is real and somebody won a prize for proving it. #science
Mvua ya Eldoret ina ratiba yake. Saa kumi na moja, kila siku, kama imeajiriwa.
Late one. Not because of a deadline, because it finally started working and I did not want to stop.
Those nights are the reason for the other ones.
A reminder that a no is information, not a verdict. Collect enough of them and they start pointing at the thing that will work. #faith #ideas
Masonry, No JS
A masonry layout in six lines of CSS using columns. Items of different heights pack together with no gaps and no library.
The catch worth knowing: columns read top to bottom, not left to right, so the order is different...
Nobody reads your error message, they read the first four words. Put the fix there. 'Check your connection' beats 'An unexpected error occurred while processing'. #design
Short one for whoever is tired: the work will be there tomorrow. It is remarkably good at waiting. Go to sleep.
If your site needs JavaScript to show text that already exists on the server, you have made the page slower for everyone to make it easier for you. Sometimes that trade is right. Make it on purpose. #dev
Test on the actual phone. Not the browser pretending to be one.
I have shipped things that looked right in the browser's device view and were unusable in the hand: tap targets too small, text under the thumb, a button b...
Your side project does not have to become a business. It is allowed to just be a thing you made because you wanted it to exist. #ideas
A giraffe's neck has seven vertebrae. Exactly the same number as yours. They are just enormous. #science
The Great Rift Valley is pulling apart about six millimetres a year. Slow enough to ignore, fast enough that in ten million years there is a new ocean through here. #kenya
Form validation rule I wish was law: tell me what IS allowed, not just that what I typed is not. "Invalid password" helps nobody. #design
Loading comments...
Sign in to comment.