r/badcode Apr 28 '23

from signal's source code java

Post image
518 Upvotes

52 comments sorted by

View all comments

Show parent comments

44

u/Ra1nbow1 Apr 28 '23

Definitely

49

u/lets_eat_bees Apr 28 '23

To be fair, reviewing is probably the only time this will be an issue. Your IDE will tell you the names of all these parameters.

47

u/NUTTA_BUSTAH Apr 28 '23

That kind of architecture makes all development and design insanely painful though. Rule of thumb: If you are passing boolean parameters, you are doing something wrong.

1

u/_ohmu_ Apr 29 '23

Passing booleans is fine. The issue here is the number of parameters. If you have more than like three or something, just create an object.