T-SQL Tuesday #156 - Wrap Up
Foreword π︎
Thank you everyone for participating! There is a total of 15 submissions and thanks to them, I’ve widened my perspective.
The order of the posts is chosen at random.
Greg Moore π︎
Greg has a shortlist of best practices he wants to have in a production code. I especially liked the one about alerting being actionable.
Aaron Bertrand π︎
Aaron has a list of 5 examples with both the bad and good alternatives. I’m in complete agreement, and I will fail any code review that uses shorthand dateparts
.
Olivier Van Steenlandt π︎
Olivier has a practical checklist of steps he takes to make the code production worthy. Having a checklist is great, so you don’t accidentally forget something.
Kenneth Fisher π︎
Kenneth’s answer is in a true DBA fashion: It depends. Read on to find out which criteria affect the answer.
Deepthi Goguri π︎
Deepthi has a list of several tips for you. Many of those points relate to the readability of the code, which is extremely important.
Damien Jones π︎
Damien went all out and used three different programming languages. Each example has a different scenario, problem and resolution.
Ajay Dwivedi π︎
Ajay has a list of practices and other SOLID advice - from naming conventions to testing and tools used to build the project.
David Wiseman π︎
I agree with everything on David’s list. I love the points about which things specifically prevent the code from being production-grade.
Josh Darnell π︎
Josh invites you to think about scalability and maintenance, among other things. Each task can have different criteria based on how vital it is.
Deborah Melkin π︎
Deborah warns us that there is nothing more permanent than temporary code. Therefore, you should have some level of standards and require it for all the code.
Kevin Chant π︎
I like to have fun during work, but I agree with Kevin that there are better mediums for jokes than code comments.
Chad Callihan π︎
Chad doesn’t let “perfect” be the enemy of “good” but still has a list of several quality gate requirements.
Andy Yun π︎
Andy requires all code to be tested. But there are exceptions to every rule when the Production is at stake.
Rob Farley π︎
I caught Rob by surprise with this invitation. But, of course, “production-grade” can mean different things to different people. Still, Rob has some advice on where to look for inspiration.
Tom ZΓka π︎
My submission is about the importance of testing. But I wrote the post on the last day of the deadline and had to publish a minimal viable blog post. So that’s an unintended meta-commentary on the production code.
Thank you for reading.