News for hackers. Stuff that matters.
Re:Strict APIs vs. Forgiving APIs by Karellen on Wednesday October 28, 2020 @01:01PM (#24921196)
I like Rusty Russell's classic "Hard to Misuse Interface Levels". The first couple of items are

0: Impossible to get wrong/DWIM

1: Compiler/linker won't let you get it wrong

...through

9: Read the correct LKML thread and you'll get it right - SET_MODULE_OWNER

...all the way up to 17. I'll let you discover the rest yourself :-)

https://ozlabs.org/~rusty/ols-2003-keynote/img39.html

Re:Strict APIs vs. Forgiving APIs by an_d_rew on Thursday October 29, 2020 @01:14AM (#24927489)
pure gold