I looking for a lap top for programming purpose
One that's under $500 and has all the specs required for programming is the Toshiba Portege Z30- C1320, a 13.3 inch Ultrabook. It's got an SSD with 256 gigs, and the battery lasts 15 hours. A very good example of what you should be looking for.
its look good but I am interuted in HP elite book
While it is more costly, that pick will get you more customizability options, as well as better out-of-the-box specs, especially an SSD with twice the capacity. It's been criticized by some as having a brightness issue. Will that be a bother?
I heard that elite book have some issue running Visual studio 
Hopefully the fixes that Visual has been implementing will make the experience much better. They've recently reported that it should be easier to run on any platform.
another issue I think is that a programmer need bigger display ad these laptop have 13.4
The EliteBook Folio 1040 G2 is a 14-inch business-class notebook, and may fit all of your needs. It has a 500GB SSD, and many quality-of-life perks that my make it easy to use for programming.
I just learnd that hp recommend HP ZBook x2 detachable laptop for development
It is a powerful workstation, but has a steep price hovering around $2,000-4,000. However, it has great customizability options, and you may use this as something of a reliable unit for programming for a number of years. I would recommend making use of the SSD slots you have open, so that you can use it as a storage machine for your projects.