Standards document for Objectscript developers
I need to create a standards document for new developers who are coming to Cache from other backgrounds.
Does anyone have an in-house document they could share with me?
Regards
Mike
I need to create a standards document for new developers who are coming to Cache from other backgrounds.
Does anyone have an in-house document they could share with me?
Regards
Mike
Check Caché ObjectScript Code Guidelines repository.
I use markdowntopdf, but there are many online and offline services with the similar capabilities. I have created a release with PDFs.
Thanks Eduard, this is a good starting point for my document.
I notice that you allow methods to return objects rather than %Status. I have looked at a lot of InterSystems Ensemble code over the years, and the general style is to always return a %Status and any object oRefs required are passed out as Output parameters. Would you say that this is the most common style?
Regards Mike
Thank you very much Eduard, I know there are some utilities that can create a printable version, just wondering -- do you have a static version of this handy by chance? thanks,
Here are ones we used at Dimas ltdcode_standards.doc code_standards_cheat_sheet.doc
Thanks Sergei, this is exactly what I was looking for.
I notice that we already differ from your standard quite a bit. I have looked at a lot of InterSystems Ensemble code over the years and have sort of inherited their style.
We also insist on using #dim for all variables to prevent spelling mistakes causing problems.
Regards Mike
When it comes to creating development/coding standards for your company, there are a few key things to keep in mind. First the standards document should account for both development standards, as well as, coding standards.
Here are some thoughts/suggestions to consider: Disclaimer: The content listed below is just ideas and not necessarily a proposal of what your development/coding standards should be.
Any development/coding standards document could be fairly lengthy. But as everyone can agree, standards are very important to insure applications are implemented in a consistent manner, where the code is supportable, maintainable, and reusable. But it is also important to allow some flexibility with the standards to allow programmers the opportunity to be innovative with how they develop code. The challenge is finding the perfect balance.
Hope this helps and Have a Great Day!!! Go Team!!
Happy Coding!!
Hi John,
Thanks for highlighting the difference between development standards and coding standards. It looks like I need to update my document!
Cheers
Mike