[presentations] master: tweaks

[email protected] (Rasmus Lerdorf) Wed, 7 Dec 2022 02:35:13 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Date: 2022-12-06T20:23:49-06:00

Commit: https://github.com/php/presentations/commit/a5931ec85a1c5da592931ad156a8ba9137770dd8
Raw diff: https://github.com/php/presentations/commit/a5931ec85a1c5da592931ad156a8ba9137770dd8.diff

tweaks

Changed paths:
  M  etsymex22.html
  M  slides/intro/php80_2022.xml


Diff:

diff --git a/etsymex22.html b/etsymex22.html
index b5b2c576..25cf5db8 100644
--- a/etsymex22.html
+++ b/etsymex22.html
@@ -375,16 +375,22 @@ <h2 style="text-align:center;">Version Support</h2>
 	<section>
 		<section id="php80">
 		<h1 style="text-align:center;">PHP 8.0</h1>
+		</section>
+		<section id="php80_named_args" >
 		<p class="p" style="font-size:1.1em;text-align:left;">Named Arguments</p>
 		<pre><code class="php" data-trim style="font-size:1em;" >htmlspecialchars($string, double_encode: false);</code></pre>
+		</section>
+		<section id="php80_con_prom" >
 		<p class="p" style="font-size:1.1em;text-align:left;">Constructor Property Promotion</p>
 		<pre><code class="php" data-trim style="font-size:1.1em;" >class User {
     function __construct(public string $name, private string $pwd = &quot;&quot;) { }
 }</code></pre>
 		</section>
-		<section id="php80_1" >
+		<section id="php80_nullsafe" >
 		<p class="p" style="font-size:1.1em;text-align:left;">Nullsafe Operator with short-circuiting</p>
 		<pre><code class="php" data-trim style="font-size:1.1em;" >$country = $session?-&gt;user?-&gt;getAddress(geoip())?-&gt;country;</code></pre>
+		</section>
+		<section id="php80_match" >
 		<p class="p" style="font-size:1em;text-align:left;">Match Expression, Union Types</p>
 		<pre><code class="php" data-trim style="font-size:0.85em;" >function days_in_month(string|int $month, int $year): int {
   $leap = $year % 400;
@@ -398,9 +404,11 @@ <h1 style="text-align:center;">PHP 8.0</h1>
   };
 }</code></pre>
 		</section>
-		<section id="php80_2" >
+		<section id="php80_weakmap" >
 		<p class="p" style="font-size:1em;text-align:left;">weakMap</p>
 		<p class="p" style="font-size:0.8em;text-align:left;"> - Map objects to arbitrary values without preventing GC</p>
+		</section>
+		<section id="php80_attributes" >
 		<p class="p" style="font-size:1em;text-align:left;">Attributes</p>
 		<p class="p" style="font-size:0.8em;text-align:left;"> - Structured metadata</p>
 		<pre><code class="php" data-trim style="font-size:1em;" >function login(int $user_id, #[\SensitiveParameter] string $pwd) { }</code></pre>
diff --git a/slides/intro/php80_2022.xml b/slides/intro/php80_2022.xml
index 90e33673..0387286d 100644
--- a/slides/intro/php80_2022.xml
+++ b/slides/intro/php80_2022.xml
@@ -2,12 +2,16 @@
 
 <blurb fontsize="20em" align="center">PHP 8.0</blurb>
 
+<break lines="1" section="php80_named_args"/>
+
 <blurb fontsize="1.1em" align="left">Named Arguments</blurb>
 
 <example fontsize="1em" result='0' title="" type="php"><![CDATA[<?php
 htmlspecialchars($string, double_encode: false);
 ]]></example>
 
+<break lines="1" section="php80_con_prom"/>
+
 <blurb fontsize="1.1em" align="left">Constructor Property Promotion</blurb>
 
 <example fontsize="1.1em" result='0' title="" type="php"><![CDATA[<?php
@@ -16,13 +20,15 @@ class User {
 }
 ]]></example>
 
-<break lines="1" section="php80_1"/>
+<break lines="1" section="php80_nullsafe"/>
 
 <blurb fontsize="1.1em" align="left">Nullsafe Operator with short-circuiting</blurb>
 <example fontsize="1.1em" result='0' title="" type="php"><![CDATA[<?php
 $country = $session?->user?->getAddress(geoip())?->country;
 ]]></example>
 
+<break lines="1" section="php80_match"/>
+
 <blurb fontsize="1em" align="left">Match Expression, Union Types</blurb>
 
 <example fontsize="0.85em" result='0' title="" type="php"><![CDATA[<?php
@@ -39,10 +45,11 @@ function days_in_month(string|int $month, int $year): int {
 }
 ]]></example>
 
-<break lines="1" section="php80_2"/>
+<break lines="1" section="php80_weakmap"/>
 <blurb fontsize="1em" align="left">weakMap</blurb>
 <blurb fontsize="0.8em" align="left"> - Map objects to arbitrary values without preventing GC</blurb>
 
+<break lines="1" section="php80_attributes"/>
 <blurb fontsize="1em" align="left">Attributes</blurb>
 <blurb fontsize="0.8em" align="left"> - Structured metadata</blurb>
 <example fontsize="1em" result='0' title="" type="php"><![CDATA[<?php