Re:Elevate your C programming skills by exploring the SQLite...
by Joky on Sunday July 09, 2017 @01:40PM
(#14730791)
Testing in sqlite is great! That still isn't a reason to write unreadable code though. It may just be a "Linux Torvald" kind of approach: if you can't read the code as is we don't want you in the community.
Re:Elevate your C programming skills by exploring the SQLite...
by logicallee on Sunday July 09, 2017 @03:26PM
(#14731243)
Do you know the answer to my question? Is the testing code (which I can only assume is not itself tested) is written in the same style and way as the code it is testing? Or is it written in a different style?
https://sqlite.org/faq.html#q17
It must not be left out of any discussions of style in the SQlite codebase.
Without this approach, many stylistic choices would not be nearly as acceptable.
(But one thing I never looked into: do the developers use a more readable, better-commented and -spaced style, fewer tricks that produce fewer warnings, to write their test suites?
Or are they written in the same style?)