to Brent (a starter)

new topic     » topic index » view thread      » older message » newer message

Brent,

Welcome to the list.  It sounds like you're completely new to programming=
=2E =

Well, then, here's programming 101.

Programming is telling your computer to do what you want it to do. =

Euphoria is a programming language that translates your commands to the
language into stuff the computer can do.

You program by typing "code", you speak the language Euphoria.  You must
type in a text editor and run your program.  Read Section 1 of the
refman.doc file.

OK, so now you know you type stuff in a text editor and run your program,=

and debug it of course!  So what to type?

First, you must understand the concept of data.  Data is anything that yo=
u
tell the computer.  User input, how many days are in a year, etc. are all=

data.  But the computer needs to know the data, so you tell it.  The data=

is stored in _variables_.  That's the universal name for data.  As it
suggests, data can change dynamicly.

Examples of variables include:

myname =3D Brent
mycountry =3D usa

You can also have things that don't change.  They are called constants.

hoursinday =3D 24
daysinyear =3D 365

OK, you know what a variable and constants are.  Now, Euphoria is differe=
nt
in that you tell it what kind of data a variable can hold.  To Euphoria,
there are only two types of data.

sequences and atoms

Objects cover both.  If I tell Euphoria something is an object, I can put=

both types of data in that variable.

Sequences are unique to Euphoria.  They are represented like this:

{1,3,2} -- a sequence

An atom is a number.

7
55
153

There is a special type of atom, an integer.  This type of variable can
hold only one kind of data, integers.

I've heard people are working on tutorials, but none of come out.  This
should get you started with Euphoria.  Try going through the referance
manual again, armed with this information, line by line.  At least throug=
h
Section 2.1.  I'll try to give you another installment every so often.  T=
he
members of this list are very helpful, too, and they can (and probably
will) expand on what I told you.

--Alan
  =

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu