SlideShare una empresa de Scribd logo
1 de 99
Descargar para leer sin conexión
<h1>There are no messages</h1>
<?php if($db->fetchOne('select count(*) from messages')) { ?>
<?php $messages = $db->fetchAll('select * from messages'); ?>
<h1>There are <?php echo count($messages); ?> messages:<h1>
<ul>
<li>From <?php echo $message['from']; ?></li>
<?php foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<?php } else { ?>
<php } ?>
<h1>There are no messages</h1>
<?php if($db->fetchOne('select count(*) from messages')) { ?>
<?php $messages = $db->fetchAll('select * from messages'); ?>
<h1>There are <?php echo count($messages); ?> messages:<h1>
<ul>
<li>From <?php echo $message['from']; ?></li>
<?php foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<?php } else { ?>
<php } ?>
<h1>There are no messages</h1>
<?php if($db->fetchOne('select count(*) from messages')) { ?>
<?php $messages = $db->fetchAll('select * from messages'); ?>
<h1>There are <?php echo count($messages); ?> messages:<h1>
<ul>
<li>From <?php echo $message['from']; ?></li>
<?php foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<?php } else { ?>
<php } ?>
<h1>There are no messages</h1>
<?php if($db->fetchOne('select count(*) from messages')) { ?>
<?php $messages = $db->fetchAll('select * from messages'); ?>
<h1>There are <?php echo count($messages); ?> messages:<h1>
<ul>
<li>From <?php echo $message['from']; ?></li>
<?php foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<?php } else { ?>
<php } ?>
<h1>There are no messages</h1>
<? if (count($messages)) { ?>
<h1>There are <?= count($messages) ?> messages:<h1>
<ul>
<li>From <?= $message['from']; ?></li>
<? foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<? } else { >
<php } ?>
<? $messages = $messageStore->getAll(); ?>
<h1>There are no messages</h1>
<? if (count($messages)) { ?>
<h1>There are <?= count($messages) ?> messages:<h1>
<ul>
<li>From <?= $message['from']; ?></li>
<? foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<? } else { >
<php } ?>
<? $messages = $messageStore->getAll(); ?>
<h1>There are no messages</h1>
<? if (count($messages)) { ?>
<h1>There are <?= count($messages) ?> messages:<h1>
<ul>
<li>From <?= $message['from']; ?></li>
<? foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<? } else { >
<php } ?>
<? $messages = $messageStore->getAll(); ?>
<? $messages = $store->getMessages();
'messageCount' => count($messages),
'messages' => $messages
$model = array(
); ?>
<h1>There are no messages</h1>
{{^messageCount}}
<h1>There are {{messageCount}} messages:<h1>
<ul>
<li>From {{from}}</li>
{{#messages}}
{{/messages}}
</ul>
{{/messageCount}}{{#messageCount}}
{{/messageCount}}
<? $messages = $store->getMessages();
'messageCount' => count($messages),
'messages' => $messages
$model = array(
); ?>
<h1>There are no messages</h1>
{{^messageCount}}
<h1>There are {{messageCount}} messages:<h1>
<ul>
<li>From {{from}}</li>
{{#messages}}
{{/messages}}
</ul>
{{/messageCount}}{{#messageCount}}
{{/messageCount}}
<? $messages = $messageStore->getAll(); ?>
<h1>There are no messages</h1>
<? if (count($messages)) { ?>
<h1>There are <?= count($messages) ?> messages:<h1>
<ul>
<li>From <?= $message['from']; ?></li>
<? foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<? } else { >
<php } ?>
<h1>There are no messages</h1>
{{^messageCount}}
{{/messageCount}}
<h1>There are {{messageCount}} messages:<h1>
<ul>
<li>From {{from}}</li>
{{#messages}}
{{/messages}}
</ul>
{{#messageCount}}
{{/messageCount}}
<? $messages = $messageStore->getAll(); ?>
<h1>There are no messages</h1>
<? if (count($messages)) { ?>
<h1>There are <?= count($messages) ?> messages:<h1>
<ul>
<li>From <?= $message['from']; ?></li>
<? foreach ($messages as $message) { ?>
<?php } ?>
</ul>
<? } else { >
<php } ?>
<h1>There are no messages</h1>
{{^messageCount}}
{{/messageCount}}
<h1>There are {{messageCount}} messages:<h1>
<ul>
<li>From {{from}}</li>
{{#messages}}
{{/messages}}
</ul>
{{#messageCount}}
{{/messageCount}}
{ date: '2010-05-10',
slot: '9h - 14h' }
bookings: [
],
{ name: 'April'
… }
months: [
] ...
{ date: '2010-05-10',
slot: '9h - 14h' }
bookings: [
],
{ name: 'April'
… }
months: [
] ...
<div>
Name: <span>John Wayne</span>
Homepage: <a href="http://johnwayne.com">
<span>johnwayne.com</span>
</a>
</div>
<div>
Name: <span>John Wayne</span>
Homepage: <a href="http://johnwayne.com">
<span>johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
{
person: {
name: "John Wayne",
url : {
href: "http://johnwayne.com",
caption: "johnwayne.com"
}
}
}
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
<div property="person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
<div property="person" typeof="Person">
Name: <span property="name">John Wayne</span>
Homepage: <a property="url" href="http://johnwayne.com">
<span property="caption">johnwayne.com</span>
</a>
</div>
<div vocab="http://schema.org/">
</div>
Templating you're doing it wrong - Nikolas Martens - Codemotion Amsterdam 2017

Más contenido relacionado

La actualidad más candente

The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88Mahmoud Samir Fayed
 
The Ring programming language version 1.9 book - Part 55 of 210
The Ring programming language version 1.9 book - Part 55 of 210The Ring programming language version 1.9 book - Part 55 of 210
The Ring programming language version 1.9 book - Part 55 of 210Mahmoud Samir Fayed
 
Web осень 2012 лекция 7
Web осень 2012 лекция 7Web осень 2012 лекция 7
Web осень 2012 лекция 7Technopark
 
The Ring programming language version 1.5.3 book - Part 46 of 184
The Ring programming language version 1.5.3 book - Part 46 of 184The Ring programming language version 1.5.3 book - Part 46 of 184
The Ring programming language version 1.5.3 book - Part 46 of 184Mahmoud Samir Fayed
 
Web весна 2013 лекция 7
Web весна 2013 лекция 7Web весна 2013 лекция 7
Web весна 2013 лекция 7Technopark
 
PHP 7 – What changed internally? (Forum PHP 2015)
PHP 7 – What changed internally? (Forum PHP 2015)PHP 7 – What changed internally? (Forum PHP 2015)
PHP 7 – What changed internally? (Forum PHP 2015)Nikita Popov
 
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs  to seek qsar models of proteins com...Topological indices (t is) of the graphs  to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...Jitendra Kumar Gupta
 
Can WordPress really do that? A case study of vierderduer.no
Can WordPress really do that? A case study of vierderduer.noCan WordPress really do that? A case study of vierderduer.no
Can WordPress really do that? A case study of vierderduer.noMorten Rand-Hendriksen
 
PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-Yoshiki Satotani
 
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]MongoDB
 
Pre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to ElixirPre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to ElixirPaweł Dawczak
 
PHP 7 – What changed internally?
PHP 7 – What changed internally?PHP 7 – What changed internally?
PHP 7 – What changed internally?Nikita Popov
 
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order FunctionsTaking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order FunctionsDavid Golden
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacionJeff Tu Pechito
 
News of the Symfony2 World
News of the Symfony2 WorldNews of the Symfony2 World
News of the Symfony2 WorldFabien Potencier
 

La actualidad más candente (19)

Hop ngu MIP
Hop ngu MIPHop ngu MIP
Hop ngu MIP
 
MIPS Merge Sort
MIPS Merge SortMIPS Merge Sort
MIPS Merge Sort
 
The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88The Ring programming language version 1.3 book - Part 36 of 88
The Ring programming language version 1.3 book - Part 36 of 88
 
The Ring programming language version 1.9 book - Part 55 of 210
The Ring programming language version 1.9 book - Part 55 of 210The Ring programming language version 1.9 book - Part 55 of 210
The Ring programming language version 1.9 book - Part 55 of 210
 
Web осень 2012 лекция 7
Web осень 2012 лекция 7Web осень 2012 лекция 7
Web осень 2012 лекция 7
 
The Ring programming language version 1.5.3 book - Part 46 of 184
The Ring programming language version 1.5.3 book - Part 46 of 184The Ring programming language version 1.5.3 book - Part 46 of 184
The Ring programming language version 1.5.3 book - Part 46 of 184
 
Web весна 2013 лекция 7
Web весна 2013 лекция 7Web весна 2013 лекция 7
Web весна 2013 лекция 7
 
wget.pl
wget.plwget.pl
wget.pl
 
PHP 7 – What changed internally? (Forum PHP 2015)
PHP 7 – What changed internally? (Forum PHP 2015)PHP 7 – What changed internally? (Forum PHP 2015)
PHP 7 – What changed internally? (Forum PHP 2015)
 
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs  to seek qsar models of proteins com...Topological indices (t is) of the graphs  to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...
 
Can WordPress really do that? A case study of vierderduer.no
Can WordPress really do that? A case study of vierderduer.noCan WordPress really do that? A case study of vierderduer.no
Can WordPress really do that? A case study of vierderduer.no
 
PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-
 
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]
Aggregation Pipeline Power++: MongoDB 4.2 파이프 라인 쿼리, 업데이트 및 구체화된 뷰 소개 [MongoDB]
 
Pre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to ElixirPre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to Elixir
 
PHP 7 – What changed internally?
PHP 7 – What changed internally?PHP 7 – What changed internally?
PHP 7 – What changed internally?
 
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order FunctionsTaking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order Functions
 
5th Sem SS lab progs
5th Sem SS lab progs5th Sem SS lab progs
5th Sem SS lab progs
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacion
 
News of the Symfony2 World
News of the Symfony2 WorldNews of the Symfony2 World
News of the Symfony2 World
 

Más de Codemotion

Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...Codemotion
 
Pompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending storyPompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending storyCodemotion
 
Pastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storiaPastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storiaCodemotion
 
Pennisi - Essere Richard Altwasser
Pennisi - Essere Richard AltwasserPennisi - Essere Richard Altwasser
Pennisi - Essere Richard AltwasserCodemotion
 
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...Codemotion
 
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019Codemotion
 
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019Codemotion
 
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 - Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 - Codemotion
 
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...Codemotion
 
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...Codemotion
 
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...Codemotion
 
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Codemotion
 
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019Codemotion
 
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019Codemotion
 
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019Codemotion
 
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...Codemotion
 
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...Codemotion
 
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019Codemotion
 
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019Codemotion
 
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019Codemotion
 

Más de Codemotion (20)

Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
 
Pompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending storyPompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending story
 
Pastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storiaPastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storia
 
Pennisi - Essere Richard Altwasser
Pennisi - Essere Richard AltwasserPennisi - Essere Richard Altwasser
Pennisi - Essere Richard Altwasser
 
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
 
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
 
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
 
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 - Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
 
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
 
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
 
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
 
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
 
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
 
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
 
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
 
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
 
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
 
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
 
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
 
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
 

Último

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Templating you're doing it wrong - Nikolas Martens - Codemotion Amsterdam 2017

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. <h1>There are no messages</h1> <?php if($db->fetchOne('select count(*) from messages')) { ?> <?php $messages = $db->fetchAll('select * from messages'); ?> <h1>There are <?php echo count($messages); ?> messages:<h1> <ul> <li>From <?php echo $message['from']; ?></li> <?php foreach ($messages as $message) { ?> <?php } ?> </ul> <?php } else { ?> <php } ?>
  • 20. <h1>There are no messages</h1> <?php if($db->fetchOne('select count(*) from messages')) { ?> <?php $messages = $db->fetchAll('select * from messages'); ?> <h1>There are <?php echo count($messages); ?> messages:<h1> <ul> <li>From <?php echo $message['from']; ?></li> <?php foreach ($messages as $message) { ?> <?php } ?> </ul> <?php } else { ?> <php } ?>
  • 21. <h1>There are no messages</h1> <?php if($db->fetchOne('select count(*) from messages')) { ?> <?php $messages = $db->fetchAll('select * from messages'); ?> <h1>There are <?php echo count($messages); ?> messages:<h1> <ul> <li>From <?php echo $message['from']; ?></li> <?php foreach ($messages as $message) { ?> <?php } ?> </ul> <?php } else { ?> <php } ?>
  • 22. <h1>There are no messages</h1> <?php if($db->fetchOne('select count(*) from messages')) { ?> <?php $messages = $db->fetchAll('select * from messages'); ?> <h1>There are <?php echo count($messages); ?> messages:<h1> <ul> <li>From <?php echo $message['from']; ?></li> <?php foreach ($messages as $message) { ?> <?php } ?> </ul> <?php } else { ?> <php } ?>
  • 23. <h1>There are no messages</h1> <? if (count($messages)) { ?> <h1>There are <?= count($messages) ?> messages:<h1> <ul> <li>From <?= $message['from']; ?></li> <? foreach ($messages as $message) { ?> <?php } ?> </ul> <? } else { > <php } ?> <? $messages = $messageStore->getAll(); ?>
  • 24. <h1>There are no messages</h1> <? if (count($messages)) { ?> <h1>There are <?= count($messages) ?> messages:<h1> <ul> <li>From <?= $message['from']; ?></li> <? foreach ($messages as $message) { ?> <?php } ?> </ul> <? } else { > <php } ?> <? $messages = $messageStore->getAll(); ?>
  • 25. <h1>There are no messages</h1> <? if (count($messages)) { ?> <h1>There are <?= count($messages) ?> messages:<h1> <ul> <li>From <?= $message['from']; ?></li> <? foreach ($messages as $message) { ?> <?php } ?> </ul> <? } else { > <php } ?> <? $messages = $messageStore->getAll(); ?>
  • 26. <? $messages = $store->getMessages(); 'messageCount' => count($messages), 'messages' => $messages $model = array( ); ?> <h1>There are no messages</h1> {{^messageCount}} <h1>There are {{messageCount}} messages:<h1> <ul> <li>From {{from}}</li> {{#messages}} {{/messages}} </ul> {{/messageCount}}{{#messageCount}} {{/messageCount}}
  • 27. <? $messages = $store->getMessages(); 'messageCount' => count($messages), 'messages' => $messages $model = array( ); ?> <h1>There are no messages</h1> {{^messageCount}} <h1>There are {{messageCount}} messages:<h1> <ul> <li>From {{from}}</li> {{#messages}} {{/messages}} </ul> {{/messageCount}}{{#messageCount}} {{/messageCount}}
  • 28.
  • 29.
  • 30.
  • 31. <? $messages = $messageStore->getAll(); ?> <h1>There are no messages</h1> <? if (count($messages)) { ?> <h1>There are <?= count($messages) ?> messages:<h1> <ul> <li>From <?= $message['from']; ?></li> <? foreach ($messages as $message) { ?> <?php } ?> </ul> <? } else { > <php } ?> <h1>There are no messages</h1> {{^messageCount}} {{/messageCount}} <h1>There are {{messageCount}} messages:<h1> <ul> <li>From {{from}}</li> {{#messages}} {{/messages}} </ul> {{#messageCount}} {{/messageCount}}
  • 32. <? $messages = $messageStore->getAll(); ?> <h1>There are no messages</h1> <? if (count($messages)) { ?> <h1>There are <?= count($messages) ?> messages:<h1> <ul> <li>From <?= $message['from']; ?></li> <? foreach ($messages as $message) { ?> <?php } ?> </ul> <? } else { > <php } ?> <h1>There are no messages</h1> {{^messageCount}} {{/messageCount}} <h1>There are {{messageCount}} messages:<h1> <ul> <li>From {{from}}</li> {{#messages}} {{/messages}} </ul> {{#messageCount}} {{/messageCount}}
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68. { date: '2010-05-10', slot: '9h - 14h' } bookings: [ ], { name: 'April' … } months: [ ] ...
  • 69. { date: '2010-05-10', slot: '9h - 14h' } bookings: [ ], { name: 'April' … } months: [ ] ...
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83. <div> Name: <span>John Wayne</span> Homepage: <a href="http://johnwayne.com"> <span>johnwayne.com</span> </a> </div>
  • 84. <div> Name: <span>John Wayne</span> Homepage: <a href="http://johnwayne.com"> <span>johnwayne.com</span> </a> </div> { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } }
  • 85. <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div> { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } }
  • 86. { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } } <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 87. { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } } <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 88. { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } } <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 89. { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } } <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 90. { person: { name: "John Wayne", url : { href: "http://johnwayne.com", caption: "johnwayne.com" } } } <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97. <div property="person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div>
  • 98. <div property="person" typeof="Person"> Name: <span property="name">John Wayne</span> Homepage: <a property="url" href="http://johnwayne.com"> <span property="caption">johnwayne.com</span> </a> </div> <div vocab="http://schema.org/"> </div>