From: Michael Widenius Date: March 8 2009 1:28pm Subject: Re: MySQL University Session: Good Coding Style follow up List-Archive: http://lists.mysql.com/internals/36362 Message-Id: <18867.51199.978071.571366@narttu.askmonty.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! >>>>> "Roy" == Roy Lyseng writes: Roy> Kostja, Roy> thanks for bringing this up! Roy> I can raise a few issues: Roy> 1. switch style should be more specific. (I saw 4 different styles on a Roy> brief scan of sql_select.cc). THere is only one style. However it's not enforced. In the 'perfect' world we could have a script that fixes the style on or before commit to get rid of this problem. We have an old script, but it only works to 95 %; Not good enough to be truested for automatic fixing... Roy> 2. "space" advice for bitwise operators missing. Agree Roy> 3. How does class JOIN fit into the coding rules? Can you explain ? Roy> 4. How do we handle "modern" C++ (templates, namespaces, exceptions,...) Don't use them in the server code :) (Especially templates and exceptions) Regards, Monty