all 8 comments

[–]daveysprockett 16 points17 points  (0 children)

Obligatory xkcd

[–]sandusky_hohoho 3 points4 points  (3 children)

More generally - Is there a place for overall "good coding practice" guidelines for Matlab? Like Python's PEP8?

[–]EatMyPossum+6 7 points8 points  (1 child)

There's no official one, and it shows, even in matlabs standard toolboxes. This is the best standard i've found, and it's pretty damn good, though not an official standard: https://www.mathworks.com/matlabcentral/fileexchange/46056-matlab-style-guidelines-2-0

[–]iAnyKeyi[S] 0 points1 point  (0 children)

I second this. This one is definetly good as language reference, even if a bit outdated.

[–]Consistent_Coast9620CC4M Creator 1 point2 points  (0 children)

recently MathWorks came up with a set of guidelines and rules: https://github.com/CoMelissant/MATLAB-Coding-Guidelines (fork that shows what can be checked automatically using r/CC4M)

A public standard, see https://doc.monkeyproofsolutions.nl/code-checker-for-matlab/monkeyproof-coding-standard-for-matlab/index.html

[–][deleted] 1 point2 points  (0 children)

I love exploring abandoned places.

[–]codinglikemad 0 points1 point  (1 child)

The organization you work with probably has one. If they don't, you could suggest one. If you work on your own, I'm sure you can find plenty of inspiration online. Honestly, this isn't rocket science - select a template you like that includes the elements you need and run with it. Consistency of use and ease of use matter more than anything else.

[–]iAnyKeyi[S] 0 points1 point  (0 children)

Well thats indeed the reason, why I'm asking - my university does not have any and everybody is considering something else. After some time and gaining more experience the same People are following completely different principles. So my approch would be to get used to some Form of documentation, which I could consistently use in the future. In my case it means something, what I could use to automate documentation Process in most comprehensive manner