Archives for December, 2009
23 Dec by admin in All, Internet, Interoperability, Language, Protocol, Web Services, cgi, framework, php
How to pass Arguments from PHP to Rebol CGI (PHP/REBOL RPC)
PHP is everywhere, it has a huge Ecosystem of Libraries (like User's Session Management, Security, ...) which are still lacking in REBOL (though Rebol has all the network protocols and the very nice Parse to process strings, building a well-organised reusable framework takes time), so it makes sense to use ...more»
Why Rebol is the most Misunderstood Language and Not Javascript anymore
I was new to Rebol nearly one year ago (I didn't count past years as I just didn't try to go really deep into the language), since this is the end of the year, I can now try to tell what I think about it.I will inspire from Douglas Crockford, ...more»
21 Dec by admin in All, Helper Function
Protecting against Other Libraries Hell and set-once function
Rebol has a Protect function which allows your function to be redefined either by yourself or someone else. For example, I have a bunch of libraries that I preload in user.r like the zip library, when testing another script, I don't want that my own zip library risks to be ...more»
21 Dec by admin in Agility, All, Code Generation, Console, Domain Specific Language, Helper Function, Javascript, framework
A nice interactive editor to create Javascript Objects Fast (with or without Object Prototype)
As David Crockford puts it JavaScript's syntax looks like "C-like syntax, including curly braces and the clunky for statement". So here's a nice interactive editor to alleviate the clunly stuffs by allowing you to create a Javascript Object by just typing:to-js Productor for a more refined version (see at ...more»
How to read and parse your environment variables (System32, Java_Home, Classpath, Path…)
Rebol has a native get-env function to read environment variables. For example, to test if your JAVA_HOME (JDK installation directory), CLASSPATH (for Java imports), CATALINA_HOME (for Tomcat) environment variables have been set, type in Rebol Console :get-env "JAVA_HOME"
get-env "CLASSPATH"
get-env "JRE_HOME"
get-env "CATALINA_HOME"To parse your environment variable, just use parse/all ...more»
How to parse an HTML Web Page to extract all zip-exe or tar.gz links without using RegEX
In one of the first tutorials you've learned how to easily extract text from an HTML Web Page in a few lines without using Regular Expression. As I'd like to automate the download of softwares, I'll now show you how to extract all html links from an Html Web Page ...more»
18 Dec by admin in Agility, All, Best Practice, Console, Domain Specific Language, OOP, Professional Programming, UML, framework
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»
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»
Tags: Polymorphism
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»
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»
Tags: dynamic, extend, inheritance, OOP













No Comment