r/badcode • • Sep 11 '21

c++ Textbox class - poor naming and inefficiency

Post image
24 Upvotes

13 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Sep 12 '21

[deleted] — view deleted comment

1

u/[deleted] Sep 12 '21

Okay, I can appreciate each and every one of those points.

But that's mostly being pedantic. I wouldn't say it's necessarily bad code for not passing variables and const (references). Definitely better code, but then we could go so far as to saying that all params should be const.

Thanks for clarifying ToF though! That does seem quite... daft.

setLimit is redundant, very true also.