Comments (3)
from sqlstyle.guide.
Using leading commas makes diffs easier to read and reduces merge conflicts because only a single line is involved in adding or removing a field from a query. Doing so has made a practical measurable difference for my team. This is a more compelling argument than the convenience of commenting out fields.
With all due respect (and gratitude to you for putting this together in the first place), the argument that the approach fails for the first item is weak. A solution that works almost every time is far better than nothing!
The argument about preferring to stick to reading conventions is weaker. It's arbitrary and comes down to personal preference.
Another argument in favor of leading commas comes from your own article:
Comma positioning
So many people took issue with this - they desperately wanted commas before terms.
It's a popular request! Give the people what they want!
Your only reasons for not including this are a preference for reading conventions and a concern that it only helps most of the time, but not all of the time. I think the arguments for leading commas are compelling. I hope you'll reconsider.
Either way, cheers and good on you for putting this together. I'm happy to fork it and make the changes as I see fit.
from sqlstyle.guide.
Sorry, but what are you hoping to achieve here? This a topic that was decided long before this guide even existed.
Judging by the bulk of your fallacy laden argument you seem to have missed the clear examples of how both methods equally suck from a technical point of view. There is no functional difference in diffs, parsing, etc. Knowing this we then decide on the convention by what does differentiate them - legibility. Simple, done, the end - move on.
Just because proponents of a certain change request are noisy doesn't mean that they are right or even popular or more numerous than those that use the correct style as elucidated in the guide.
Finally, enjoy.
from sqlstyle.guide.
Related Issues (20)
- Add suggested data types section HOT 2
- clicking link doesn't update fragment in URL HOT 3
- add link for OOP design vs. SQL HOT 3
- Grammer error in German translation HOT 1
- Audit columns HOT 1
- This guide is fantastic HOT 1
- Italian translation HOT 6
- CHECK pens_in_drawer violates "preferred formalisms" re. BETWEEN HOT 1
- Order of foreign key? HOT 1
- Backticks (backquotes?) in style. HOT 2
- Naming convention for boolean columns HOT 3
- Some additional uniform-suffixes for consideration HOT 1
- JOIN in Aliasing or correlations example not indented right HOT 1
- Possible indent typo on sqlstyle.guide website HOT 1
- ISO Date/Time Format HOT 2
- How are you aligning the first word on each line? HOT 2
- Ukrainian translation suggestion
- [just suggestion] from gitlab style (indentation 2 spaces) HOT 1
- Reconsider JOIN Style
- Mine
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlstyle.guide.