News for hackers. Stuff that matters.
Re:No Abstractions: our API design principle by withinboredom on Friday April 26, 2024 @02:51AM (#40166577)
Those problems usually present themselves by people overthinking the high level api and trying to be smart.

As an example, you can use chattr to make a file in Linux immutable. ls still shows that you have permission to write to the file, even though it will fail.

When people try to overthink the api and have it determine if you really can write to a file, people will try using the high level api first (chmod) and it won’t work because it has nothing to do with permissions.

KISS is really needed for high level APIs.

There are no comments on this comment yet.