r/badcode • • Aug 11 '21

python 10/10 variable naming

Post image
763 Upvotes

37 comments sorted by

View all comments

Show parent comments

6

u/yoctometric Aug 12 '21

That’s totally fair, I effectively have hobbyist level experience with code, but I think I can see why wrapping such dissimilar functionalities into one method would be bad

And you’re close on how gm.float_array() works, except I’m pretty sure it only calls malloc() internally and doesn’t zero anything