php-net-tutorial icon indicating copy to clipboard operation
php-net-tutorial copied to clipboard

Additions "upfront"

Open hakre opened this issue 12 years ago • 7 comments

  • It's important to write code - not copy paste it. Tell that upfront.
  • Enable the user how to write and execute code:
    • Show how to execute on the commandline
    • Give example with and Editor like Gedit or Geany (Linux/Mac/Windows)

hakre avatar Jul 03 '12 16:07 hakre

Lint mode (php -l) is probably worth mentioning here.

philip avatar Jul 05 '12 23:07 philip

@philip There are people using that?

nikic avatar Jul 06 '12 00:07 nikic

@nikic: Yes in geany you can integrate it so you have it on keypress. It's nice to have.

hakre avatar Jul 06 '12 00:07 hakre

@hakre IDE detects errors quite well without it too ^^ In any case, I feel like mentioning php -l isn't really necessary in a beginner tutorial :)

nikic avatar Jul 06 '12 00:07 nikic

@nikic If "Show how to execute on the commandline" is written then I imagine this being noted there. I think lint mode is worth mentioning, that is, if CLI usage is documented in this tutorial. It's by far the most used CLI command, at least for me. Well, also -r. Oh, and talk about -r... ;)

philip avatar Jul 06 '12 00:07 philip

Ideally they'd know how to use xdebug and phpunit, but I don't know if this is the right place for anything CLI related.

morrisonlevi avatar Jul 06 '12 22:07 morrisonlevi

For the understanding of what PHP is, I think it is good to show (in a small example), that you can execute PHP code by invoking the PHP binary. So that it shows how it works. Not browser, no server, just a command line.

hakre avatar Jul 07 '12 10:07 hakre