Skip to content

Commit 1340d35

Browse files
AllenJBlacatoire
andauthored
Tutorial: Improved "What's Next" section (#5491)
* Tutorial: Improved What's Next section Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
1 parent 1f01e2a commit 1340d35

1 file changed

Lines changed: 81 additions & 14 deletions

File tree

chapters/tutorial.xml

Lines changed: 81 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ You are using Firefox.
305305
<![CDATA[
306306
<?php
307307
if (str_contains($_SERVER['HTTP_USER_AGENT'], 'Firefox')) {
308-
?>
309-
<h3>str_contains() returned true</h3>
310-
<p>You are using Firefox</p>
311-
<?php
308+
?>
309+
<h3>str_contains() returned true</h3>
310+
<p>You are using Firefox</p>
311+
<?php
312312
} else {
313-
?>
314-
<h3>str_contains() returned false</h3>
315-
<p>You are not using Firefox</p>
316-
<?php
313+
?>
314+
<h3>str_contains() returned false</h3>
315+
<p>You are not using Firefox</p>
316+
<?php
317317
}
318318
?>
319319
]]>
@@ -419,16 +419,83 @@ Hi Joe. You are 22 years old.
419419

420420
<section xml:id="tutorial.whatsnext">
421421
<info><title>What's next?</title></info>
422+
<simpara>
423+
With your new knowledge you should be able to understand most of the manual.
424+
</simpara>
422425
<para>
423-
With your new knowledge you should be able to understand most of
424-
the manual and also the various example scripts available in the
425-
example archives.
426+
In particular you may want to explore the following features:
427+
<simplelist>
428+
<member>Reading and writing files with the <link linkend="book.filesystem">filesystem functions</link></member>
429+
<member><link linkend="features.file-upload">Handling file uploads</link></member>
430+
<member>Fetching remote pages and files with <link linkend="book.curl">Curl</link></member>
431+
<member>
432+
Storing and analyzing data in a database with <link linkend="book.pdo">PDO</link>
433+
(<link linkend="ref.pdo-sqlite">SQLite</link> can be used without running a database server)
434+
</member>
435+
<member>Persisting data across requests with <link linkend="book.session">Sessions</link></member>
436+
</simplelist>
426437
</para>
438+
<simpara>
439+
There's a trove of libraries and <link xlink:href="&url.packagist;/search/?tags=framework">frameworks</link>
440+
for every occasion on the <link xlink:href="&url.packagist;">Packagist repository</link>, all installable via
441+
the <link linkend="install.composer.intro">Composer package manager</link>.
442+
</simpara>
443+
<simpara>
444+
For community help and advice, check out the <link xlink:href="&url.php.support;">Help page</link>.
445+
</simpara>
446+
<simpara>
447+
For a variety of podcasts, presentations and other videos, check out the
448+
<link xlink:href="&url.phpctv;">community PeerTube</link>.
449+
</simpara>
450+
<simpara>
451+
Other community resources that will help you include "awesome lists" (curated directories of links) and "developer
452+
roadmaps" (lists of related topics).
453+
</simpara>
427454
<para>
428-
To view various slide presentations that show more of what PHP can do,
429-
see the PHP Conference Material Site:
430-
<link xlink:href="&url.php.talks;">&url.php.talks;</link>
455+
When you're stuck with no idea where to start, try breaking down your project or problem into smaller parts,
456+
allowing you to more easily see what you already know how to do and what you need to learn. The list can be as deep
457+
/ detailed as you need. For example, building a blog might be broken down into the following parts:
458+
<itemizedlist>
459+
<listitem>
460+
<simpara>Listing and viewing pages</simpara>
461+
<itemizedlist>
462+
<listitem>
463+
<simpara>Reading records (pages) from a database</simpara>
464+
</listitem>
465+
</itemizedlist>
466+
</listitem>
467+
<listitem>
468+
<simpara>Creating pages</simpara>
469+
<itemizedlist>
470+
<listitem>
471+
<simpara>Handle form submission</simpara>
472+
</listitem>
473+
<listitem>
474+
<simpara>Writing records (pages) to a database</simpara>
475+
</listitem>
476+
</itemizedlist>
477+
</listitem>
478+
<listitem>
479+
<simpara>Admin login</simpara>
480+
<itemizedlist>
481+
<listitem>
482+
<simpara>Reading records (users) from a database</simpara>
483+
</listitem>
484+
<listitem>
485+
<simpara>Handling passwords</simpara>
486+
</listitem>
487+
<listitem>
488+
<simpara>Persisting data (user login) across requests / pages (sessions)</simpara>
489+
</listitem>
490+
</itemizedlist>
491+
</listitem>
492+
</itemizedlist>
431493
</para>
494+
<simpara>
495+
If there's nothing particular you want to build, you can try searching for coding exercises such as katas,
496+
challenges and "code golf". Even when not specifically aimed at PHP, most should be completable and will likely
497+
challenge your knowledge and thinking.
498+
</simpara>
432499
</section>
433500
</chapter>
434501

0 commit comments

Comments
 (0)