If you take on d4 and he takes with the queen, you can attack it with the knight, Nc6 and the queen has to move again, giving you another tempo to move another piece out. This is good for black.
More common is the Smith Morra Gambit, c3 after cxd4 with the idea of giving up the pawn for quick development after dxc4 Nxc3.
I am just learning the sicilian defense. I am a beginner and my friend is similar to me (he is my opponent).
He always opens kings pawn as white. So I thought I would try learning sicilian defense, since it is a strong counter I have heard.
So he moves e4, then I move pawn c5, then he moves pawn d4.
In the tutorial I saw on sicilian, my move to c5 was prvent him moving pawn to d4. But he does anyway and it seems like I don't know how to capitalize on this move.
Should I just take his pawn on d4? Then he takes d4 back with queen, and I have lost all presence in the middle of the board.
Now if I just let him move to d4, and my following move is D6, I feel like he has so much better control of center.