RE: [Share] Useful Codes 02-28-2013, 09:22 AM
#9
(02-28-2013, 09:18 AM)cxS Wrote:(02-28-2013, 09:10 AM)BreShiE Wrote: This thread teaches some very bad coding habits, as cxS has already pointed out. For example, he's telling you to use WebBrowsers instead of WebClients. It's a nice thread for the noobies who just Copypasta their code, but for someone who would like to learn, this thread is awful, haha.
WebBrowser isn't horrible, even though it uses an old version of IE. The problem is the way people use it. For doing things on the web that don't require the visual. And for people that add a WebBrowser to use it with Visible property set to false, that's even worse.
Why load all the elements and parse them out on a webpage if you don't need to take an HTTP request that far?
Well, yeah that's what I meant. If you need a GUI to go along with what you're doing, then it's fine, but if you only need 1 certain string from the request, then use WebRequests. There's no point loading a whole control when you're not going to use it for its purpose. It's a waste of resources and time.