As others have said, your intended use will dictate your barrel length and muzzle adornment. There are flash hiders, compensators, brakes, and various combinations. Flash hiders are supposed to hide the flash. Compensators reduce muzzle rise, and brakes reduce recoil. They all direct noise back to the shooter. Noise level is ususally proportionate to effectiveness.
When I'm running drills and plinking (with ear protection) I enjoy the short 16". For longer range work, 18" and 20" fill the bill. If I were building a designated coyote rifle, for shootig without ear protection, I'd build a 20" or longer and leave the muzzle bare.
_________________________
Alcohol, Tobacco & Firearms: Should be a convenience store, not a government agency!