jbampton commented on issue #4017:
URL: https://github.com/apache/apisix/issues/4017#issuecomment-816630657


   Another way to explain this is -> @spacewander is a top Lua programmer and 
works with many other Lua programmers and sometimes some people write a 
different style or perhaps syntax of Lua and @spacewander decides that all this 
different style is getting hard to maintain so @spacewander sets the Lua code 
standard and style for the project and all existing and new code needs to match 
the new standard.  So code needs to be reformatted.
   
   Similar to this is that most other top languages have formatters and 
official `style guides` or best practice advice on how you should write your 
code.
   
   Ruby and Python are well known for their style guides.
   
   There is the PEP 8 -- Style Guide for Python Code and also the Ruby Style 
Guide.
   
   https://www.python.org/dev/peps/pep-0008/
   https://rubystyle.guide/
   
   In Ruby the best known Linter / Formatter is Rubocop.
   And in Python it's black.  The Python Software Foundation make black. 
   Even Golang has `gofmt` which auto formats Go code
   
   https://rubocop.org/
   https://black.readthedocs.io/en/stable/
   https://github.com/rubocop
   https://github.com/psf/black
   https://github.com/psf
   https://golang.org/pkg/cmd/gofmt/
   
   <img width="879" alt="Screen Shot 2021-04-09 at 9 43 59 pm" 
src="https://user-images.githubusercontent.com/418747/114176052-042e3c00-997e-11eb-94a9-b5110b8cacba.png";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to