Coincidentally, GM Gserper answered your question with his most recent article! Just keep the idea of a sacrifice on f7/f2 in mind when you have actively-developed pieces against a cramped position and an uncastled king.
Position Analysis: Bishop sacrifice on f7
Sort:
The sacrifice on f2/f7 is indeed a classic pattern.
Right here, the point is that Bxf7+ Kxf7 Ng5+ is followed (whatever Black plays) by Ne6 after which Nxc7 is a threat etc. If the d7 knight was still on b8, it wouldn't be correct I think.
Houdini's 25-ply evaluation:
Bxf7+ = 2.19
Ng5 = 1.70
e5 = 1.42
Qe2 = 0.73
How do you find a move like this in a game?