10:38 AM me: rippy, hola...what is it again that you do?
Jonathan: Hola Amity! Que pasa?
i am a programmer
me: what languages?
10:39 AM Jonathan: java,c,c++,perl,ruby,python, a little bit of lisp (inspired by zack :))
me: nice
what language is Sugar written in?
Jonathan: others too
me: or is it itself a language>
Jonathan: i've ... never heard of Sugar
10:40 AM Jonathan: checking
it's written in python! :)
me: YAY
Jonathan: saw it on this page
me: I need to learn python
sweet deal
Jonathan: Python is incredibly easy
me: how is python set up as a language?
Jonathan: to you happen to know other programming langues?
10:41 AM languages even
me: not really just romance languages
Jonathan: haha
Es muy bueno tambien
me: it translates
Jonathan: :)
when computer scientists write things up on the board,
they use pseudo code ... which is not really a language
10:42 AM me: it's just commands, write
Jonathan: just sorta writing things out loosely without using a specific language
me: right
oh ok
Jonathan: python is the closest to pseudo code i've ever seen
so it makes it much easier to use as a language
me: can you show me a screenshot of python?
Jonathan: hmm
one sec
10:43 AM the canonical first example that people usually see in a language
is the "Hello World" example
me: ok
Jonathan: that is, how do I make this language print out the words "Hello World" to the user
in python it looks like
#!/usr/bin/env python
print "Hello World"
print "Hello World"
and that's it
me: ok
Jonathan: you place that into a file
me: user, location, environment
Jonathan: and then you can run the file
10:44 AM i'm not sure the specifics of this sugar platform, but choosing python seems like a good idea on their part (to me at least)
:)
python is preinstalled on Macs
me: niiice
Jonathan: i have use a mac
me: I need python bootcamp
Jonathan: i <3>
me: I have a macbook
Jonathan: nice!
10:45 AM me: thanks to the great state of Maine tech initiative
Jonathan: excellent
me: so THANKS may I publish this info
Jonathan: http://docs.python.org/tutorial/
me: on my teacher blog?
yes, seen that
Jonathan: ok
sure
me: I do better with real people
thanks!
Jonathan: oh oh
amity
do you still have like 2 minutes?
10:46 AM me: yes, I am home all day
Jonathan: ok
do you know how to go to the terminal?
me: no idea
Jonathan: /Applications/Terminal.app
run that program
me: ok
thanks!
Jonathan: now type
python
me: I'll try and say "Hello World"
Jonathan: and you should see something like
$ python
Python 2.5.2 (r252:60911, Apr 23 2008, 00:18:10)
[GCC 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Python 2.5.2 (r252:60911, Apr 23 2008, 00:18:10)
[GCC 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
10:47 AM me: I do not see Terminal
Jonathan: one sec
me: is it in MyApps?
I have a teacher image
Jonathan: /Applications/Utilities/Terminal.app/
sorry, it should be there
i typed it wrong before
10:48 AM me: darn it all
that feature is locked
Jonathan: :(
me: argh
Jonathan: :(
me: I need an admin image, I iwill ask for one
thanks for the tutorial
10:49 AM Jonathan: ok sure
:)
that's too bad that they locked that down
me: yes, 'tis
Jonathan: i understand why they did, you can delete everything
if you don't know what you are doing
:)
me: right
so...they should TRAIN us
Jonathan: agreed
me: technological professional development is severely retarded in education
10:50 AM we have ubiquitous computing and no one knows really what the little white boxes are capable of
ok I should stop ranting :)
Jonathan: that's too bad :(
haha
no i don't mind
:)
what is your grad school degree in? education?
me: technology in education
10:53 AM master of science, research based
Jonathan: nice!
my master's is in computer science
i really like helping me
i've considered going back into teaching eventually
me: who do you program for
Jonathan: NetApp
10:54 AM me: cool
Jonathan: trying to find you this website
i can't seem to find it
me: I want to get into professional development in technology in education
Jonathan: it lets you write python code online
me: super
10:55 AM I'd like to be a consultant and train teachers, sort of hunker down with them for a few months and get them started with things like Sugar
Jonathan: that would be cool
i'm sure teachers could certainly use the help
me: um, yes
I work with many
Jonathan: i remember, in highschool, that i was the go-to student for them
me: we all need as much help as we can get :)
Jonathan: they would seek me out
10:56 AM me: that is me now
that was zach in school though
Jonathan: i had other teachers "get me out of class" to come help
of course they had permission from my teacher
10:57 AM me: ha
my tv was B and W
and I wanted it color
10:58 AM and I said, ok, I am not interested in solving this, you all solve it.
took them 15 minutes.
Jonathan: nice!
a more productive use of their time too
me: they are rarely asked to solve problems
Jonathan: solving a problem
11:00 AM i seemed to have encoutered that alot myself
i have a link for you!
11:01 AM me: create a new paste?
Jonathan: were you able to view mine?
me: yes
Jonathan: awesome
me: how do I type into a field
raw code?
Jonathan: yes, in the "New paste:" area
me: ok
Jonathan: like, try to change it to count to 20
11:02 AM and to say hey to me instead
:)
or you could blog it, and say hey to your readers hehe
:)
me: what is "for i"
Jonathan: it's a 'for' loop
it uses the range function, on the right, to generate a list of numbers
11:03 AM then, it traverses through the list
and assigns to the variable 'i' the value of the current list position
lists in python look like this
[1 2 3 4 5 6 7 8 9 10]
if i say
list = [1 2 3 4 5 6 7 8 9 10]
then i create a new variable, named list ... of type list with those values
i can directly access an entry in the list
me: ok
11:04 AM slow down bro
that's a good start
:)
Jonathan: haha
ok
sorry i had a typo in my example list
it should look more like this
11:05 AM >>> list = [1, 2, 3, 4]
>>> print list[0]
1
>>> print list[0]
1
comma seperated
me: SyntaxError: Non-ASCII character '\xc2' in file t.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Jonathan: hmm
me: I just copied your code and pasted it and changed a few things
Jonathan: you must have an issue with the syntax
with what you typed
11:06 AM me: figured it out
no spanish characters
Jonathan: awesome
oh yeah
he might not have support for that on his website
Jonathan: awesome!
me: yay!
Jonathan: yay :)
11:07 AM now you can play around with those tutorials
me: thank you very much!!
Jonathan: to some degree at least
sure!
:)
ultimately, it is better to run it on your own computer obviously
but until then, you have something to work with :)
11:08 AM me: ok, off to play
thanks!!
Jonathan: ok
sure thing!
De Nada! :)
No comments:
Post a Comment