Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "Leonardo Azpurua" Newsgroups: comp.lang.php Subject: Re: Books? Date: Fri, 16 Mar 2012 21:57:28 -0430 Organization: A noiseless patient Spider Lines: 93 Message-ID: References: <8sGdneILNJwueP3SnZ2dnUVZ_v2dnZ2d@giganews.com> <9sdprfFf39U1@mid.uni-berlin.de> <4f633af9$0$6988$e4fe514c@news2.news.xs4all.nl> Injection-Date: Sat, 17 Mar 2012 02:27:35 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="LjrtfpGPH53ex04LjhYYrw"; logging-data="10154"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gF6bGX2biG+Iy1jaYaWGL71Qvc/pkErQ=" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 Cancel-Lock: sha1:kk1ncN+CTVchrfQZI5mH4T0jpW0= X-Priority: 3 X-MSMail-Priority: Normal Xref: csiph.com comp.lang.php:5171 "Erwin Moller" escribió en el mensaje news:4f633af9$0$6988$e4fe514c@news2.news.xs4all.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!