On 04/08/2012 03:33 PM, skr...@hushmail.com wrote: > Is it getting better? are am I going backwards?
I think you really need to step back now and then and ask yourself: 1) what is it I'm trying to do, really. Try to keep the scope of your work narrow and focused. 2) how can I make my code cleaner, easier to read. Refactoring code is a great way to allow your mind to think about the first question, while improving the overall design of your code I know you think you can improve DBMail and make it scale by leveraging a key-value store. You maybe right, you maybe wrong. Of course I understand you're still learning about the basics, but very often getting the basics right will clear the way for more difficult stuff. If I would build a key-value interface I would first setup an interface with really limited functionality. Ignore difficult stuff like compression and chunking. Get it right with small data blocks first that don't need additional sit-ups to push and retrieve them from the KV store. Keeping things simple and clean will force you to rethink now and when, but it will also keep things easier to understand and use. Setting up such a basic interface will allow you to start thinking about practical application quickly and leverage the interface in the overall dbmail code-base to prove the added value of the new interface. If you see results, this will affirm your intuition that your barking up the right tree. And last but not least: use unit-tests to prove the correctness of your code, and prevent future regressions. Look in the dbmail/test/ directory for examples how to set them up. You will need to install 'check' http://check.sourceforge.net/ to use them. -- ________________________________________________________________ Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin * Premium Hosting Services and Web Application Consultancy * www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 ________________________________________________________________ _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev