Briefle words · Code & architecture
KISS
Also called Keep it simple
Preferring the simplest code that does the job, because simple code is easier to read, test and change.
Say it to an AI
TypeScript function sendWelcomeEmail(hire: Employee) that calls mailer.send with the "welcome" template, first name and start date. Email is the only channel, so apply YAGNI and KISS: a plain function, no notifier interface, factory or generics.
How an expert would brief the stronger version of “Welcome email”.
See it
Try it as a puzzle →An HR platform emails every new hire when they're added. Email is the only channel, with nothing else planned.
Why: B's 'sendWelcomeEmail(hire)' shows the recipient, the template and the data right where they're used.
Related words
Room 3 · Functions & structure
Learn “KISS” in a five-minute lesson