Lea Verou on Nostr: The advice I give most frequently to junior devs is to resist the urge to jump ...
The advice I give most frequently to junior devs is to resist the urge to jump straight into implementation. Use the API first. Write out a few code snippets that use the API for common use cases. How does it feel? Can the user express their intent without friction and boilerplate?
It seems obvious, but it's striking how many times it's not followed, even by devs that have heard this many times before.
API design is just UI design with different constraints; putting user needs first pays off.
Published at
2024-03-27 14:25:56Event JSON
{
"id": "ea67ff7f2cc42b1e7018ba82a634429c8fa6155e4a9c8ed25879c6ed275328ce",
"pubkey": "deb27057e60b8d796302849309a7c542aa1c718108be4813086deaf9139dff76",
"created_at": 1711549556,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/users/leaverou/statuses/112168111731879441",
"activitypub"
]
],
"content": "The advice I give most frequently to junior devs is to resist the urge to jump straight into implementation. Use the API first. Write out a few code snippets that use the API for common use cases. How does it feel? Can the user express their intent without friction and boilerplate? \n\nIt seems obvious, but it's striking how many times it's not followed, even by devs that have heard this many times before.\n\nAPI design is just UI design with different constraints; putting user needs first pays off.",
"sig": "5fdb0450c6535fb4886a8f750b1bc1c35e161d017d162f26cd2680a007ffbee81a06e285a1a11e9905445dd9a93a3aa85e2278fccea83b3e4156a6814374bf90"
}