Time for my third and final @* Marketing Cloud Engagement * coding Style Guide - #AMPScript one!
https://mateuszdabrowski.pl/docs/ampscript/ampscript-style-guide
Having a consistent and intentional style is a huge help in creating good, bug-less scripts. Expect many subjective opinions focused on consistency, readability and ease of writing — all with the #Marketing Cloud use case in mind.
You may use it as it is, implement only some parts of it, or ignore it altogether, but I highly recommend going through and thinking about your approach to writing scripts.
SFMC Style Guide series:
1. AMPScript: https://mateuszdabrowski.pl/docs/ampscript/ampscript-style-guide
2. SSJS: https://mateuszdabrowski.pl/docs/ssjs/ssjs-style-guide
3. SQL: https://mateuszdabrowski.pl/docs/sql/sfmc-sql-style-guide
More to come, so keep on coding!