That's really not enough if you're a desktop / mobile software developer that wants to use this as a laptop and tablet. 8GB is really the minimum.
You're better off with either a MacBook Air or an equivalent Windows laptop where you can actually get more memory.
Moving to SSD let me put a VM on my 8GB laptop that stole half the RAM without destroying my ability to run a couple of visual studios, office and a pile of chrome tabs. Under 4GB and spinning disk that was unworkable.
RAM needs might be stagnating for a few years as high-performance flash becomes commonplace and applications don't have to be as aggressive about keeping everything in memory.
And what if my working set is incapable of fitting into that measly 4G of memory (which likely will only be 3GB at most once the OS and Visual Studio is loaded) even with swapping? I can tell you right now that's easy to do with Visual Studio with even "relatively" small applications once you start loading debug symbols.