It's a style thing. I do it because I come from C++, and because this is more to type than _. I've had a few people tell me that and frankly, it's a style choice and has no impact on performance, just code cleanliness. It doesn't "not make sense" its just like the argument about curly braces, I used to doAdding an underscore before a variable is pretty pointless in Java. You have the this keyword for a reason. Makes sense if you are programming in C# or C++ but not Java.
Java naming conventions say its bad practice and don't recommend you doing so.It's a style thing. I do it because I come from C++, and because this is more to type than _. I've had a few people tell me that and frankly, it's a style choice and has no impact on performance, just code cleanliness. It doesn't "not make sense" its just like the argument about curly braces, I used to do
function()
{
}
back in 2015 but now I do
function() {
}
I understand it doesn't follow Java's naming conventions, I do it as a personal, and conscious choice. Why fixate on one syntaxical choice though?Java naming conventions say its bad practice and don't recommend you doing so.
