Ruby, Software Development

Ruby – How to create a Class and its Object

This post demonstrates how to create a very simple class and to create objects from that class.

Read More...

Software Development

Java – Places where “public static void main(String[] args)” can be put

Most of Java programmers are only familiar with having the following method in a class to start the application from. But there are other places.

Read More...

Software Development

JavaScript Object Creation and Object Methods and Properties

[wp_ad_camp_1] If you’ve read this, it merely declares JavaScript can do OOP. It did not talked about other (more advanced) OOP stuff like access modifiers, encapsulation – behaviors and properties,

Read More...

Software Development

Type Checking in JavaScript

Okay, JavaScript is a loosely-typed language, which means you do not declare the data type of a variable explicitly. In a basic variable assignment expression, e.g., var i = 4;, the value that assigns to the variable determines the data type of the variable. As you assign different types of data to the same variable, its data type changes as well. Given the nature of JavaScript, finding out what data type a variable represents before using it is very important.

Read More...

Software Development

Return class’ Canonical Name in PHP

Background [wp_ad_camp_1] There are times you need to refer to a class by a string representing its fully qualified class name. For example in Laravel 4.2, you may specify a

Read More...