Navigate to System Preferences > Sound.
Click on the Sound Effects tab to navigate to Sound Effect Preferences.
Uncheck the box labeled Play feedback when volume is changed. Then, close System Preferences and enjoy the silence!
I always keep an eye on my MacBook's battery percentage—especially since, as a developer, I run a lot of resource-intensive applications.