+ 2

What is good practice?

Because I want to write with less effort, sometimes I make my own function. It contains only one line and it is original function(for example,”System.out.println...”). But its name(for example,”hyoji...”)is shorter than one of original function. I can write same program with fewer characters. Is it a good habit?or I’m only a lazy? And,where can I learn “good practice”?

28th Jan 2019, 3:07 PM
stilts
stilts - avatar
2 ответов
+ 4
Nope, because later on, if another programmer starts working on your program will get confused, and you want to minimize confusion in large programs... Something that language defined for you use it as it is
28th Jan 2019, 3:17 PM
Elva
Elva - avatar
+ 5
Thanks. I’ll be careful to write any programs anyone else can read them easily.
28th Jan 2019, 9:59 PM
stilts
stilts - avatar