Freelance Back-End Developer

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

HM04

Computer Science and Finance Student
Premium
Feedback score
3
Posts
544
Reactions
269
Resources
0
Adding 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.
 

Dyllan

Supreme
Feedback score
1
Posts
13
Reactions
2
Resources
0
Adding 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.
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() {

}
 
Last edited:

HM04

Computer Science and Finance Student
Premium
Feedback score
3
Posts
544
Reactions
269
Resources
0
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() {

}
Java naming conventions say its bad practice and don't recommend you doing so.
 

Dyllan

Supreme
Feedback score
1
Posts
13
Reactions
2
Resources
0
Java naming conventions say its bad practice and don't recommend you doing so.
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?
 
Last edited:

JacobZ

Premium
Feedback score
8
Posts
263
Reactions
46
Resources
0
10/10. Friendly dev who knows what He's doing. Delivered a quality product!
 

Ksg

Entrepreneur
Supreme
Feedback score
57
Posts
501
Reactions
219
Resources
0
I'm in need for you <3. If you could please reply to my Direct message.
 

Marc

Supreme
Feedback score
13
Posts
218
Reactions
70
Resources
0
VOUCH he helped me fix an error I’ve been having for 2 years and he’s good at coding ;)
 
Status
This thread has been locked.
Top