-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unique subchapters per rule and consistent order #103
Comments
I changed the example file "better" in this context is more meant as an improvement, a step in the direction of good. This works in German. But does it in English? I think yes. But I'm not sure. It's different to good - better - best. |
Had a twitter discussion about "bad - better - good" versus "good - better - best". https://twitter.com/kibeha/status/1313740507328253954?s=20 Lots of opinions, but I think most ended up reasonably agreeing that "better" is relative and is to be understood as "better than the previous value in the sequence", meaning both versions are valid English. https://twitter.com/MDWidlake/status/1313788475016122368?s=20 But by that definition, "better" needs a sorted order to make sense. I do not see it as a big issue, but yes, there ought to be a consistent usage of the terms. On the other hand, complete consistency makes it hard to "grade" examples. Ideally we'd want un-ambiguous words to describe levels of "good" for the examples.
Guideline with 2 examples - use bad and good. Alternatively drop the word and grade the examples by smileys
|
I agree with "bad - better - good - best". For examples with multiple "bad" and "good" examples I would squeeze all good examples in one chapter and all bad examples in one chapter. If necessary some comments can be added. Here are two screenshots of the representations of G-3195 and G-4220 in SonarQube: And here's the representation of G-5030 which contains comments in the code (also for the error part to ensure the code is valid). |
Example subchapters are now consistently 4 levels:
Most rules have bad+good, some have bad+better+good, few have bad+good+best. Cases where multiple examples exist of the same "goodness level", they have been combined into a single subchapter, so there are no rules with multiple identically named subchapters. |
Most of the guidelines have just two examples chapters. Good and bad. That's ok.
Some guidelines have multiple good/bad chapters (adding all examples under one chapter with comments might be the better option):
Some guidelines use the pattern "Bad - Better - Good":
Some guidelines use the pattern "Bad - Good - Better" (meaning the last option is the best):
Personally I'd like to have a standardized subtitle concept. This would simplify the process of generating the SQL-Script examples for the CLI and the rules representation for PL/SQL Cop in general and SonarQube in particular (the genmodel). But this should not drive the solution. I can always deal with exceptions.
Two things are important IMO:
The text was updated successfully, but these errors were encountered: