Thursday, March 15, 2007

30 PRINT "MARCUS' PROGRAMMING TIPS"

Welcome back Ulbster Journal readers. Once again its time to dust off your keyboards, switch on your CPU's and get back to some extreme programming with me. Actually I just reused some old code to produce this weeks column, I've changed the name though and just picked any old text at random for my display variables. Believe it or not these completely different programs all produce a very similar result!!!

Java
String message = new String( "Naomi is a geek" );
System.out.println( message );

Perl
$message = "Naomi is a geek\n";
print $message;

Python
message = "Naomi is a geek"
print message

REBOL
message: "Naomi is a geek"
print message

Scheme
(define message "Naomi is a geek\n")
(display message)

2 comments:

Anonymous said...

BASIC

10 PRINT "MARCUS IS A GEEK"
20 GOTO 10
RUN

Naomi's test blog said...

FLASH

var txt_output:TextField = new Textfield();
txt_output.text = "I'm not, I'm not, I'm not ... Marcus is the geek!!!!";