Tag archives for OOP
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»
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»
Tags: Advanced, OOP, Reflection
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»
Tags: Architecture, C#, design patterns, ecosystem, framework, OOP, plugin, UML
18 Jul by admin in All, C#, Code Generation, Domain Specific Language, Expert, Java, OOP, Parsing, Professional Programming
Create your own DSL for Java or C# (part 4): adding a Semantic Layer
According to Martin Fowler:
In the context of a DSL, a semantic model is an in-memory representation, usually an object model, of the same subject that the DSL describes. The Semantic Model increases the flexibility in parsing and also in execution. You can execute the Semantic Model directly or you can ...more»
Tags: C#, Code Generation, dsl, Java, Martin Fowler, Model, OOP, Parsing






No Comment
Tags: dynamic, extend, inheritance, OOP