Skip to content

Community Feed

Your story Sign in
E

Nilijaribu kuexplain kwa mum kazi yangu. Nikasema natengeneza website. Akauliza, 'na hizo zinamalizika lini?'. Swali gumu.

S

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.

D

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.

Y

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.

O

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.

Run
O

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...

Run
J

What is one thing you believed about this industry when you started that turned out to be completely wrong?

B

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.

O

Ukiskia mtu anasema "itakuwa quick fix". Kimbia.

D

Mtu akikuambia "ni kitu kidogo tu" jua hiyo project ni ya miezi mitatu.

N

The Eiffel Tower gets about 15 centimetres taller in summer. Iron expands with heat. It also leans slightly away from the sun.

S

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.

D

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.

E

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.

O

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.

J

A thing about working alone: you will have days with nothing to show. They still count. The week is the unit, not the day.

J

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.

A

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....

J

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 ...

Run
E

Your database will outlive your framework. Choose table names you can live with and write the migration down somewhere a human can read it.

M ✓

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.

D

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.

B

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.

W

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.

O

Unapo-push kwa main bila kutest. Mimi ndio huyo. Sijabadilika.

E

Spent today writing documentation instead of features. Felt unproductive. Will feel extremely productive in four months.

M

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....

S

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.

T

Mvua ya Eldoret ina ratiba yake. Saa kumi na moja, kila siku, kama imeajiriwa.

O

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.

Post image
Y

A reminder that a no is information, not a verdict. Collect enough of them and they start pointing at the thing that will work.

B

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...

Run
E

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'.

S

Short one for whoever is tired: the work will be there tomorrow. It is remarkably good at waiting. Go to sleep.

D

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.

M

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...

Post image
D

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.

I

A giraffe's neck has seven vertebrae. Exactly the same number as yours. They are just enormous.

D

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.

S

Form validation rule I wish was law: tell me what IS allowed, not just that what I typed is not. "Invalid password" helps nobody.