www.delorie.com/archives/browse.cgi | search |
Kai-Martin Knaak wrote: > >> read through source code and find all functions or similar > >> accessing the PCB file and put them in libpcb library file which > >> would be become a storage library. > > > > Pretty much all code accesses the stored data directly, no such > > thing like accessors or setters/getters. > > Something whispers "refactor!" in my ear... Setters/getters are perhaps the worst side effect there is in source code. Never introduce artificial overhead without very careful consideration. Data structures in memory are intended to be accessed directly and ideally never copied. Permanent storage is another matter. Setters/getters for files are all the more appropriate - and that's exactly what libpcb and edacore both would offer. I'm all for moving pcb file code into a libpcb. //Peter
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |