Vim can save a session via :mksession file_name.vim which can then be restored by vim -S file_name.vim
It's nice when I have to quit programming while in the middle of task where I'm drowned in context spread across multiple tabs and splits. I'm not trying to spread the Vim gospel; this feature is nothing really extraodinary so I guess it's available in other editors/IDEs as well.
Overall this is roughly equivalent to putting your machine to sleep mode while your edition session is still on.
My personal opinion is that both methods make OP's look pretty primitive and hacky.