Advanced

What do Interpreted Programming Languages have in Common? Part II

Posted by tripwire45 on · 1 comment
A Million Chimpanzees; By James Pyles
Mail this story
Print this story

I begin this tutorial a few weeks ago with Part I and received some very nice comments correcting my (fortunately) minor errors. This isn't a tutorial about how to program in a specific language or even really about how to program. I wanted to show the common structure of interpreted programming languages in the hopes of revealing some common threads, rather than focusing on the ins and outs of one language. I've heard it said that if you learn one language, it makes learning the next one easier. My problem is I get lost in the nuances of the language in question and lose track of the basic structure of programming...

...I've created this tutorial series to try and correct that. This tutorial is for my education as much as anyone else's so I welcome comments but, as I said before, be polite. This is about learning.



Speaking of Languages, code examples are presented in JavaScript, Python, and Ruby. I figured this represented a healthy cross-section of commonly used interpreted languages. Now, on with the show.



In our last episode (sorry, couldn't resist), we left off with Arrays and Booleans. The tutorial picks up with methods of flow control. According to Wikipedia, flow control is "a statement whose execution results in a choice being made as to which of two or more paths should be followed. For non-strict functional languages, functions and language constructs exist to achieve the same result, but they are not necessarily called control flow statements." In other words, it's a way of making decisions within the program given different conditions. Speaking of which...

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: PHP

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (1)

Imperative programming languages? Or perhaps imperative interpreted programming languages?

One could easily show the same examples in a compiled language, never mind that there probably are declarative languages that are interpreted (some of the examples won't work in those...).

(make "probably" "definitely" if you consider a VM an interpreter)

[/nitpick]

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post