The use of final keyword with a viewModel bothered me a lot so I took my time to understand what does it do and really it does nothing and when used with a viewModel it simply adds no value.
Final is used with a singleton, utility classes but using it with a viewModel adds no value coz none would ever inherit a viewModel.
This thing is in trending these days coz everyone seems to be doing it but with a little research and technical lookup I can say that it just doesn’t add any value. Unless the team is looking for a microsecond win.
Don’t follow or implement anything blindly that you see on the internet, always ask questions.
Do you also use final with viewModel if yes please explain what benefits you got by using it? If there are none then remove the keyword
Code Cat
The use of final keyword with a viewModel bothered me a lot so I took my time to understand what does it do and really it does nothing and when used with a viewModel it simply adds no value.
Final is used with a singleton, utility classes but using it with a viewModel adds no value coz none would ever inherit a viewModel.
This thing is in trending these days coz everyone seems to be doing it but with a little research and technical lookup I can say that it just doesn’t add any value. Unless the team is looking for a microsecond win.
Don’t follow or implement anything blindly that you see on the internet, always ask questions.
Do you also use final with viewModel if yes please explain what benefits you got by using it? If there are none then remove the keyword
2 years ago | [YT] | 19