So, I'll be using a laptop for coding, while browsing and listening to music at the same time.
Will i3 2nd gen be enough for it? Or should I search for laptop with i5 2nd gen?
Depends on how much processing power you want. Core i5 CPUs have turbo boost which automatically overclocks the CPU as long as the temp is not too hot. I believe the typical auto overclock is 400MHz if one core is used or 200MHz if two cores are used.