Re: More frustration with MySQL and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 22, 2008 11:21 AM, Jason Pruim <japruim@xxxxxxxxxx> wrote:
> I've found many times, that you can find the "how" by googling for the
> right terms... It's the "Why" that you can't learn from code... That's
> when you gotta dig into books and ask questions :)

    Not just that, but also citing something Eric said in his last
message: you learn by doing.  Not just the how's and why's of
programming, but also the when's, where's, what's and which's.  For
example:
        HOW to create a resuable object.
        WHY it's the expected result that $n = 4.1; serialize($n); may
be 4.0999999999999996447286321199499070644378662109375, but $x =
serialize($n); $x = ($x * 10); will always be 0.
        WHEN to use variable variables.
        WHERE to store your private function configuration variables.
        WHAT the hell a private function versus a public function really is.
        WHICH search function - eregi(), preg_match(), stristr(),
substr() - to use for a specific case.
        WHO is going to be reading through your code and comments, and
is it clear enough?

> So hopefully you guys are ready for some questions that I come up
> with. Maybe I'll even throw my experience into a webpage for someone
> who is learning like me... bit by bit.

    That's what Tedd does, actually.  He's got some great examples
that he puts up as time goes by.
        Check it out here: http://webbytedd.com/

> Thanks for all the help you guys provide! I vote to double the pay of
> everyone who helps here!

    The pay we get for contributing to the list?  That's floor(sin(10)).  ;-P

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since
Nineteen-Seventy-[mumble].

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux