BED-Con talk Convert PHP code Very first converted PHP

Very first converted PHP

1 This is before
2 <?php
3     print "Hello" . " " . "world";
4 ?>
5 This is after
 1 package testunits
 2 
 3 import de.leanovate.jbj.runtime.context.Context
 4 import de.leanovate.jbj.runtime.value._
 5 import de.leanovate.jbj.runtime.JbjCodeUnit
 6 
 7 object hello_world extends JbjCodeUnit {
 8 
 9   def exec(implicit ctx: Context) {
10   
11     ctx.out.print("""This is before
12        |""".stripMargin)
13     ctx.out.print("")
14     ctx.out.print(((StringVal("""Hello""") !! StringVal(""" """)) !! StringVal("""world""")).toOutput)
15     ctx.out.print("""This is after
16        |""".stripMargin)
17   }
18 }

This happened at March 7 2014 on a train ride from Berlin to Dortmund.

Comment from a colleague: “After gaining consciousness its first intend was to kill its creator.”