FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Books?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Books? [message #177335] Wed, 14 March 2012 18:37 Go to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
What are some good PHP books? I've been reading the manual on PHP.net and it
looks pretty basic.


W. Pooh (AKA Winnie P.)
Re: Books? [message #177336 is a reply to message #177335] Wed, 14 March 2012 19:19 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Christopher M. wrote:
> What are some good PHP books? I've been reading the manual on PHP.net and it
> looks pretty basic.
>

What more do you need?


>
> W. Pooh (AKA Winnie P.)
>
>


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: Books? [message #177337 is a reply to message #177336] Thu, 15 March 2012 01:27 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
"The Natural Philosopher" <tnp(at)invalid(dot)invalid> wrote in message
news:jjqr0i$vg$4(at)news(dot)albasani(dot)net...
> Christopher M. wrote:
>> What are some good PHP books? I've been reading the manual on PHP.net and
>> it looks pretty basic.
>>
>
> What more do you need?

Well, I was hoping to find something with a certain depth that would show
how to declare an array such as:
$myobject[] = new myclass();


W. Pooh (AKA Winnie P.)
Re: Books? [message #177338 is a reply to message #177337] Thu, 15 March 2012 03:51 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Christopher M. wrote:
> "The Natural Philosopher" <tnp(at)invalid(dot)invalid> wrote in message
> news:jjqr0i$vg$4(at)news(dot)albasani(dot)net...
>> Christopher M. wrote:
>>> What are some good PHP books? I've been reading the manual on PHP.net and
>>> it looks pretty basic.
>>>
>> What more do you need?
>
> Well, I was hoping to find something with a certain depth that would show
> how to declare an array such as:
> $myobject[] = new myclass();
>
>

Well it looks like you just did.. :-)


> W. Pooh (AKA Winnie P.)
>
>
>


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: Books? [message #177339 is a reply to message #177335] Thu, 15 March 2012 09:07 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 14.03.2012 19:37, schrieb Christopher M.:
> What are some good PHP books? I've been reading the manual on PHP.net and it
> looks pretty basic.
>
>
> W. Pooh (AKA Winnie P.)

The "philosopher" is generally against books, he will tell you you don't need one.

I think you always can learn "something" even from a mediocre book, and you need all
kinds of input you can get to learn a programming language.

I have yet to find a good book on PHP. The social environment of PHP has led to a
deluge of beginner books.

Maybe http://www.codewalkers.com/c/b/PHP-Book-Reviews/ gives some clues.

/Str.
Re: Books? [message #177340 is a reply to message #177337] Thu, 15 March 2012 10:03 Go to previous messageGo to next message
Paul Herber is currently offline  Paul Herber
Messages: 26
Registered: February 2011
Karma: 0
Junior Member
On Wed, 14 Mar 2012 21:27:35 -0400, "Christopher M." <nospam_flibbity(at)floo(dot)com> wrote:

>
> "The Natural Philosopher" <tnp(at)invalid(dot)invalid> wrote in message
> news:jjqr0i$vg$4(at)news(dot)albasani(dot)net...
>> Christopher M. wrote:
>>> What are some good PHP books? I've been reading the manual on PHP.net and
>>> it looks pretty basic.
>>>
>>
>> What more do you need?
>
> Well, I was hoping to find something with a certain depth that would show
> how to declare an array such as:
> $myobject[] = new myclass();

O'Reilly's PHP Cookbook is worth looking at.


--
Regards, Paul Herber, Sandrila Ltd.
http://www.sandrila.co.uk/
Re: Books? [message #177341 is a reply to message #177335] Thu, 15 March 2012 12:54 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 3/14/2012 11:37 AM, Christopher M. wrote:
> What are some good PHP books? I've been reading the manual on PHP.net and it
> looks pretty basic.
>
>
> W. Pooh (AKA Winnie P.)
>
>
In the beginning this book gave me a good step up.

http://www.amazon.com/PHP-MySQL-Web-Development-Edition/dp/0672329166/ref=s r_1_1?ie=UTF8&qid=1331815807&sr=8-1

It delves into both PHP AND mysql from a beginners standpoint.


And of course don't negate this newsgroup. Even though you will get some
flames from self-declared professionals, as long as you are trying to
put the work in, there are many knowledgeable people here who have been
coding for several years.

Just don't take any attacks too personal, as some here, this is there
life to make a mark for themselves.

Scotty
Re: Books? [message #177342 is a reply to message #177339] Thu, 15 March 2012 15:54 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
M. Strobel wrote:
> Am 14.03.2012 19:37, schrieb Christopher M.:
>> What are some good PHP books? I've been reading the manual on PHP.net and it
>> looks pretty basic.
>>
>>
>> W. Pooh (AKA Winnie P.)
>
> The "philosopher" is generally against books, he will tell you you don't need one.
>

I am not 'generally against books'. But...if you already know how to
program, a language reference is all you need, and if you don't already
know how to program, is PHP the place to be starting?
But as you say..

" The social environment of PHP has led to a deluge of beginner books."

and if thats what the OP wants fair enough - "hello world" in PHP?


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: Books? [message #177343 is a reply to message #177340] Thu, 15 March 2012 18:12 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
Paul Herber wrote:
> On Wed, 14 Mar 2012 21:27:35 -0400, "Christopher M."
> <nospam_flibbity(at)floo(dot)com> wrote:
>
>>
>> "The Natural Philosopher" <tnp(at)invalid(dot)invalid> wrote in message
>> news:jjqr0i$vg$4(at)news(dot)albasani(dot)net...
>>> Christopher M. wrote:
>>>> What are some good PHP books? I've been reading the manual on
>>>> PHP.net and it looks pretty basic.
>>>>
>>>
>>> What more do you need?
>>
>> Well, I was hoping to find something with a certain depth that would
>> show how to declare an array such as:
>> $myobject[] = new myclass();
>
> O'Reilly's PHP Cookbook is worth looking at.

Thanks, dude. You rock.


W. Pooh (AKA Winnie P.)
Re: Books? [message #177344 is a reply to message #177341] Thu, 15 March 2012 18:14 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
Scott Johnson wrote:
> On 3/14/2012 11:37 AM, Christopher M. wrote:
>> What are some good PHP books? I've been reading the manual on
>> PHP.net and it looks pretty basic.
>>
>>
>> W. Pooh (AKA Winnie P.)
>>
>>
> In the beginning this book gave me a good step up.
>
> http://www.amazon.com/PHP-MySQL-Web-Development-Edition/dp/0672329166/ref=s r_1_1?ie=UTF8&qid=1331815807&sr=8-1
>
> It delves into both PHP AND mysql from a beginners standpoint.
>
>
> And of course don't negate this newsgroup. Even though you will get
> some flames from self-declared professionals, as long as you are
> trying to put the work in, there are many knowledgeable people here
> who have been coding for several years.
>
> Just don't take any attacks too personal, as some here, this is there
> life to make a mark for themselves.
>
> Scotty

I have that one already.


W. Pooh (AKA Winnie P.)
Re: Books? [message #177345 is a reply to message #177342] Thu, 15 March 2012 19:04 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 15.03.2012 16:54, schrieb The Natural Philosopher:
> M. Strobel wrote:
>> Am 14.03.2012 19:37, schrieb Christopher M.:
>>> What are some good PHP books? I've been reading the manual on PHP.net and it looks
>>> pretty basic.
>>>
>>>
>>> W. Pooh (AKA Winnie P.)
>>
>> The "philosopher" is generally against books, he will tell you you don't need one.
>>
>
> I am not 'generally against books'.

My apologies. I confounded you for a moment with Mr. Spock.

/Str.
Re: Books? [message #177346 is a reply to message #177342] Thu, 15 March 2012 22:23 Go to previous messageGo to next message
Call Me Tom is currently offline  Call Me Tom
Messages: 9
Registered: August 2011
Karma: 0
Junior Member
On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
<tnp(at)invalid(dot)invalid> wrote:

[SNIP]
>
> I am not 'generally against books'. But...if you already know how to
> program, a language reference is all you need, and if you don't already
> know how to program, is PHP the place to be starting?
[SNIP]

Fair Enough. I am interested in learning how to program. I want to
learn from home. Where do you suggest I begin?
Re: Books? [message #177347 is a reply to message #177346] Thu, 15 March 2012 23:36 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article <snq4m7djqvu4em424v5bs5rj7qjbv7o5ta(at)4ax(dot)com>,
Call Me Tom <noemail(at)nowhere(dot)com> wrote:

> On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> wrote:
>
> [SNIP]
>>
>> I am not 'generally against books'. But...if you already know how to
>> program, a language reference is all you need, and if you don't already
>> know how to program, is PHP the place to be starting?
> [SNIP]
>
> Fair Enough. I am interested in learning how to program. I want to
> learn from home. Where do you suggest I begin?

You mean you know nothing at all about programming?

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Re: Books? [message #177348 is a reply to message #177347] Fri, 16 March 2012 00:53 Go to previous messageGo to next message
Call Me Tom is currently offline  Call Me Tom
Messages: 9
Registered: August 2011
Karma: 0
Junior Member
On Thu, 15 Mar 2012 23:36:34 +0000, Tim Streater
<timstreater(at)greenbee(dot)net> wrote:

> In article <snq4m7djqvu4em424v5bs5rj7qjbv7o5ta(at)4ax(dot)com>,
> Call Me Tom <noemail(at)nowhere(dot)com> wrote:
>
>> On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
>> <tnp(at)invalid(dot)invalid> wrote:
>>
>> [SNIP]
>>>
>>> I am not 'generally against books'. But...if you already know how to
>>> program, a language reference is all you need, and if you don't already
>>> know how to program, is PHP the place to be starting?
>> [SNIP]
>>
>> Fair Enough. I am interested in learning how to program. I want to
>> learn from home. Where do you suggest I begin?
>
> You mean you know nothing at all about programming?

Tim,

I have created a website with PHP/MySQL ( corporateairamerica.com ).

I would say I did it by manipulating portions of the language. Good
programming techniques would be coincidental. While the site works,
I'm sure a professional programmer would see many problems. I do this
as a hobby, not a profession. However, I would like to do it right.

Tom
Re: Books? [message #177349 is a reply to message #177346] Fri, 16 March 2012 09:57 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Call Me Tom wrote:
> On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> wrote:
>
> [SNIP]
>> I am not 'generally against books'. But...if you already know how to
>> program, a language reference is all you need, and if you don't already
>> know how to program, is PHP the place to be starting?
> [SNIP]
>
> Fair Enough. I am interested in learning how to program. I want to
> learn from home. Where do you suggest I begin?

ah..


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: Books? [message #177350 is a reply to message #177348] Fri, 16 March 2012 13:07 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 3/16/2012 1:53 AM, Call Me Tom wrote:
> On Thu, 15 Mar 2012 23:36:34 +0000, Tim Streater
> <timstreater(at)greenbee(dot)net> wrote:
>
>> In article<snq4m7djqvu4em424v5bs5rj7qjbv7o5ta(at)4ax(dot)com>,
>> Call Me Tom<noemail(at)nowhere(dot)com> wrote:
>>
>>> On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
>>> <tnp(at)invalid(dot)invalid> wrote:
>>>
>>> [SNIP]
>>>>
>>>> I am not 'generally against books'. But...if you already know how to
>>>> program, a language reference is all you need, and if you don't already
>>>> know how to program, is PHP the place to be starting?
>>> [SNIP]
>>>
>>> Fair Enough. I am interested in learning how to program. I want to
>>> learn from home. Where do you suggest I begin?
>>
>> You mean you know nothing at all about programming?
>
> Tim,
>
> I have created a website with PHP/MySQL ( corporateairamerica.com ).
>
> I would say I did it by manipulating portions of the language. Good
> programming techniques would be coincidental. While the site works,
> I'm sure a professional programmer would see many problems. I do this
> as a hobby, not a profession. However, I would like to do it right.
>
> Tom

Hi Tom,

I think you can do thousands of roads.
It really depends on what you want to achieve.

A few considerations for you that pop into my head that are general in
nature:

Pick a language:
Are you sure you want to study PHP further?
Why not C or C++ or Java or etc.etc.?
If you want to focus on webtechnology, there is also MS dotnet and Ruby
On Rails, and etc.etc.
Not that I want to send you elsewhere. :-)
But why do you pick PHP? Because it is easy?
I know it is very hard to tell upfront what language is good for you
(since you don't know the others), but it certainly is worth some thought.
PHP is very web focussed. You will never write a device driver in PHP,
or a cool piece of 3D graphics software.
But for the web, PHP is very good.


Framework or no Framework?
These days many people work with frameworks. Frameworks have the
advantage of hiding complexity, but they add bureaucracy, in some cases
to the level that programming is no fun anymore, a situation that should
be avoided at all costs.
If you want to learn, I suggest you do it without frameworks. Later on,
when you made a lot of costly mistakes, you will be in a much better
position to decide if you need one (or even write your own.).


Try to work modular/components/objects.
I express myself vaguely on purpose.
Bottonline: If you think you solved some particular problem do the
following:
1) sit back and take a cup of coffee.
2) Try to describe what you just did. What kind of input are you taking?
What problem did you solve? WHat types of output can you produce? etc.
3) Pull the thing OUT of your code, and make a class for it, or a
function, or whatever suits your needs.
Then use that new component from within your code.
Also: Document it, store it somewhere where you can find it, preferably
with some clear description attached to it.
You don't want to wander through your "clever classes" directory and see
names like:
Test23_ver2
MyGodmodule
MyEmailer_ver2(I think)
myEmailer
Emailer
etc.
If you do this right, you will end up with a bunch of classes and
functions you will be proud of. You can even add funky stuff like
unittesting later on.

And last:
Let others review your code.
Let others review your code!
(3 times more)
Simply post in here a function, even a whole script, or some approach
you have just finished, and ask for opinions.
Don't use an online forum, most I have seen are poor and filled with
people who want to score karma-points or some other useless nonsense.
This group is pretty good.

There exist as many programming-styles as there are programmers.
Nonetheless, you will make rookie-mistakes, and more experienced
programmers will catch them easily (mostly because they made the same
mistakes themselves earlier.).
Don't be shy and remember most experienced programmers became
experienced by having their OWN code reviewed (in a public forum or in
private, doesn't matter).
For example: Do you really need to have your website screwed up by some
SQL injection to learn to escape your input? Of course not: if somebody
tells you how that works, and you understand it, it comes natural. But
first you must have heard of the concept SQL injection.

Oh well, I talk too much. :-)

Good luck.

Regards,
Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: Books? [message #177351 is a reply to message #177350] Fri, 16 March 2012 20:17 Go to previous messageGo to next message
Call Me Tom is currently offline  Call Me Tom
Messages: 9
Registered: August 2011
Karma: 0
Junior Member
On Fri, 16 Mar 2012 14:07:15 +0100, Erwin Moller
<erwinmollerusenet(at)xs4all(dot)nl> wrote:

> On 3/16/2012 1:53 AM, Call Me Tom wrote:
>> On Thu, 15 Mar 2012 23:36:34 +0000, Tim Streater
>> <timstreater(at)greenbee(dot)net> wrote:
>>
>>> In article<snq4m7djqvu4em424v5bs5rj7qjbv7o5ta(at)4ax(dot)com>,
>>> Call Me Tom<noemail(at)nowhere(dot)com> wrote:
>>>
>>>> On Thu, 15 Mar 2012 15:54:41 +0000, The Natural Philosopher
>>>> <tnp(at)invalid(dot)invalid> wrote:
>>>>
>>>> [SNIP]
>>>> >
>>>> > I am not 'generally against books'. But...if you already know how to
>>>> > program, a language reference is all you need, and if you don't already
>>>> > know how to program, is PHP the place to be starting?
>>>> [SNIP]
>>>>
>>>> Fair Enough. I am interested in learning how to program. I want to
>>>> learn from home. Where do you suggest I begin?
>>>
>>> You mean you know nothing at all about programming?
>>
>> Tim,
>>
>> I have created a website with PHP/MySQL ( corporateairamerica.com ).
>>
>> I would say I did it by manipulating portions of the language. Good
>> programming techniques would be coincidental. While the site works,
>> I'm sure a professional programmer would see many problems. I do this
>> as a hobby, not a profession. However, I would like to do it right.
>>
>> Tom
>
> Hi Tom,
>
> I think you can do thousands of roads.
> It really depends on what you want to achieve.
>
> A few considerations for you that pop into my head that are general in
> nature:
>
> Pick a language:
> Are you sure you want to study PHP further?
> Why not C or C++ or Java or etc.etc.?
> If you want to focus on webtechnology, there is also MS dotnet and Ruby
> On Rails, and etc.etc.
> Not that I want to send you elsewhere. :-)
> But why do you pick PHP? Because it is easy?
> I know it is very hard to tell upfront what language is good for you
> (since you don't know the others), but it certainly is worth some thought.
> PHP is very web focussed. You will never write a device driver in PHP,
> or a cool piece of 3D graphics software.
> But for the web, PHP is very good.
>
>
> Framework or no Framework?
> These days many people work with frameworks. Frameworks have the
> advantage of hiding complexity, but they add bureaucracy, in some cases
> to the level that programming is no fun anymore, a situation that should
> be avoided at all costs.
> If you want to learn, I suggest you do it without frameworks. Later on,
> when you made a lot of costly mistakes, you will be in a much better
> position to decide if you need one (or even write your own.).
>
>
> Try to work modular/components/objects.
> I express myself vaguely on purpose.
> Bottonline: If you think you solved some particular problem do the
> following:
> 1) sit back and take a cup of coffee.
> 2) Try to describe what you just did. What kind of input are you taking?
> What problem did you solve? WHat types of output can you produce? etc.
> 3) Pull the thing OUT of your code, and make a class for it, or a
> function, or whatever suits your needs.
> Then use that new component from within your code.
> Also: Document it, store it somewhere where you can find it, preferably
> with some clear description attached to it.
> You don't want to wander through your "clever classes" directory and see
> names like:
> Test23_ver2
> MyGodmodule
> MyEmailer_ver2(I think)
> myEmailer
> Emailer
> etc.
> If you do this right, you will end up with a bunch of classes and
> functions you will be proud of. You can even add funky stuff like
> unittesting later on.
>
> And last:
> Let others review your code.
> Let others review your code!
> (3 times more)
> Simply post in here a function, even a whole script, or some approach
> you have just finished, and ask for opinions.
> Don't use an online forum, most I have seen are poor and filled with
> people who want to score karma-points or some other useless nonsense.
> This group is pretty good.
>
> There exist as many programming-styles as there are programmers.
> Nonetheless, you will make rookie-mistakes, and more experienced
> programmers will catch them easily (mostly because they made the same
> mistakes themselves earlier.).
> Don't be shy and remember most experienced programmers became
> experienced by having their OWN code reviewed (in a public forum or in
> private, doesn't matter).
> For example: Do you really need to have your website screwed up by some
> SQL injection to learn to escape your input? Of course not: if somebody
> tells you how that works, and you understand it, it comes natural. But
> first you must have heard of the concept SQL injection.
>
> Oh well, I talk too much. :-)
>
> Good luck.
>
> Regards,
> Erwin Moller

Thank you Erwin. I will be staying with HTML/CSS/PHP/MySql. Plenty
for me to learn there. You have given me a direction. I'll let
others decide if you talk too much. :) However, I assure you that
your post was far more helpful than TNP's contribution.

Tom
Re: Books? [message #177352 is a reply to message #177335] Sat, 17 March 2012 01:29 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
"Christopher M." <nospam_flibbity(at)floo(dot)com> wrote in message
news:8sGdneILNJwueP3SnZ2dnUVZ_v2dnZ2d(at)giganews(dot)com...
> What are some good PHP books? I've been reading the manual on PHP.net and
> it looks pretty basic.
>
>
> W. Pooh (AKA Winnie P.)
>

I found this site, if anyone's interested.
http://bytes.com/topic/php/answers/11337-delete-object


W. Pooh (AKA Winnie P.)
Re: Books? [message #177353 is a reply to message #177350] Sat, 17 March 2012 02:27 Go to previous messageGo to next message
Leonardo Azpurua is currently offline  Leonardo Azpurua
Messages: 46
Registered: December 2010
Karma: 0
Member
"Erwin Moller" <erwinmollerusenet(at)xs4all(dot)nl> escribió en el mensaje
news:4f633af9$0$6988$e4fe514c(at)news2(dot)news(dot)xs4all(dot)nl...
>
> Hi Tom,
>
> I think you can do thousands of roads.
> It really depends on what you want to achieve.
>
> A few considerations for you that pop into my head that are general in
> nature:
>
> Pick a language:
> Are you sure you want to study PHP further?
> Why not C or C++ or Java or etc.etc.?
> If you want to focus on webtechnology, there is also MS dotnet and Ruby On
> Rails, and etc.etc.
> Not that I want to send you elsewhere. :-)
> But why do you pick PHP? Because it is easy?
> I know it is very hard to tell upfront what language is good for you
> (since you don't know the others), but it certainly is worth some thought.
> PHP is very web focussed. You will never write a device driver in PHP, or
> a cool piece of 3D graphics software.
> But for the web, PHP is very good.
>
>
> Framework or no Framework?
> These days many people work with frameworks. Frameworks have the advantage
> of hiding complexity, but they add bureaucracy, in some cases to the level
> that programming is no fun anymore, a situation that should be avoided at
> all costs.
> If you want to learn, I suggest you do it without frameworks. Later on,
> when you made a lot of costly mistakes, you will be in a much better
> position to decide if you need one (or even write your own.).
>
>
> Try to work modular/components/objects.
> I express myself vaguely on purpose.
> Bottonline: If you think you solved some particular problem do the
> following:
> 1) sit back and take a cup of coffee.
> 2) Try to describe what you just did. What kind of input are you taking?
> What problem did you solve? WHat types of output can you produce? etc.
> 3) Pull the thing OUT of your code, and make a class for it, or a
> function, or whatever suits your needs.
> Then use that new component from within your code.
> Also: Document it, store it somewhere where you can find it, preferably
> with some clear description attached to it.
> You don't want to wander through your "clever classes" directory and see
> names like:
> Test23_ver2
> MyGodmodule
> MyEmailer_ver2(I think)
> myEmailer
> Emailer
> etc.
> If you do this right, you will end up with a bunch of classes and
> functions you will be proud of. You can even add funky stuff like
> unittesting later on.
>
> And last:
> Let others review your code.
> Let others review your code!
> (3 times more)
> Simply post in here a function, even a whole script, or some approach you
> have just finished, and ask for opinions.
> Don't use an online forum, most I have seen are poor and filled with
> people who want to score karma-points or some other useless nonsense.
> This group is pretty good.
>
> There exist as many programming-styles as there are programmers.
> Nonetheless, you will make rookie-mistakes, and more experienced
> programmers will catch them easily (mostly because they made the same
> mistakes themselves earlier.).
> Don't be shy and remember most experienced programmers became experienced
> by having their OWN code reviewed (in a public forum or in private,
> doesn't matter).
> For example: Do you really need to have your website screwed up by some
> SQL injection to learn to escape your input? Of course not: if somebody
> tells you how that works, and you understand it, it comes natural. But
> first you must have heard of the concept SQL injection.
>
> Oh well, I talk too much. :-)
>
> Good luck.
>
> Regards,
> Erwin Moller


Best advice!
Re: Books? [message #177358 is a reply to message #177352] Sat, 17 March 2012 15:25 Go to previous messageGo to next message
Gregor Kofler is currently offline  Gregor Kofler
Messages: 69
Registered: September 2010
Karma: 0
Member
Am 2012-03-17 02:29, Christopher M. meinte:
> "Christopher M." <nospam_flibbity(at)floo(dot)com> wrote in message
> news:8sGdneILNJwueP3SnZ2dnUVZ_v2dnZ2d(at)giganews(dot)com...
>> What are some good PHP books? I've been reading the manual on PHP.net and
>> it looks pretty basic.
>>
>>
>> W. Pooh (AKA Winnie P.)
>>
>
> I found this site, if anyone's interested.
> http://bytes.com/topic/php/answers/11337-delete-object

Why should anyone be interested in a forum entry dating back to 2005
discussing an OOP issue in PHP*4*?

Gregor

--
http://vxweb.net
Re: Books? [message #177360 is a reply to message #177358] Sat, 17 March 2012 23:31 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
"Gregor Kofler" <usenet(at)gregorkofler(dot)com> wrote in message
news:jk2ae1$76v$1(at)dont-email(dot)me...
> Am 2012-03-17 02:29, Christopher M. meinte:
>> "Christopher M." <nospam_flibbity(at)floo(dot)com> wrote in message
>> news:8sGdneILNJwueP3SnZ2dnUVZ_v2dnZ2d(at)giganews(dot)com...
>>> What are some good PHP books? I've been reading the manual on PHP.net
>>> and
>>> it looks pretty basic.
>>>
>>>
>>> W. Pooh (AKA Winnie P.)
>>>
>>
>> I found this site, if anyone's interested.
>> http://bytes.com/topic/php/answers/11337-delete-object
>
> Why should anyone be interested in a forum entry dating back to 2005
> discussing an OOP issue in PHP*4*?
>
> Gregor

I said "site".


W. Pooh (AKA Winnie P.)
Re: Books? [message #177364 is a reply to message #177360] Sun, 18 March 2012 16:34 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Christopher M. wrote:

> "Gregor Kofler" <usenet(at)gregorkofler(dot)com> wrote in message
> news:jk2ae1$76v$1(at)dont-email(dot)me...
>> Why should anyone be interested in a forum entry dating back to 2005
>> discussing an OOP issue in PHP*4*?
>
> I said "site".
>
> W. Pooh (AKA Winnie P.)

Please return to your Hundred Acre Wood^W Web, little bear.


PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
Re: Books? [message #177366 is a reply to message #177335] Mon, 19 March 2012 17:32 Go to previous messageGo to next message
macca is currently offline  macca
Messages: 1
Registered: March 2012
Karma: 0
Junior Member
PHP 5 Objects, Patterns, and Practice
Matt Zandstra
Re: Books? [message #177367 is a reply to message #177366] Tue, 20 March 2012 01:39 Go to previous messageGo to next message
Christopher M. is currently offline  Christopher M.
Messages: 9
Registered: March 2012
Karma: 0
Junior Member
"macca" <ptmcnally(at)googlemail(dot)com> wrote in message
news:7257183.754.1332178327363.JavaMail.geo-discussion-forums@vbhv6...
> PHP 5 Objects, Patterns, and Practice
> Matt Zandstra

Thanks. I should get into PEAR and learn about PHP best coding practices.


W. Pooh (AKA Winnie P.)
Re: Books? [message #177368 is a reply to message #177367] Tue, 20 March 2012 08:47 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 20.03.2012 02:39, schrieb Christopher M.:
> "macca" <ptmcnally(at)googlemail(dot)com> wrote in message
> news:7257183.754.1332178327363.JavaMail.geo-discussion-forums@vbhv6...
>> PHP 5 Objects, Patterns, and Practice
>> Matt Zandstra
>
> Thanks. I should get into PEAR and learn about PHP best coding practices.
>
>
> W. Pooh (AKA Winnie P.)
>
>

I don't find PEAR of much use. Unless you want to use it to install your software.

/Str.
Re: Books? [message #177369 is a reply to message #177367] Tue, 20 March 2012 09:19 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 20.03.2012 02:39, schrieb Christopher M.:
> "macca" <ptmcnally(at)googlemail(dot)com> wrote in message
> news:7257183.754.1332178327363.JavaMail.geo-discussion-forums@vbhv6...
>> PHP 5 Objects, Patterns, and Practice
>> Matt Zandstra
>
-- cut ...
> and learn about PHP best coding practices.

- use proper code indenting to make your code readable
- document your code with phpDocumentor or other
- use meaningful variable and function names
- use an editor with syntax highlighting to help find any unbalanced quotes
and parentheses before running the script
- if something does not work like expected: use a debugger to inspect your
variables at every execution step, IMO a must for serious programming
- get used to a version control system early, you will populate your file system
with test1.php, test2-old.php, test2-1.php and so on not knowing what you will need
later and what to delete

This was the easy advice, now the difficult:

- break down a problem into smaller 'working units' using functions and objects
- design your functions (and methods) to work on data passed in by parameters, the
benefits will be better isolated testing, and reuse of code
- test your code after every logic step
- work on your understanding of the whole system: client browser, IP (address, ...),
TCP (port, SSL, ...), DNS, HTTP (headers, ...), HTML, CSS, JavaScript, web server
settings, PHP settings, logging, ...

There is a reason why good programmers can ask for high hourly rates.

/Str.
Re: Books? [message #177470 is a reply to message #177366] Sat, 31 March 2012 16:59 Go to previous message
Burnsy is currently offline  Burnsy
Messages: 2
Registered: March 2012
Karma: 0
Junior Member
On 3/19/2012 1:32 PM, macca wrote:
> PHP 5 Objects, Patterns, and Practice
> Matt Zandstra

I think PHP Object Oriented Solutions, David Powers
( http://www.amazon.com/PHP-Object-Oriented-Solutions-David-Powers/dp/1430210 117/ref=sr_1_1?s=books&ie=UTF8&qid=1333212576&sr=1-1)
should be read before the above mentioned book.

They are great books once you have the basics of the language down, and
go great one after the other.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Import values from XML file
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 01:04:26 GMT 2024

Total time taken to generate the page: 0.02487 seconds