Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 6, 2007, 08:11 AM   #1
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
Teach Yourself MySQL? More Like Teach Yourself To Go Crazy

Okay,

I have this book, "Teach Yourself SQL in 21 Days, 4th Edition" and it's driving me nuts. It's just sloppily written overall. The inconsistency between the SQL statements and the MySQL statements is driving me nuts.

An perfect example is when they introduce the Substring function. Rather than using the MySQL substring function, the authors decided to complicate things by using the mid() function and tossing a small disclaimer at the bottom saying "oh, by the way, we used this one instead, even though mid() and substring do the same thing"

Leaving me wondering, "Why are you doing this? please, let's keep things on the same track for the sake of sanity and clarity! If anything mention the mid() function as a bit of trivia!"

I don't want people to get the wrong idea and think I just don't understand it, but I read the book and just wonder aloud why the authors felt compelled to make things more complicated. Did they think it would make them sound smarter?

Avoid this book at all costs, or purchase and read with careful consideration.
SC68Cal is offline   Reply With Quote
Old Jun 6, 2007, 11:37 AM   #2
hawaiian
macrumors member
 
Join Date: May 2007
Location: Born and raised in Honolulu. Currently living in Tokyo.
Yeah, SQL can be a pain. But remember that there are varying "dialects" of SQL out there so that might explain differences that you see between MS-SQL, MySQL, and other versions.

I can't say anything about the book being written poorly or not, but in defense of using mid(), it's a good thing to know that such a function exists since you're likely to encounter code that uses it. But I totally understand what you mean about the approach that they give to explaining alternative functions.

It might be easier to treat this as you would any language by first learning the grammar and then building up your vocabulary. Whatever works though. Good luck.

Last edited by Mitthrawnuruodo : Jun 7, 2007 at 09:35 AM. Reason: No need to quote the OP in full
hawaiian is offline   Reply With Quote
Old Jun 6, 2007, 11:40 AM   #3
keysersoze
macrumors 65816
 
Join Date: Jan 2004
I can't offer much. But I did enjoy reading Rixstep reviews. Very enjoyable!
__________________
i love brits

keysersoze is offline   Reply With Quote
Old Jun 6, 2007, 08:58 PM   #4
stndn
macrumors member
 
Join Date: Oct 2006
Location: earth
As a general rule, most "Teach yourself <insert something here> in n hours/days/weeks" are more confusing than helpful. Same can be said to those dummies books, although I have to admit some of them are not bad.

The problem with those books are that they only touch the surface and teach you the basics, leaving you to wonder if there's alternatives. Sometimes they will even toss some 'advanced stuffs' there and let you dissect them one by one just to figure out what they meant to accomplish. They're often aimed at beginners who will just take things for granted and not question why something is done their way and not the other.

Personally, I like learning from reference books like those from o'reilly, despite them being very technical (of course, me being from a technical background helps). Pocket references are not too helpful, but those thick books really help.

Otherwise, with the current state of the internet, there are tons of tutorials out there that you can look up, and read at your leisure. Of course, have to be careful not to read on the tutorials written by beginners thinking they have accomplished so much by hacking up a guestbook written in some language they happened to stumble upon.


-stndn.
stndn is offline   Reply With Quote
Old Jun 6, 2007, 09:30 PM   #5
jng
macrumors 65816
 
jng's Avatar
 
Join Date: Apr 2007
Location: Germany
I personally love the "teach yourself..." series. All I really need is to scan the surface. Then again, I'm principally a designer, not a developer. And they're the cheapest. The others are too expensive to just be sitting in a shelf (which is where most of the books go after I'm done with them).


Whenever I had more complicated code, I tended to use another reference: the internet. Lots of great boards/forums out there to help you debug stuff.
__________________
Cheers 2.33 C2D 15.4" MacBook Pro 2GB RAM
jng is offline   Reply With Quote
Old Jun 7, 2007, 04:25 AM   #6
SC68Cal
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
These are huge huge huge errors in the book though.

For instance, on one page, they try to explain the avg function by doing a baseball example

The SQL code goes something like this (pseudo-code)

SELECT all players with a batting average >= .300

The example for the MySQL example, which is supposed to express the exact same operation, just demonstrate how you do it in MySQL

SELECT all players with a batting average < .300

The book is just godawful, full of mistakes AND IT IS THE 4TH EDITION!
SC68Cal is offline   Reply With Quote
Old Jun 7, 2007, 09:32 AM   #7
jng
macrumors 65816
 
jng's Avatar
 
Join Date: Apr 2007
Location: Germany
Yeah but anybody with common sense would spot such errors. It's the syntax ones that kill the newbies.

I've rarely encountered CS books that were error free. Even expensive ones I bought for a CS class were riddled with errors.

For $20, I just want a decent starting guide. I don't even use them for reference. That's what php.net and the likes are for.
__________________
Cheers 2.33 C2D 15.4" MacBook Pro 2GB RAM
jng is offline   Reply With Quote
Old Jun 7, 2007, 11:20 AM   #8
notjustjay
macrumors 68030
 
notjustjay's Avatar
 
Join Date: Sep 2003
Location: Canada, eh?
I second the mention of O'Reilly books. They have taught me C programming (the cow book), PHP, shell scripting, and all kinds of other stuff. Just about any Perl programmer can tell you about the "Camel book".

I don't even look for other books anymore. If I need to learn something, I look for the O'Reilly book on that topic.
__________________
MRoogle
notjustjay is offline   Reply With Quote
Old Jun 8, 2007, 04:11 PM   #9
SC68Cal
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
Quote:
Originally Posted by jng View Post
Yeah but anybody with common sense would spot such errors. It's the syntax ones that kill the newbies.

I've rarely encountered CS books that were error free. Even expensive ones I bought for a CS class were riddled with errors.

For $20, I just want a decent starting guide. I don't even use them for reference. That's what php.net and the likes are for.
Really? Didn't know errors and typos were widespread. No wonder stuff like windows comes along then.

I like having a fat reference guide like "The Complete Reference" series for stuff like SQL and PHP since it gives me most of the functions that I can page through, rather than having to do searches on the web. Get ideas as I turn the pages.

I also like the "Visual QuickPro Guide" series for "Creating Dynamic Websites with PHP and MySQL" because it is set up like a "case study" where we focus on just one website, that in each chapter gets added functionality on top of what was discussed in the previous chapter.

It gave me the ability to look at the author's code for how he did specific implementations, such as using PHP Sessions rather than cookies, and how to transition your code from one system to another
SC68Cal is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:45 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC