Rebol Tutorial

Rebol Programming - Learn Rebol with Real-World Examples

Archives for OOP

A Polymorphic new instance function for Business User / Agile Tester to create sampling datas fast.

A Polymorphic new instance function for Business User / Agile Tester to create sampling datas fast.
In an MVC framework, the Model is the most important entity, View is just kind of Filter on the Model and the Controller just kind of a necessary Evil. So we should be able to build and test the model before even the building phase in the traditional Software Life ...more»
18 Dec by admin in All, Concept, OOP

How to implement OOP Polymorphism in Rebol

How to implement OOP Polymorphism in Rebol
According to Wikipedia: Parametric polymorphism is a way to make a language more expressive, while still maintaining full static type-safety. A function that can evaluate to or be applied to values of different types is known as a polymorphic function. Also for OOP Language: The primary usage of polymorphism is the ability of ...more»
18 Dec by admin in All, Beginner, Concept, OOP, Syntax

How to group related Global Objects / Functions into “Modules”

How to group related Global Objects / Functions into “Modules”
When program grows, best practice is to organize source code by modules. There's no explicit concept of "Module" per se in Rebol 2 unlike other languages like Ruby and of course Java, .NET, etc. but Rebol could have the same kind of feature by combining the Object or Context type ...more»
17 Dec by admin in All, Beginner, OOP, Syntax

How to Dynamically Extend an Object (for Rebol 2)

How to Dynamically Extend an Object (for Rebol 2)
Dynamic Languages are hot today since people now realize that static language properties are less suitable for some kind of tasks like Behavior Driven Development. Javascript Framework like Prototype has a method for extending an object, and even now static languages like C# are looking to become dynamic with extension ...more»

Fastest Way to Generate Propel Schema for PHP Symfony Framework

Fastest Way to Generate Propel Schema for PHP Symfony Framework
In our article "Creating an OOP Class-Based Language with a Prototype-Based OOP Language", we said: Why try to create a class-based OOP language from a prototyped-base OOP language ? The reasons to do so are numerous like simulating an other language or use it as a model for building Semantic Layers ...more»
14 Dec by admin in All, C#, Code Generation, Concept, OOP

Creating a Class-Based OOP Language: Adding Class Constructors Support (Advanced User)

Creating a Class-Based OOP Language: Adding Class Constructors Support (Advanced User)
This part is for advanced users only. Beginners should really read previous articles (see related articles at the end) before being able to understand this one. From First Part (that one was very easy), we have defined these two functions: Class: func] new: func ] ] Let's say we have added the constructor Person (method ...more»
13 Dec by admin in All, OOP

Creating an OOP Class-Based Language with an Homoiconic / Prototype-Based OOP Language

Creating an OOP Class-Based Language with an Homoiconic / Prototype-Based OOP Language
In some previous article, I have simulated the Val keyword in Scala. My Ambition as Creator being growing with time, I wana now simulate a Whole Universe (not yet) Language System such as Java, C#, PHP, javascript ... well that's the start :). If you are interested in Ruby, another ...more»
1 Nov by admin in All, Architecture, Concept, Hot, OOP, Parsing, UML

How to create a Plug-In Architecture Application Framework - with a parallel comparison with C# (part I)

How to create a Plug-In Architecture Application Framework - with a parallel comparison with C# (part I)
What is a Plug-In Architecture Application Framework? According to this C++ article on Code Guru about Plug-in Architecture Framework for Beginners: Simply speaking, it is a framework that will allow a program to "look for" add-in functionality at startup, and then allow that plug-in to cooperate with itself. Famous examples are Eclipse, ...more»

Rebol and the Grand Unification Theory of Programming Languages

Rebol and the Grand Unification Theory of Programming Languages
WARNING: this is not a post for the faint-hearted. You must abide to the visitation agreement that you are 18 years++ old. Please imagine that you have to check the little box "I have read this Agreement, understand it, and accept its terms" OK ? If Yes Goto Next Else ...more»

Automate YUml Diagrams with Rebol

Automate YUml Diagrams with Rebol
YUML.me (currently in Beta version) is an amazing UML Service which allows you to create Unified Modeling Language diagrams very easily using a DSL of their own. Here's how you can take advantage of this online tool with Rebol: The example script below will request an yUML Use Case Diagram (see ...more»
Page 1 of 2:1 2 »