+ 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â?
2 Answers
+ 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
+ 5
Thanks.
Iâll be careful to write any programs anyone else can read them easily.