Jump to content
Eternal Lands Official Forums
Wizzy

Programing the first EL client

Recommended Posts

:D

Yeah, seems things were really quite a bit more complicated back then. Nowadays for such a simple program, all you have to do is type:

 

#!/usr/bin/env python

from math import *

print "".join([chr(int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\

+ 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\

+ 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\

+ 5.878*sin(5*x*1.118)))) for x in range(12)])

 

And you get the same result.

(btw, yes, i copypasta'd this)

Edited by Elgoran

Share this post


Link to post
Share on other sites

:D

Yeah, seems things were really quite a bit more complicated back then. Nowadays for such a simple program, all you have to do is type:

 

#!/usr/bin/env python

from math import *

print "".join([chr(int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\

+ 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\

+ 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\

+ 5.878*sin(5*x*1.118)))) for x in range(12)])

 

And you get the same result.

(btw, yes, i copypasta'd this)

Lol ... you should look inot the APL language ... would be MUCH shorter!

Share this post


Link to post
Share on other sites

Wow, I am glad things were so much easier back then!

 

They were.

 

 

       *    Hello world
           IDENTIFICATION DIVISION.
           PROGRAM-ID. hello.
           PROCEDURE DIVISION.
           DISPLAY 'Hello world!'.
           STOP RUN.

 

And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers!

 

Piper

 

Edit:

 

Or, if you need it the hard way:

 

: hello 
CR
." Hello world!" 
CR 
;  ok
hello 
Hello world!

Edited by The_Piper

Share this post


Link to post
Share on other sites

Wow, I am glad things were so much easier back then!

 

They were.

 

 

   	*    Hello world
           IDENTIFICATION DIVISION.
           PROGRAM-ID. hello.
           PROCEDURE DIVISION.
           DISPLAY 'Hello world!'.
           STOP RUN.

 

And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers!

 

Piper

 

Edit:

 

Or, if you need it the hard way:

 

: hello 
CR
." Hello world!" 
CR 
;  ok
hello 
Hello world!

My first CompSci classes required me to hand in punch cards along with the printout of the program and the run

Share this post


Link to post
Share on other sites

Wow, I am glad things were so much easier back then!

 

They were.

 

 

   	*    Hello world
           IDENTIFICATION DIVISION.
           PROGRAM-ID. hello.
           PROCEDURE DIVISION.
           DISPLAY 'Hello world!'.
           STOP RUN.

 

And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers!

 

Piper

 

Edit:

 

Or, if you need it the hard way:

 

: hello 
CR
." Hello world!" 
CR 
;  ok
hello 
Hello world!

My first CompSci classes required me to hand in punch cards along with the printout of the program and the run

 

I love how back then, computers were a science.

Share this post


Link to post
Share on other sites

Wow, I am glad things were so much easier back then!

 

They were.

 

 

   	*    Hello world
           IDENTIFICATION DIVISION.
           PROGRAM-ID. hello.
           PROCEDURE DIVISION.
           DISPLAY 'Hello world!'.
           STOP RUN.

 

And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers!

 

Piper

 

Edit:

 

Or, if you need it the hard way:

 

: hello 
CR
." Hello world!" 
CR 
;  ok
hello 
Hello world!

My first CompSci classes required me to hand in punch cards along with the printout of the program and the run

 

You beat me, we had already terminals with line orientated editors.

 

Sperry Univac, you can't beat that!

 

At least not their so called full screen orientated editor, which saved everything from the top left corner until the cursor position.

 

If the cursor was at the top left corner, you lost... everything, d'oh.

 

Yeah, great old times, lol.

 

Piper

Share this post


Link to post
Share on other sites
My first CompSci classes required me to hand in punch cards along with the printout of the program and the run

 

My intro to coding was handwriting 80col cobol pads which were then submitted to data input dept to convert to punched card. The 'batch' would be run during the night on a mainframe, so i'd have to wait till until next morning and get the output delivered to my office on huge perforated paper sheets.

 

Not sure how many Scandanavian pine forests were sacrificed before all the bugs and typos's were chased out of the average 'run', but with the thickness of most outputs measuring a good few inches, I'm guessing quite a few. In those days, patience, sharp pencils and many prayers to the computer goddess, paid dividends lol.

 

I fondly remember declaring variables with names like TOM, DICK and HARRY, hard coding '19' into date functions, and using GOTO without the slightest sense of shame. The only REM in usually said 'THIS DOES NOT WORK' (although the language was sometimes a little more graphic).

 

Happy days lol

Edited by themuntdregger

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×