Is fewer lines of code always better?
I really like Junilu's answer to this and am tempted to say no more on the matter. The book cites various research on recommended maximum sizes for blocks of code (it varies depending on who you ask), but it's interesting to note there's not nearly as much advice concerning recommended
minimum size. That might tell you something about the attitude towards keeping routines as short as necessary but no shorter (to
paraphrase Einstein).
Can you list some example of tools here ?
Pages 4-7 of the book discuss tools. You can read them on the free preview on Amazon (
https://www.amazon.com/Bad-Programming-Practices-101-Learning/dp/1484234103).
Have you ever heard about Alibaba Java source guideline ? Will it be an advantage to follow this guideline ?
I haven't heard of it. Judging from its GitHub page, it was made public shortly after I begun working on my book. Guidelines are important, but as Junilu says, it's important to understand the reason behind a coding rule (and thus understand what problems it's encouraging you to avoid) before following it.