Array Dereference in PHP 5.4 PRO

As of PHP 5.4 we can develop a function that returns an array and treat the call to that function as an array we want to access its elements. <?php function doSomething() { $vec = [23,53,75,64]; return $vec; } echo doSomething()[0]; ?> The following video clip shows the execution of this code sample and explains […]

PHP 5.4 Access Members on Instantiation PRO

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 […]

PHP 5.4 Class::{expr}() Syntax PRO

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 […]

Shenkar Scala Programming Summer 2012 ACD

During the summer semester I am going to deliver a Java & Scala Programming course in Shenkar. I deliver it as part of Shenkar’s Software Engineering BSc academic program. I am going to teach it on Thursdays 0800-2000. The course starts with a detailed coverage of the Java SE programming language and continues with a detailed […]

Shenkar Scala Programming Spring 2012 ACD

During the coming semester I am going to deliver a Java & Scala Programming course in Shenkar. I deliver it as part of Shenkar’s Software Engineering BSc academic program. I am going to teach two groups. The first group takes place on Sundays 0800-1300 and the second one takes place on Sundays 1700-2100. The course starts with […]

Students Coding Projects Evaluation PRO

I chose to write down this post for the benefit of my students who submit projects in their courses and for the benefit of my assistants who mark projects submitted by my students. There are many ways for evaluating a coding project submitted by students. The following is my personal suggestion. I will be more […]

Shenkar Scala Programming Autumn 2011 INFO

During the coming semester I am going to deliver the Java & Scala Programming course in Shenkar. Its official name is ‘Internet Programming’. I deliver this course as part of Shenkar’s Software Engineering BSc academic program. The course starts with a detailed coverage of the Java SE programming language and continues with a detailed coverage of Scala. […]

HIT Scala Programming Autumn 2011 INFO

During the coming semester I am going to deliver the Java & Scala Programming course in HIT. Its official name is ‘Internet Programming’. I deliver this course as part of HIT’s Computer Science BSc academic program. I deliver this course for two groups. Both groups take place on Mondays. The first takes place during 1200-1600. The second takes […]

The Image Stretch Property in Silverlight PRO

The Stretch possible values include Fill, None, Uniform which is the default value and UniformToFill. Fill will stretch the image in width and height to fit the Image element. None will keep the image native size. Uniform will set the largest possible size while keeping the aspect ratio unchanged. UniformToFill will size the width and […]

Silverlight Initialization Parameters PRO

We can easily pass initialization parameters from the HTML code that invokes the Silverlight application to the Silverlight application itself. The parameters should be placed as key value pairs, while the keys are their names and the values are the values of each one of them, as a string which is the value of a […]

Update cookies preferences