Power of Eloquence

Understanding Ruby Self (Part 1)

| Comments

When really working with scripting object-oriented programming languages such as Ruby, I’d find it’s important get yourself grounded in knowing full grasp of the concepts of class and/or object.

To recap these words, basic understanding required behind these two words is this.

In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions, methods).

From memory of studying computer science several years ago in Java, I remembered along the lines that an object is an instance of the class. Thus the object carries all the initialization of state information within the classes. Many object-oriented programming languages therefore share this route and Ruby is no different.

My first Hello World Post

| Comments

Beginining my first technical blog.

What better way to share my write up a few samples of my favourite programming languages I was exposed to learning years ago since building my first family computer 20 years ago.

Java

Hello World - helloworld.java
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } }

C/C++

Hello World - helloworld.cc
#include <iostream.h> main() { printf("Hello, World!"); }

C#

Hello World - helloworld.cs
public class Hello1 { public static void Main() { System.Console.WriteLine("Hello, World!"); } }