krlawrence / graph

Practical Gremlin - An Apache TinkerPop Tutorial
Apache License 2.0
830 stars 251 forks source link

Reformat queries to spread over multiple lines more often #207

Open krlawrence opened 3 years ago

krlawrence commented 3 years ago

The layout of the queries in the book somewhat evolved over time and is definitely inconsistent. The style guidelines for Gremlin have also evolved over time as well. These days, spreading a query over more lines with meaningful indenting makes it easier on the reader. It would be good to make a pass through the manuscript to break more queries up to spread over multiple lines to aid readability and improve consistency. It's OK for shorter queries to stay as single line ones but the multi line ones could benefit from a formatting pass.