Even within the software industry, your mileage may vary. There can be plenty of jobs where the company isn't too bothered about long term staff, for various reasons (sometimes, a staff member staying longer than a year gets additional entitlements) - if the company is working on lots of short term project, some of the downside of staff turnover is mitigated.
However, if you've had a history of jumping around and are now trying to ensure long term employment, you're going to be applying at places that offer that security. And they will want a similar security in return.
As for your friend - hopefully she is lining up a new job before leaving each one. She might be selective in where she applies, or might just cast a broad net to find the few employers who don't care.
Frankly, 5 jobs (as opposed to 5 contracts, for example) in 5 years as a developer is a huge red flag to me as a hiring manager - I know people do move on for advancement, but I'm looking for someone who will stick around at least 2 or 3 years (hopefully longer). But as well as the risk of the candidate short-timing their stay, job-hopping can also be an indicator that the candidate has issues working in organisations, and could cause problems within a team through their employment. Of course, anyone who could come up with decent reasons for the job-hopping can mitigate any red flags.
At the end of the day, though, even if leaving all those companies went reasonably amicably, eventually the job-hopper may well exhaust local opportunities.