Click the Apple icon in the top left of your screen and select System Preferences.
Click General to access the General Preferences pane.
Uncheck the Allow Handoff between this Mac and your iCloud devices option. You're all done!
I always keep an eye on my MacBook's battery percentage—especially since, as a developer, I run a lot of resource-intensive applications.