The thing is, BCN is mostly as expensive as Berlin, but salaries seem considerably lower for developers. I love BCN, but prefer to work and live in Berlin and visit BCN once or twice a year. Berlin has a lot to offer as well, certainly no beach and pretty bad winters though.