Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I might be wrong, but doesn't it look like a way to enforce SRP violation? In the provided example we don't only let the device know how to register itself via VFS, but we also make sure there will be no future DeviceManager to do that. Unless we duplicate the entire interface with Badge<DeviceManager> tag. Am I missing any non-obvious benefits of this approach?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: