Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@iiii Yes, but that guy used c-style array as argument, where you can't query the actual size or know that memory was really allocated for this array....*shudder*.
-
@iiii *I'm playing the narrator*
After seeing values passed around without evidence of their allocation, lil Nicky fight her urge to imagine what's next...
Little did she know that the memory allocation issues should be the last of her worries... Praying to Jesus, she looked at the diff stats, only to feel hopeless defeated by the 20 k plus lines of new code in the following commits of the PR.
In two files.
Anger overcome lil Nicky....
Puny devs should feel her wrath! -
@iiii It is when you do the code review. But when someone else doesn't notice and approves it, and suddenly you wake up to fucked up memory corruption bugs, and you need to track it down...Can be very unpleasant.
-
Mathematicians aren't automatically good coders.
That are different skill sets - even in Haskell.
So why the fuck are the Matlab people writing C++ code?! -
@NickyBones
Yes, but there aren't actually that many of them.
And they don't need to use low level languages, so they actually shouldn't.
When the algorithm is done, translating it into any language is the easy part. Let the actual coders do that job. -
@Oktokolo There are enough of them to cause damage. I worked with people like that in 3 different companies.
-
@NickyBones
Tell them to use some boring high-level language like Math, Java or Python to develop their algorithms in.
That way, the users of the algorithm can easily translate it into whatever language they need.
Readability is king for any reference implementation.
So if they only can do Matlab, they should just do it in Matlab.
Get one or two of the coders to learn some Matlab instead. They then can properly translate the algorithms into whatever language they are needed in.
Still a lot more easy than translating poorly written C++... -
@NickyBones
Everyone is. Might want to do it informally though.
They (of course) may ignore you.
But then you at least tried.
Chances are, nobody ever told them and they just expected C++ to be the convention or industry standard or whatever.
May also be the case, that someone actually told them to do it that way. In that case you can spare the company a lot of money by convincing that person to drop that stupid requirement and go the translation route instead. -
@Oktokolo Even better, Matlab can export code in C. I've seen that with Simulink models.
-
@Demolishun Usually it's people with M.Sc/PhD degrees working in fields like computer vision, NLP, optics, control....
They are bad at coding because it's not their specialty, they were just ordered to do so because some higher-up manager thought it was a good idea. -
DEVil6668612y@NickyBones that’s how C++ is taught in most Italian schools: everything C style (strings, array, malloc…) but with classes
Related Rants
-
xjose97x17Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966912
Hats off to this lady .... I would have just flipped the machine
My code review nightmare is reviewing C++ code that was written by Matlab people. Letting them commit code without reviewing it will surely bring Armageddon, but having to watch these horrors...
Functions signature like 'void func(int arr[3])'. Nononononono.
rant
matlab
c++
wk279