Posts Tagged ‘php’
PHP, JavaScript, Ruby, Perl, Python, and Tcl Today: The State of the Scripting Universe
Three years ago, Lynn Greiner at CIO Magazine, interviewed the big cheeses responsible for the popular scripting languages PHP, Perl, Tcl, Python, Ruby and JavaScript to find out where the languages were headed. In this follow-up discussion, she asks the dynamic language luminaries what has changed since then.
This is a test of PHP Script Syntax Highlighting with the GeSHi code colorizing and syntax parsing library, along with the WP-Syntax plugin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // // Include the GeSHi library // include_once 'geshi.php'; // // Define some source to highlight, a language to use // and the path to the language files // $source = '$foo = 45; for ( $i = 1; $i < $foo; $i++ ){ echo "$foon"; --$foo; }'; $language = 'php'; // Create a GeSHi object $geshi = new GeSHi($source, $language); // And echo the result!// echo $geshi->parse_code(); |
I started a new knowledge category today called CompuScriptology. So what is CompuScriptology? It’s basically the analysis, research, study and observation of dynamic computer languages, sometimes known as dynamic scripting languages (as compared to static or compiled languages). It involves the comparing and contrasting of various computer language functions and syntactical elements — for computer languages such as JavaScript, Perl, PHP, Python, Rebol, and Ruby (in my case).
I was thinking about using the word Scriptology, but a gentleman (Dr. Adam Blatner) was already using the word Scriptology to talk about the Lore of Writing Systems and Alphabets. Not to mention, that the FileMaker people have a website for FileMaker templates called Scriptology also.
Since I’m very interested in multiple computer languages, some people might call me a polyglot. I was thinking about calling the new knowledge category PolyCompuScriptology, but that failed my terse test.
I’ve doing a little reading about the WordPress loop. The WordPress loop is where all the main work get’s done in publishing the articles of the blog. Loops and iteration constructs are very common in many (all?) programming languages, and that is why you see things like “do while” or while, “for x = 1 to z”, or “foreach x in z” in many scripting languages.
The whole idea with Open Source software is that you can modify it, refactor it, change it to be anything you want. However, it is a good idea to start with some very small changes, and it’s really good to begin by reading a few articles about the code, and read the actual source code before you start making any changes.
Anyway, two recent articles, I have have found helpful are: The Ultimate Guide to the WordPress Loop and another called Global Variables and the WordPress Loop.