Originally posted by: RedSquirrel
Security updates are a non issue. My class is only to connect to a mysql DB, it is not a replacement for Mysql. So if mysql has a security flaw they are the ones that have to fix it either way. It's like if there's a security issue in Apache, it does not matter if you use IE or firefox or opera and neither do those browsers need any kind of update, it's apache that needs an update.
The protocol seems easy enough to implement. I can probably get at least a basic class done easily. I don't really need any of the more advanced features like the gzip compression. Later on I can look at implimenting a huffman tree or whatever is needed for gzip, but it's my last concern. Most if all implementations run locally. It will just be awesome to have a class that works no matter what, and on any distro, without any dependencies. It will even work on Windows. Zero wrestling.
I don't think you really understand anything you are talking about. You are implementing the mysql protocol. That would be akin to you writing your own browser engine that can render html. Are you saying that the browser would be immune to security flaws in the HTML protocol because
you implemented it and it's not written by teams of programmers?
On top of that, not only do you have to worry about security holes in the protocol itself, but your code has to deal with being secure itself. There's no point in writing your class if someone can send it a malformed packet and have it crash, or better yet exploit a buffer overflow in your code to get a shell on your servers.
Are you planning on taking this approach with every piece of code you write? If so, you
really need to rethink your approach...
You are far better off learning how to use the right tools to do all the heavy lifting for you. Programmers by nature are lazy, it's always about getting the most done with the least amount of effort. Learn the tools once, use them forever or don't learn the tools and be stuck forever.
A bit of real world advice too, knowing how to implement the mysql protocol will only get you somewhere in niche markets, while knowing how to code a general purpose Linux application using general purpose tools will get you a LOT farther along. You need to have a solid foundation of the
standard tools in Linux to write a solid application.
Saying something doesn't work right because you can't be bothered to put in the time to learn how to use it is downright idiotic. There are specific tools, many of which Nothinman pointed out, to do exactly what you are having problems with.... learn them, love them, use them.