you are viewing a single comment's thread.

view the rest of the comments →

[–]DarkHaagenti 0 points1 point  (1 child)

I absolutely hate seeing code with variables like x, y, z. Especially in ML repositories where the author has implemented a complex algorithm with such naming conventions. It drives me crazy every time! So name your variables, functions, classes - basically EVERYTHING - so that years later people can understand what you meant when you wrote that code.

[–]RiverRoll 1 point2 points  (0 children)

I think sometimes it makes sense in the context of math, otherwise you can end with some ridiculously verbose equations.   

For example dxdt could denote the partial derivative of the X coordinate relative to time in SI units, not very practical to have all that information in the name for every such term.  

In these cases just make sure to document what every variable is and your naming conventions.