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)
Thursday, March 15, 2007
30 PRINT "MARCUS' PROGRAMMING TIPS"
Posted by ie churnal
at
8:32 pm
2
comments
Labels: marcus, programming
Wednesday, January 31, 2007
20 PRINT "MARCUS' PROGRAMMING TIPS"
Hello Ulbster journal readers, yes I am back. Mr. Anarchy may have departed this space, however timelord Tony has assured me that I am definately part of his plans for the future of this journal. In fact I have been promoted to second in command, although I'm not supposed to reveal that yet, so keep it under your hats for now.
Incidentally I also hear that Aaron has been sacked too! (although I can't say 100% for certain on that one, just office rumours, you know things you hear when you are chatting by the water cooler).
Anyway I'm here to explain about programming computers, so lets get on with it. Basically there are two types of programming languages, crap ones like C64 basic and cool ones like BBC BASIC 32K. As you can probably deduce I fall into the latter category. The cool thing about BBC BASIC 32K is that you have mode 7 - which the Acorn Electron never had I might add.
Using extremely advanced programming techniques such as 'spagetthi code' written with extensive use of the extremely powerful GOTO commands I have written many amazing programs such as 'Face Invaders'.
Anyway here is my latest program. What do this think of this?
10 MODE 0
20 PRINT"MARCUS PROGRAMMING TIPS"
30 PRINT"Enter a zero to start afresh"'
40 PRINT"Press 'Enter' after each entry"TAB(40)"Use a minus sign for subtraction"
50 PRINT'TAB(15)"entry"TAB(35)"TOTAL"'
60 GOTO 30
Pretty neat huh? Why not try typing it in and see what will happen. Can you guess what will happen? Remember to type RUN.
see you next time.
Marcus
Posted by ie churnal
at
7:17 am
3
comments
Labels: marcus
Thursday, January 18, 2007
10 print "Marcus' programming tips"
20 GOTO 10
30 REM You won't ever get here... hence never read this entry! Get it? ha ha ha Anyway, hello Ulbster journal readers, Marcus here. A really nice bloke called Roy Anarchy has brought me in to shake up the journal and tasked me with writing an interesting article about programming. Who better than I? I thought and so here I am, obviously having mutually agreed to the terms, (and quite a tasty little deal into the bargain, I'm going to get $23 grand over 5 years and keep my image rights, not bad eh?)
For my first column I thought I'd start off with some quite easy code for you to get your teeth into. What do you think of this?
@import url(../css/richedit.css);
@import url(../css/spellcheck.css);
@import url(../css/blogger.richedit.css);
// hide it while the CSS loads
#unreachableError {
display:none;
}
Pretty interesting eh?
Well I think that is quite self explanitory, I'll go a bit further in depth next time.
Marcus
Posted by ie churnal
at
4:13 am
0
comments
Labels: marcus, programming