Poll is CLOSED

Poll

How often is your MATLAB code officially or unofficially reviewed?

Never, I don't typically share code
46%
Never, even when my code is shared
14%
Occasionally
15%
Sometimes
8%
More often than not
5%
Always or almost always
12%
8896 votes

ISAH USMAN YUSUF
ISAH USMAN YUSUF on 30 Jan 2023
There is needs to share codes at times in order to facilitate learning
Ciaran McAndrew
Ciaran McAndrew on 12 Dec 2022
Code shouldn't be reviewed only to be shared. If you want a quality application or tool, peer review is an essential requirement. It shouldn't matter how many end users it has, more what it is to be used for and the quality requirements for that task.
DGM
DGM on 17 Aug 2022
I don't know who gets to create polls. I assume it's some subset of MVPs and staff; either way, it's beyond my domain. If anyone is hurting for curiosity, I'd like to know how often (or to what degree) people use MATLAB for their own mundane personal tasks. I'm talking about using MATLAB as a hobby or using MATLAB to calculate the amount drywall/pipe/paint needed to fix one's own abode, or using MATLAB to do rough CBA while shopping, or do budgeting for a vacation. In other words, how much has MATLAB become a part of your personal life?
Feel free to rephrase that as necessary to create an engaging poll -- or don't. There haven't been many fresh polls lately, so I'd figure I'd cast out some idea spores.
Image Analyst
Image Analyst on 19 Aug 2022
I use it fairly often for "non-work" tasks - see my File Exchange for some of them. Like how to solve a maze, control Philips Hue light bulbs, histogram age-at-death using wikipedia data, plotting waveforms of songs, extrapolate my investments/net worth until I retire, track or predict COVID, weather tracking or exploration, or even curiosities/puzzles like just to see how far along the earth you can see if you stand on the seashore.
If you provide a question and a list of responses (less than 35 characters) we could post the poll.
DGM
DGM on 20 Aug 2022 (Edited on 20 Aug 2022)
Hmm. Considering that I'm likely an extreme outlier in this case, I'm not sure that my perspective is well-grounded. Feel free to take this as a seed:
Q: We all use computational tools for everything from housework and shopping to taxes and investment planning. To what degree has MATLAB become useful for mundane personal computation tasks?
  1. MATLAB is primarily a hobby
  2. MATLAB is for both work and play!
  3. I'll use MATLAB if it''s convenient
  4. I'm not using MATLAB without pay
I'm not a fan of illusory neutral choices, hence an even number of options :)
I'm not sure how compact the question itself needs to be. Feel free to condense as necessary.
DGM
DGM on 16 Aug 2022
I'm not really sure how far you'd want to take what constitutes "unofficial code review". I mean, people rub their eyeballs over the examples I write all the time on the forum, and I'm sure people have dug into MIMT to find particularly garbagesque old code, but that's about it. There have been a few bug reports on MIMT, but I don't know that someone saying "your dumb function exploded" is what I'd call "code review". I am the only person I know who uses MATLAB.
Also: I love the ambiguity in differentiating "sometimes" versus "occasionally".
Rik
Rik on 16 Aug 2022
Maybe we should review eachothers FEX submissions ;)
DGM
DGM on 17 Aug 2022
Oh no. Your eyes don't deserve that kind of horror, and my MIMT todo list is long enough as it is!
Rik
Rik on 17 Aug 2022

I'm actually only half joking. I'm also the only actual Matlab user I know, so I can only hold myself to my own standards, which probably means I'm missing a lot of bugs.

DGM
DGM on 20 Aug 2022 (Edited on 20 Aug 2022)
We're kind of in the same boat in that regard, but if I'm being honest, I perceive you as defined by a rigor that surpasses my own haphazard hobbyist tendencies. I don't know that I'd really have any good suggestions to offer you, and truly, my MIMT todo list is so long that it would almost be easier to rephrase it as "define conventions and start over from scratch with some sort of plan" -- but isn't that the way with all novice coding projects that turn into unintentional learning experiences?
If I were to snipe one recommendation off the top of my head (and close to my heart), I would recommend operator spacing -- assignment operators at the least. I've only recently tried to cure myself after years of writing monolithic densified code. I think that it does help readability for most people; the gravity of that may depend on how much you intend others to read your code. Considering that you probably have more experience (and rightful preference) than I do and that I've long rejected the idea myself, I can totally understand a disagreement on the matter. Are there style conventions for this sort of thing? I don't even know. Again, that's just purely from my recollection of your FEX tools that I use.
Rik
Rik on 16 Aug 2022
I have a few times received a bug-report on my FEX-submissions, but that is about the extent of the code review that happens for me. Code review is essential for good quality code, but I don't really have someone to share my codebase with (either work or hobby).
xingxingcui
xingxingcui on 16 Aug 2022
i like code my problem ,also i like share my code
Image Analyst
Image Analyst on 15 Aug 2022
Then only time my code is "reviewed" is when I'm working with a customer (end user) to jointly try to debug something. Two eyes are better than one.
The only other time someone actually looks at my source code is when I'm training someone how to program in MATLAB and we take some of my code and try to adapt it to their situation. I guess these two situations of people looking at my code might not be considered "review" though.