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

> Go read open source libraries.

That can be good, but some caution is required I believe. Most developers are writing programs to solve a fairly specific problem operating in a fairly specific domain in a fairly specific environment. They may choose a variety of programming styles to approach the problem (imperative, object oriented, functional, and so on). I'm going to call these kind of programs "normal" program.

Libraries are not normal programs. They are tools or components that are used by those writing normal programs. A good library tries to be accommodating to a wide variety of normal program styles, and tries not to impose too many constraints on how the library is used.

To achieve this, library coders often have to do things that would be poor style or poor design if done in a normal program.



This is an important point. Fully generalized, though, and we find idiosyncrasies in every application domain.

Maybe starting with a project like this would help? https://github.com/aosabook/500lines




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

Search: