Target the recommendation. Is it for an academic post, a job, a volunteer position, a background check, or a personal reference? Write your letter so that it is focused on this purpose. For example, if the letter is part of a job application package, it should focus on the professional qualifications and conduct of the candidate.
The most effective letters of recommendation are written by professors or work supervisors who know you well enough to describe your academic, personal, or professional achievements and potential with candor, detail, and objectivity. Letters that compare you to your academic peers are often the most useful. Most schools do not consider general, unreservedly praiseworthy letters helpful.