t-sql... interactive coding standards. amanda jackson senior developer with fronde systems group ltd...
TRANSCRIPT
![Page 1: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/1.jpg)
T-SQL...Interactive Coding Standards
![Page 2: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/2.jpg)
Session Overview
• What are coding standards?• Why do we need them?• Quick list of standards• The interactive bit… show us your brains!
![Page 3: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/3.jpg)
What are coding standards?
A set of rules that tells developers in a team how to write their code, instead of each developer coding in
their own preferred style.A set of rules that tells developers in a team how to write their code, instead of each developer coding in their own preferred style.
![Page 4: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/4.jpg)
Why do we need coding standards?
A set of rules that tells developers in a team how to write their code, instead of each developer coding in their own preferred style.
![Page 5: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/5.jpg)
A few standards to whet your appetite
• CAPITALISE keywords• Indent your code• Comments, comments & more comments• Do not call functions repeatedly• No anonymous inserts• Don’t use select *• Avoid using not equals operators• Don’t use hardcoded values• Catch errors
![Page 6: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/6.jpg)
Ideas time....
![Page 7: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/7.jpg)
Resources
A set of coding standards will be made available to download from my blog.
• Blog: http://nzgirlgeek.blogspot.com• E-mail: [email protected]
Websites that have helped me in my search for coding standards nirvana…
• http://www.sqlserver.org.au/• http://www.cslacey.co.uk/TSQLCodingStandards.pdf• http://www.pinaldave.com/sql-download/SQLServerGuideLines.pdf• http://www.sql-server-performance.com/articles/dev/
sql_best_practices_p1.aspx• http://www.sqlserver.org.au/
![Page 8: T-SQL... Interactive Coding Standards. Amanda Jackson Senior Developer with Fronde Systems Group Ltd 20 years in the IT Industry Loves refactoring code](https://reader035.vdocuments.us/reader035/viewer/2022071807/56649eb35503460f94bbabdd/html5/thumbnails/8.jpg)