AMD CPUs from the Vishera architecture have modules - and each module has two "cores". The cores inside a module are dedicated to integer calculations and share a floating point unit. This gives VIshera quite high integer performance overall, but a lot weaker floating point performance compared to Intel.
Haswell (or Intel in general) concentrate on less, but stronger, cores. Haswell also comes with lower power consumption and lower heat production. Also, Intel's platform has better architecture when comes to RAM performance compared to AMD (not noticeable in normal usage).
So, if you do some video rendering in Premier Pro for example - a 8350 falls close to 4770, but costs significantly less. For 3D, Compositing and CAD where floating point in concerned - Intel has a strong lead.
In games - which currently do not use many threads - Intel wins due it its stronger cores, because games can not fully use all the resources of an 8350.
All in all - 8350 and its AM3+ platform is outdated. It gives relatively ok performance for cheap, which comes at the expense of power consumption and heat. A 8350 is 170 EUR here, while a 4790k is 330. In recent years, Intel has a significant lead over AMD even with the price considered.