Posts tagged with programming

Dear nerds: enough with the Orson Scott Card refs, right?

FOR SERIOUS.

Basic Programming

Basic Programming

BASIC PROGRAMMING is an instructional tool designed to teach you the fundamental steps of computer programming. BASIC is an acronym for Beginners All-purpose Symbolic Instruction Code. It was originated to that people could easily learn to “write” computer programs.

Computer programs are simply a series of instructions. The programs control the flow of information within the computer. BASIC PROGRAMMING allows you to give the Video Computer System(tm) the instructions it needs to carry out some simple tasks.

Keep in mind that BASIC PROGRAMMING has a limited amount of memory in comparison to more sophisticated computer systems. It is, however, an excellent instructional device for learning the essentials of computer programming.

(Image from Worst Mario Game Ever)

( via snarkout)

Whats so weird about this is that I always wear the same outfit when PROGRAMMING

“We are proud to say that at this point, we are serving over 90% of our Web traffic using HipHop, all only six months after deployment.”

Joel/Fog Creek must be loving this.

Object Creation

Object Creation

Learn programming the easy way!

( via jeb)

interesting posting style. I got it from Apple’s Cocoa/Objective-C docs.

Node Dump

Over the last couple of months, it’s gotten hard to ignore the growing chatter about Node.js. Node is an evented Javascript framework built on Google’s open source v8 engine, with similarities in design to Twisted and Eventmachine, among others. Here’s a quick dump of links for future reference.

Carl Fernbach-Flarsheim

Carl Fernbach-Flarsheim

There’s very little information about Fernbach-Flarsheim on the web. His most famous piece, Boolean Image/Conceptual Typewriter, was part of the Software show.

John Levine (co-author of the lex & yacc and qmail O’Reilly books) recalls the technical assistance provided by the R.E.S.I.S.T.O.R.S. for that piece:

NYC artist Carl Fernbach-Flarsheim sketched out a clever Conceptual Typewriter which displayed an image each time the user pushed one of the buttons, with labels like the silent (a circle) and the providing (sheaves of wheat), with the images scrolling up on each button push. If the user selected an image with the light pen, it changed somehow, e.g., more or less sheaves of wheat, or a spinning image slowed down and spun the other way. Our job was to write the software, which was quite a challenge. The IDIIOM was only programmed in 620i assembler on punch cards, and there was no support for the display at all beyond minimal display list commands to draw points, lines, and circles. I was the de-facto project manager, working with Peter Eichenberger on the program code, and everyone I could find on the image code. Some of the images were easy, just a circle or a few lines. Some were drawn on graph paper and hand-coded to screen coordinates. For a particularly complex one with bubbles arcing out of a fountain I wrote a SNOBOL4 program that calculated the positions and punched out IDIIOM display list source, and ran it on Princeton’s 360/91.
None of us were old enough to drive, so our development process involved punching and hand-checking source code at Princeton, then we’d take the train or bus from Princeton to NYC, then the subway across town, another train to Mt Kisco, then walk about a mile to Information Displays, debug for a few hours, then reverse the process to get home.
The exhibit was an anti-climax. The show opened in the summer, when it was rather hot, and the heat from all the computers made it even hotter. To keep the IDIIOM from overheating, they stuck a block of dry ice underneath which worked OK, but when the company saw what was happening to their computer, they took it home.

CoffeeScript

CoffeeScript is a little middleman language that compiles into JavaScript written by Jeremy Ashkenas, who is responsible for the Ruby Processing project.

It aims to bring elements of Python and Ruby’s cleaner syntax to JavaScript. CoffeeScript uses Pyhton’s significant whitespace instead of curly braces and does not require semi-colons for terminating lines. Right off the bat, the existence operator (?) struck me as quite slick. Checking if a variable is defined in JavaScript has always been a sore spot.

In JavaScript:

var solipsism;
if ((typeof mind !== "undefined" && mind !== null) && !(typeof world !== "undefined" && world !== null)) {
    solipsism = true;
}

The same statement, in CoffeeScript:

solipsism: true if mind? and not world?

Note that a colon is used for assignment, as in JSON.

Other features include argument splats, Ruby ranges, more powerful switch statements, simplified lexical scoping, almost everything as an expression, and more.

It’s written in Ruby and uses racc for the parser.

More complex examples can be found here.

Wilderness Experience

Wilderness Experience

A photograph from the backpack manufacturer, Wilderness Experience’s 1975 catalog.

The picture was taken at Jim’s cabin in the mountains. A close observer will notice we are drinking red wine and the bottle is a white wine bottle. We had already finished the white wine and had moved onto red. The papers in front were Jim’s attempt at learning IBM RPG2 computer programming.

“The haircuts were Jim’s attempt at landing the General Madine role in the upcoming film Star Wars.

Both groups are creative, imaginative, intelligent, energetic, industrious, competitive and driven. But programmers, in my [vast world-embracing] experience, tend to be painstaking, logical, inhibited, cautious, restrained, defensive, methodical, and ritualistic. Their exterior actions are separated from their emotions by enough layers of logical defenses that they can always say “why” they did something. Artists, on the other hand, seem to be freer, alogical, intuitive, impulsive, implicit, perceptive, sensitive, and vulnerable. They often do things without being able to say why they do them, and one usually is polite enough not to ask.

—“Collaborations with Artists — a Programmer’s Reflections,” Nake & Rosenfeld, GRAPHIC LANGUAGES, 1972

still fucking with ffmpeg?