It seems that all laptop manufacturers go through bad patches; HP's laptop build quality has been crap in recent years.
If you want to check this, go on to eBay and search laptops by brand. Filter by "condition: used" and then "condition: for parts or not working" and make a note of the ratio. Last time I looked at this HP and Acer were the worst, Dell and Toshiba had better reliability.