com presentations: Add one more exercise: deepdive-phpday19.xml slides/internals/exercise-strict-by-default.xml

[email protected] (Derick Rethans) Sat, 11 May 2019 08:17:36 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    db6f4bc34023693c1a403b4cc2d0cacbed585faa
Author:    Derick Rethans <[email protected]>         Sat, 11 May 2019 10:17:36 +0200
Parents:   09f611503377a852bf3fa5f1ff780fc6b855f560
Branches:  master

Link:       http://git.php.net/?p=presentations.git;a=commitdiff;h=db6f4bc34023693c1a403b4cc2d0cacbed585faa

Log:
Add one more exercise

Changed paths:
  M  deepdive-phpday19.xml
  A  slides/internals/exercise-strict-by-default.xml


Diff:
diff --git a/deepdive-phpday19.xml b/deepdive-phpday19.xml
index fc3ea33..1ccd9a6 100644
--- a/deepdive-phpday19.xml
+++ b/deepdive-phpday19.xml
@@ -50,6 +50,9 @@ Parse
 <slide>slides/internals/bytecode½.xml</slide>
 <slide>slides/internals/bytecode1.xml</slide>
 
+<!-- EXERCISE: ALWAYS STRICT -->
+<slide>slides/internals/exercise-strict-by-default.xml</slide>
+
 <slide>slides/internals/jumps.xml</slide>
 
 <!--
diff --git a/slides/internals/exercise-strict-by-default.xml b/slides/internals/exercise-strict-by-default.xml
new file mode 100644
index 0000000..24b5eba
--- /dev/null
+++ b/slides/internals/exercise-strict-by-default.xml
@@ -0,0 +1,11 @@
+<slide>
+<title>Exercise: Make PHP Strict by Default</title>
+
+<list>
+	<bullet>In %Zend/zend_compile.c%, find what %strict_types% does</bullet>
+	<bullet>Find where the ~flags~ gets initialised</bullet>
+	<bullet>Change the flags, compile, and run the tests</bullet>
+	<bullet>Write a few scripts to test whether you can still turn off strict types</bullet>
+</list>
+
+</slide>