View Single Post
Old 01-26-2017, 01:29 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre is huge, almost a million lines of code, you will find an example of pretty much every design pattern somewhere in its codebase.

On the other hand, no calibre developers I know of use formal design patterns when writing calibre code. So there is no easy list of

X uses Y pattern

to create.

The primary guiding principle of code design in calibre is modularity. code must be as modular as possible, with well defined interfaces that should be as stable as possible over time.
kovidgoyal is online now   Reply With Quote