PHP 5.4 Access Members on Instantiation <font size=-2>PRO</font>

PHP 5.4 allows us to access class members on the instantiation. We will use this special capability in those rare cases in which the only reason for creating the object is in order to allow us to access one of the class members. <? class Utils { function calc($numA,$numB) { return $numA+$numB; } } $temp […]

Shenkar Programming Languages July 2012 <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73 target=_blank>ACD</a></font>

During the coming summer semester (July-August, 2012) I will deliver the Programming Languages academic course in Shenkar. This course belongs to Shenkar’s BSc Academic Program in Software Engineering. You can find the google group of this course at https://groups.google.com/forum/?fromgroups#!forum/shenkar-programming-languages-summer-2012. You can find the detailed plan at https://docs.google.com/spreadsheet/pub?key=0AhDgrQD6qivLdDk3eG9KWVZvM3I2THJjRmpncXVkQXc&output=html. You can find the formal syllabus at http://www.lifemichael.com/shenkar/PROGRAMMING_LANGUAGES_COURSE_SUMMER_2012.pdf  

Android Platform HIT Summer 2012 <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73 target=_blank>INFO</a></font>

During the academic summer semester in HIT I am going to deliver an academic course for android applications development. The google group we are going to use in this course can be found at https://groups.google.com/group/hit-android-summer-2012. The syllabus can be downloaded at http://www.lifemichael.com/en/wp-content/uploads/2012/09/ANDROID_SYLLABUS_201207.pdf. The detailed plan ca be found at https://docs.google.com/document/pub?id=1Wq4dPoqVm80OuVTloLcfFp_l1vZV7N5hobfy1YvMR48. The final project the students are going […]

PHP 5.4 Class::{expr}() Syntax <font size=-2>PRO</font>

PHP 5.4 provides us with a new way to invoke static functions. This new way allows us storing the function name in a variable (as a string) and place that variable within curly brackets. <? class GoGo { public static function do_something() { echo “something!!!”; } } GoGo::{‘do_something’}(); ?> The following video clip shows the […]

The __get & __set Magical Functions in PHP <font size=-2>PRO</font>

Using these two functions we can dynamically add new variables, that weren’t defined in the class, to objects in our program. <? class Bongo { var $vec; function __construct() { $this->vec = array(); } function __get($str) { return $this->vec[$str]; } function __set($var_name,$var_value) { $this->vec[$var_name] = $var_value; } } $ob = new Bongo(); $ob->name=”balaboa”; $ob->id=12123123; echo […]

Innovations in Learning and Technology: Asia-Pacific Perspectives <font size=-2>INFO</font>

The conference brought researchers from all over the world and especially from the Asia-Pacific area. It took place in the University of Victoria, Canada. During the conference researchers and professors shared their experience and in using innovative learning technologies. I had the honor to share my experience with the development and usage of the www.abelski.org […]