r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
java Apparently Java can only handle 255 parameters in a constructor...
4.0k
Upvotes
r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
View all comments
Show parent comment
2
u/deegeese Apr 08 '21
You’re proving my point.
A math function that takes a dozen parameters for the matrix elements is a bad design because they could just pass an array.
When Python functions take a ton of parameters, it’s usually because most of them are optional and it’s just syntactic sugar vs passing a dict for configs.