A similar topic was posted back in 2017, but I'm sure things have changed since then: https://news.ycombinator.com/item?id=14386607
I'll be moving to Madrid for a year for non-career related reasons. I hold an EU passport and I'm fluent in both English and Spanish. My background is in data analytics (Python/R/Stata) rather than software development. That said, I would like work in tech while in Spain.
My questions: How are the Madrid and Barcelona tech sectors nowadays? What types of work are available? How are salaries? Are there any unintuitive factors to consider?
Madrid:
I'd say this is more of a working city and has less of the mad tourism / party scene. There's a good tech scene present, with plenty of meetups and an increasing number of startups. Things like Google Campus are great spots to meet like-minded people, and there is plenty of work available but you may end up in more of an 'enterprise' style place.
Barcelona:
Very, very popular with tourists. This can be a downside depending on how much you like your peace and quiet. I lived in one of the busiest places for tourism (El Born) so I ended up quite used to the chaos.
With that said, it's an extremely international city and that shows in the amount of startups, co-working spaces, and meetups. It has more of a 'tech' vibe to it. There are some downsides however in that a lot of people there are quite transient, so it can be harder to make meaningful connections.
In terms of language, since you're fluent in English and Spanish then you'll have no problem in either city. Madrid is definitely more Spanish focused, whereas in Barcelona I ended up speaking more English and French than I did Spanish weirdly. It just depends on the crowd you're in.
Happy to discuss more, or put you in touch with people / recommend places if you want. My email is in my bio.