Re: Working more efficiently in PHP




"Elizabeth Barnwell" <elizabethbarnwell@xxxxxxxxx> wrote in message
news:015bda28-5aea-41f3-b2f1-d580d7387dc4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This is a tool for learning the PHP programming language:
http://www.yoyobrain.com/subjects/show/3120

You can look through the tabs to find information, and you can have
the site quiz you to help you retain more of the language. Our
developers have found this method useful, and are building YoYoBrain
to help others learn prorgmming languages. Any feedback on the site
and the flashcards is appreciated.

ask questions that are good questions, and then answer them correctly. ex.,

'special tags that tell apache that php should execute code' paraphrased.

first, you assume php is being run on apache. second, your answer: '<? ?>'
paraphrased, is wrong on several counts:

apache (whatever web server) can run php in a couple of modes, however
afaicr, it passes requests of for php to process in masse, not line by line.
it is *PHP* that interprets the tags so that it can tell when it needs to
process stuff. also, it is bad form anymore to just use <? as an opening
tag...<?php is the recommended/correct answer. i could go on...but...

finally, in another question, you ask how to output php results to the
browser. 'echo()' was your only answer. print, sprintf, print_r, and even
the venerable short-hand <?= ?> notation are a few of MANY possible answers.

i went through about 20 of the flash cards and found either the question was
a poor question and/or the answer was a poor, or downright wrong answer.

perhaps you should have an actual php developer write the questions and give
the answers. more importantly, have a php illiterate check both using the
manual (jerry stuckle would be perfect for that job :).


.



Relevant Pages

  • Re: Breaking backwards compatibility - good or bad?
    ... coming and are needed to anything really big and useful in PHP. ... command or statement in the language that is going to be made invalid ... The PHP team tries very hard not to break CORRECT scripts. ... "Introducing case-sensitivity for variables and functions names has ...
    (comp.lang.php)
  • Re: Working more efficiently in PHP
    ... the site quiz you to help you retain more of the language. ... response is nothing but a put-down for PHP beginners and worse than ... For beginners and probably for the level of the audience, IMO that's ... "knowing the language" to do what the OP wants to accomplish. ...
    (comp.lang.php)
  • Re: Case sensitivity in programming languages.
    ... the language. ... And these conventions take advantage of case sensitivity. ... In PHP it can be any of those things. ... group of programmers who want t force their stupid ideas onto others. ...
    (comp.lang.php)
  • Re: A Lot of Questions from a Noob
    ... OOP is a language paradigm that is not specific to ... I Google'd for an introduction to object-oriented programming, ... Watch out for the die-hard Perl fanbois: ... PHP 5 OOP has come a long way from PHP 4. ...
    (comp.lang.php)
  • Re: Wordpress Port
    ... I think Ruby is also generally useful. ... easier to work with than Perl. ... PHP was obviously designed ... primarily as a procedural language, so it's sort of appropriate for ...
    (comp.lang.ruby)