Community Feed

Your story Log in to post
I

Unapoitwa "computer guy" kwa family WhatsApp group. Hiyo ni promotion ama ni sentence?

S

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

O

Four lines. Three hours.

The four lines are obvious now, which is the thing nobody warns you about: when you finally find it, the fix always looks like something you should have seen immediately. You should not have. Th...

Post image
R

Eldoret is at about 2,100 metres. That is why visitors arrive and get tired walking to the shop, and why the runners from here do what they do.

S

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

Run
M ✓

If you are learning and you feel behind, read this: the people you are comparing yourself to spent years being confused in private. You are doing yours in public, which is harder and faster.

J

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.

B

Nilikuwa nadhani nimemaliza. Nikaopen kwa simu. Hapo ndio kazi ilianza.

P

Took the laptop outside for the afternoon. The code did not get better but I did.

If you have been at the screen since morning, this is your sign.

Post image
S

Accordion, No JS

An accordion built on details and summary. Open one and the others close, which normally needs JavaScript, except the name attribute on details does it natively now.

Keyboard works out of the box because the browser wro...

Run
S

Spent an hour clearing the desk before writing a line. Not procrastination, or at least that is what I tell myself.

There is something to it though. A clear surface in front of you is one less thing competing for attent...

Post image
L

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.

Y

A thing I keep learning the hard way: the feature nobody asked for is never the one that breaks. It is always the login.

J

Ukiona developer ameanza kuongea na laptop. Usimsumbue. Ako karibu.

K

Databases do not get slow because they are big. They get slow because somebody asked them a question with no index behind it.

Run EXPLAIN on the query you think is fine. It is usually the one.

P

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

Post image
J

Copy That

A copy button that actually tells you it worked. Clipboard API, with the label changing and changing back.

The detail people skip: it goes back to Copy on its own, so the button never lies about its current state. ...

Run
S

The most useful thing in any codebase is a comment that says WHY. What the code does is already written down, in the code.

D

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.

B

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.

R

Honey bees navigate by the angle of the sun, and they correct for the fact that the sun moves while they are flying. An insect doing celestial navigation with time compensation.

N

CSS specificity in one line: inline beats id beats class beats tag, and a rule inside a media query carries no extra weight at all.

That last part catches people constantly. Your phone styles are not losing because of t...

S

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.

N

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

S

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.

N

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.

H

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.

A

Your deadline is a guess. Your estimate is a guess. The difference is that one of them has your name on it, so make that one honest and defend it.

B

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.

E

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

Run
S

Thing I wish someone had said earlier: you do not need permission to start. You need a folder and about two hours.

I

Indexes are not free. Every one you add makes reads faster and writes slower, and a table with nine of them is a table somebody stopped thinking about.

H

The word "debugging" came from an actual moth. 1947, Harvard, a moth stuck in a relay of the Mark II. They taped it into the logbook and wrote "first actual case of bug being found."

The logbook with the moth still in i...

R

Hot take: most "we need AI" projects need a search box and a sorted list.

J

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.

N

Before And After

An image comparison slider. Drag the handle and the top image clips to follow it.

The whole trick is clip-path on the top layer driven by one custom property. No canvas, no library.

Run
R

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

B

Strength Meter

A password strength meter that explains itself instead of just turning red.

It scores length first, because length beats every clever substitution, and it says which thing would help most next.

Run