Are there guidelines on how many parameters a function should accept?
I have got class with 30 variables (it is an application form), so I wonder what is the best practice to organize class creation.
Should I use huge constructor:
MyClass mc = new MyClass(a, b, c, d)
MyClass mc = new MyClass(); mc.setA(a); mc.setB(b); mc.setC(c); mc.setD(d);
What is the best practice in OOP for such a situation? I saw a similar question, but I don't need immutability.