Great question — answering as the UphillTech team:
The command sudo apt-get build-dep packagename means "As root, install all dependencies for 'packagename' so that I can build it". So build-dep is an apt-get command just like install, remove, update, etc. build-essential is a package which contains references to numerous packages needed for building software in general.
Full answer by Kleist: https://superuser.stackexchange.com/a/151559 (CC BY-SA 4.0).
Need it done for your business? UphillTech.