Re: to Brent (a starter)
- Posted by bn <mrsmoo at ES.CO.NZ> Sep 25, 1998
- 572 views
-----Original Message----- From: Alan Tu <ATU5713 at COMPUSERVE.COM> To: EUPHORIA at cwisserver1.mcs.muohio.edu <EUPHORIA at cwisserver1.mcs.muohio.edu> Date: Thursday, 24 September 1998 23:37 Subject: to Brent (a starter) Brent, Welcome to the list. It sounds like you're completely new to programming. 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 you 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 = Brent mycountry = usa You can also have things that don't change. They are called constants. hoursinday = 24 daysinyear = 365 OK, you know what a variable and constants are. Now, Euphoria is different 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 through Section 2.1. I'll try to give you another installment every so often. The members of this list are very helpful, too, and they can (and probably will) expand on what I told you. --Alan hiya alan thanx fo your response what you told me has helped a great deal always wondered what the atoms and sequence was thanx will look forward to your next email by the way the variable would be myname=brent mycountry=new zealand thanx brent