5 ms·
One of the most influential few paragraphs I've ever read in my life was this FAQ entry: https://sqlite.org/faq.html#q17 https://sqlite.org/faq.html#q17 It mu
by logicallee 9y ago
One of the most influential few paragraphs I've ever read in my life was this FAQ entry:
https://sqlite.org/faq.html#q17 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?)
- Joky 9y agoTesting 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.
- logicallee 9y agoDo 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?