Feeds

Examples of good practice, or not...

Buyer beware?

  • alert
  • submit to reddit

New hybrid storage solutions

It's always an issue, when publishing tutorials, as to how much care you take about "good practice" peripheral to the main tutorial subject. What's appropriate when knocking up a quick demo to illustrate the capabilities of a new technology isn't appropriate when the new technology might end up in a business production environment - but you do need to concentrate on the main subject.

David Harper has highlighted this issue (and he might put it a bit more strongly than that) in an email; but the AJAX tutorial he's commenting on is just that, not a MySQL tutorial.

Nevertheless, his comment is well worth reading, I think:

I read part 1 of your AJAX tutorial with interest, and I'm looking forward to part 2, but as a MySQL database administrator, I winced when I saw your instructions on how to add a new user.

You should *never* insert records directly into the mysql.user table. In any case, the grant statement in your article achieves the same result as the "INSERT INTO user" statement immediately above it, and you don't need to follow a grant statement with "FLUSH PRIVILEGES".

Also, you should never routinely give users the grant privilege, since this is a gaping security hole, especially in a web application. In most situations, only the MySQL root user needs to have grant privileges.

Best regards, David Harper

Even so, although we do try hard to get things right, we also try to keep our articles reasonably short, so readers have time to read them. Which means that we can't always cover everything in detail.

I do rather hope that our professional readership isn't relying entirely on Register Developer for its professional "good practice". But, surely, professionals will already be working within a quality Development Process, supported by proper training courses?

I'll get me coat...

Security for virtualized datacentres

More from The Register

next story
Not appy with your Chromebook? Well now it can run Android apps
Google offers beta of tricky OS-inside-OS tech
Greater dev access to iOS 8 will put us AT RISK from HACKERS
Knocking holes in Apple's walled garden could backfire, says securo-chap
NHS grows a NoSQL backbone and rips out its Oracle Spine
Open source? In the government? Ha ha! What, wait ...?
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
Top 5 reasons to deploy VMware with Tegile
Data demand and the rise of virtualization is challenging IT teams to deliver storage performance, scalability and capacity that can keep up, while maximizing efficiency.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
Secure remote control for conventional and virtual desktops
Balancing user privacy and privileged access, in accordance with compliance frameworks and legislation. Evaluating any potential remote control choice.