OSG Community College C# for Programmers Class #2 Log 02/17/2009

1 view
Skip to first unread message

AdelleF

unread,
Feb 18, 2009, 6:17:30 PM2/18/09
to OSG Community College
There are two chat logs as the group was split for the task.
Relevant pastebins are at the bottom.


[2009/02/17 12:19] Snowdrop Short: welcome
[2009/02/17 12:19] Christy Lock: this is a much faster sim
[2009/02/17 12:19] Snowdrop Short: and not that many neighbors to
disturb either
[2009/02/17 12:20] Snowdrop Short: lets hope we last the whole
session
[2009/02/17 12:20] Christy Lock: yeah
[2009/02/17 12:20] Adelle Fitzgerald: that would be cool :)
[2009/02/17 12:20] Christy Lock: all new servers
[2009/02/17 12:20] Snowdrop Short: although today will be much more
of you working
[2009/02/17 12:20] Snowdrop Short: and me talking less
[2009/02/17 12:20] Adelle Fitzgerald: cool
[2009/02/17 12:20] Snowdrop Short: only helping with some questions
[2009/02/17 12:21] Snowdrop Short: or that's my plan anyhow
[2009/02/17 12:21] Christy Lock: are we working on the group program?
[2009/02/17 12:21] Snowdrop Short: yes
[2009/02/17 12:21] M1sha Dallin: going to be a hard day :-) I had a 7
hour course on Conflict Management at work - mostly role play
[2009/02/17 12:21] Snowdrop Short: two or three different groups,
each on a different part of the group program
[2009/02/17 12:22] Christy Lock: ok
[2009/02/17 12:22] Snowdrop Short: Conflict management can be
dangerous
[2009/02/17 12:22] Snowdrop Short: brb rl trouble
[2009/02/17 12:23] Christy Lock: changing computers brb
[2009/02/17 12:23] Snowdrop Short: back
[2009/02/17 12:23] M1sha Dallin: welcome back
[2009/02/17 12:23] Adelle Fitzgerald: wb :)
[2009/02/17 12:23] Snowdrop Short: thank you
[2009/02/17 12:23] Snowdrop Short: ok
[2009/02/17 12:24] Snowdrop Short: the agenda for today is to
continue working on the group program
[2009/02/17 12:24] Snowdrop Short: and fill out some of the missing
pieces
[2009/02/17 12:25] Snowdrop Short: Christy is that VR glasses?
[2009/02/17 12:25] Christy Lock: lol
[2009/02/17 12:25] Christy Lock: no
[2009/02/17 12:25] Snowdrop Short: welcome Starky
[2009/02/17 12:25] Christy Lock: iget that a lot though
[2009/02/17 12:25] Adelle Fitzgerald: I'll take the chat log to put
on the group page
[2009/02/17 12:26] Snowdrop Short: thank you Adelle
[2009/02/17 12:26] Snowdrop Short: I hope everybody got the message
about the new location
[2009/02/17 12:26] Adelle Fitzgerald: it was only by chance I saw it
on IRC
[2009/02/17 12:27] Starky Rubble: Blue and Aly were at the old site
[2009/02/17 12:27] M1sha Dallin: Me too
[2009/02/17 12:27] Starky Rubble: There is a TP there
[2009/02/17 12:27] Starky Rubble: to here
[2009/02/17 12:27] Snowdrop Short: yes, blue should be there
[2009/02/17 12:27] Snowdrop Short: and help those who didn't get the
message
[2009/02/17 12:28] Snowdrop Short: so I would suggest that we create
two groups now
[2009/02/17 12:28] Snowdrop Short: and then when and if more people
show up, they can form their own groups
[2009/02/17 12:28] Snowdrop Short: so it looks like Christy and M1sha
are one team
[2009/02/17 12:29] Snowdrop Short: Adelle and Starky are another
[2009/02/17 12:29] Starky Rubble: ok
[2009/02/17 12:29] Snowdrop Short: pairs works nicely for IM
[2009/02/17 12:29] Snowdrop Short: but since you are going to do most
of the coding today
[2009/02/17 12:30] Snowdrop Short: I've been thinking that maybe you
should share code on pastebin
[2009/02/17 12:30] Snowdrop Short: when talking about it
[2009/02/17 12:30] Snowdrop Short: we have two tasks
[2009/02/17 12:30] Snowdrop Short: let me get the code as I have it
[2009/02/17 12:31] Snowdrop Short: http://www.pastebin.ca/1340372
[2009/02/17 12:32] Snowdrop Short: http://www.pastebin.ca/1340375
[2009/02/17 12:32] Snowdrop Short: is the right one
[2009/02/17 12:32] Christy Lock: kk
[2009/02/17 12:32] Snowdrop Short: the other one, has my default BSD
license agreement on it
[2009/02/17 12:32] Snowdrop Short: and since we are sharing, that
license really doesn't make sense
[2009/02/17 12:33] Adelle Fitzgerald nods
[2009/02/17 12:33] Christy Lock: what kind of project is it again?
not Console app
[2009/02/17 12:33] Christy Lock: Im creating a new one from here
[2009/02/17 12:33] Snowdrop Short: as you can see, I think we should
have some information about individual group members
[2009/02/17 12:34] Snowdrop Short: right now it is console app
[2009/02/17 12:34] Christy Lock: oh ok
[2009/02/17 12:34] Snowdrop Short: it's usually easiest, until it
starts to be more stable
[2009/02/17 12:34] Snowdrop Short: that way you can simply write any
output to console
[2009/02/17 12:35] Snowdrop Short: of course that's not really a good
solution for a server application
[2009/02/17 12:35] Snowdrop Short: but for prototyping .. it is just
great
[2009/02/17 12:35] Starky Rubble: ok
[2009/02/17 12:35] Snowdrop Short: and I really think we need some
kind of container for holding a list or array of groups
[2009/02/17 12:36] Snowdrop Short: so we have two different tasks
[2009/02/17 12:36] Snowdrop Short: individual group member
information
[2009/02/17 12:36] Snowdrop Short: and a collection/array of groups
[2009/02/17 12:36] Snowdrop Short: who want's to do what?
[2009/02/17 12:37] Starky Rubble: What does a group need to know
about its members?
[2009/02/17 12:37] Christy Lock: last login?
[2009/02/17 12:37] Snowdrop Short: good question
[2009/02/17 12:37] Christy Lock: well maybe their rank in the group
[2009/02/17 12:37] Snowdrop Short: that's for you to decide
[2009/02/17 12:37] Starky Rubble: ah\
[2009/02/17 12:38] Starky Rubble: short version or aim high?
[2009/02/17 12:38] Snowdrop Short: since it is your program .. you
write it, you decide :-)
[2009/02/17 12:38] M1sha Dallin: iterative development? complete
solution to a partial problem?
[2009/02/17 12:38] Snowdrop Short: but name and role within the group
seems like good candates
[2009/02/17 12:38] Snowdrop Short: iterative
[2009/02/17 12:39] Snowdrop Short: all open source development is
almost always small iterative steps
[2009/02/17 12:39] Snowdrop Short: that way you know you're working
from a solid base
[2009/02/17 12:39] M1sha Dallin: sounds good to me - still learning
to walk :-)
[2009/02/17 12:39] Starky Rubble: Ok we'll do members
[2009/02/17 12:40] Snowdrop Short: ok so Starky and Adelle will fill
out the group
[2009/02/17 12:40] Snowdrop Short: and Christy and M1sha will do the
GroupList
[2009/02/17 12:40] Christy Lock: kk
[2009/02/17 12:40] Snowdrop Short: so first you should talk with your
team mates about what you think sould go in there
[2009/02/17 12:40] Snowdrop Short: and don't grow too ambitious
[2009/02/17 12:40] Starky Rubble: Ok we are doing GroupMember?
[2009/02/17 12:41] Snowdrop Short: yes.. Starky, GroupMember
[2009/02/17 12:41] Starky Rubble: good
[2009/02/17 12:41] Snowdrop Short: so you won the GroupList
[2009/02/17 12:42] Christy Lock: :) yeah
[2009/02/17 12:42] Snowdrop Short: ok ... so what should a grouplist
have?
[2009/02/17 12:42] Christy Lock: we are thinking a container to hold
group names
[2009/02/17 12:42] Christy Lock: and a method for maybe joining a
group?
[2009/02/17 12:43] Christy Lock: def a anem list
[2009/02/17 12:43] Christy Lock: name
[2009/02/17 12:43] Snowdrop Short: shouldn't joinging a group be part
of group
[2009/02/17 12:43] Snowdrop Short: rather than a group list?
[2009/02/17 12:44] Christy Lock: yeah I think so
[2009/02/17 12:44] Snowdrop Short: joining, even
[2009/02/17 12:44] Christy Lock: so an array to hold the groups that
are here
[2009/02/17 12:44] Snowdrop Short: yes
[2009/02/17 12:45] Snowdrop Short: how do you create a new group?
[2009/02/17 12:45] Christy Lock: by creating an instance of the class
Group
[2009/02/17 12:45] Snowdrop Short: shouldn't that be part of a group
list?
[2009/02/17 12:45] Christy Lock: so everytime a new instance is
created then we can grab the group name from there and put it into an
array
[2009/02/17 12:46] Snowdrop Short: M1sha, you seem to be quiet, what
are you thinking?
[2009/02/17 12:46] Snowdrop Short: when ever people are quiet, I know
they are thinking about something
[2009/02/17 12:46] M1sha Dallin: checking on arrays/collections in
the syntax
[2009/02/17 12:46] Snowdrop Short: ahh ok
[2009/02/17 12:47] M1sha Dallin: I'd go with an array of groups - the
constructor for group uses a method in grouplist for inserting an
entry maybe
[2009/02/17 12:47] Snowdrop Short: ok
[2009/02/17 12:47] Christy Lock: kk
[2009/02/17 12:48] Snowdrop Short: so group list needs to have that
method, for the Group constuctor to use it
[2009/02/17 12:48] M1sha Dallin: yep - in my opinion anyway - happy
to be corrected
[2009/02/17 12:48] Snowdrop Short: what about when we delete a group,
how do we do that?
[2009/02/17 12:48] Snowdrop Short: it's your program :-)
[2009/02/17 12:48] M1sha Dallin: remove from the grouplist
[2009/02/17 12:49] Snowdrop Short: there are very few absolutely
wrongs
[2009/02/17 12:49] Christy Lock: ok we need a class for unjoining a
group then
[2009/02/17 12:49] M1sha Dallin: assuming we actually want to delete
[2009/02/17 12:49] Christy Lock: we have to test is the group is a
valid group and then if so delete
[2009/02/17 12:50] Christy Lock: maybe some kind of failsafe so they
dont do it by accident
[2009/02/17 12:50] Snowdrop Short: ok .. try write some C# code,
which does that
[2009/02/17 12:50] M1sha Dallin: or should that be a question for the
Group class
[2009/02/17 12:50] Snowdrop Short: and share it via
[2009/02/17 12:50] Snowdrop Short: www.pastebin.ca
[2009/02/17 12:51] Snowdrop Short: then later, when we meet with the
other team
[2009/02/17 12:51] Christy Lock: ok
[2009/02/17 12:51] Snowdrop Short: we can align each others thoughts
[2009/02/17 12:51] Snowdrop Short: call me if you run into trouble
[2009/02/17 12:51] Christy Lock: kk we will hack on it a bit
[2009/02/17 12:51] M1sha Dallin: :-)
[2009/02/17 12:52] Snowdrop Short: happy hacking
[2009/02/17 12:52] Snowdrop Short: right .. how are you doing?
[2009/02/17 12:52] Adelle Fitzgerald: umm, ish lol
[2009/02/17 12:52] Snowdrop Short: ok
[2009/02/17 12:53] Snowdrop Short: what are your plans for group
member?
[2009/02/17 12:53] Snowdrop Short: what kind of information will it
hold
[2009/02/17 12:53] Snowdrop Short: what kind of methods will it
support
[2009/02/17 12:55] Adelle Fitzgerald: so far we have name, title and
last login
[2009/02/17 12:55] Starky Rubble: two strings and a DateTime
[2009/02/17 12:55] Snowdrop Short: first and last name
[2009/02/17 12:55] Starky Rubble: doh
[2009/02/17 12:55] Snowdrop Short: or just one name
[2009/02/17 12:55] Adelle Fitzgerald: it could be either
[2009/02/17 12:56] Adelle Fitzgerald: or could even refrence a UUID
[2009/02/17 12:56] Adelle Fitzgerald: but thats getting too complex
for this task I think
[2009/02/17 12:56] Snowdrop Short: ohh .. you've been studying I
think
[2009/02/17 12:56] Snowdrop Short: "reference"
[2009/02/17 12:56] Snowdrop Short: "UUID"
[2009/02/17 12:56] Snowdrop Short smiles
[2009/02/17 12:57] Starky Rubble: Oh so we ca go ahead with that
then?
[2009/02/17 12:57] Adelle Fitzgerald: hehe, not much tbh, but I know
some things form other things, and I have done 3.5 years in SL, so I
kinda know how it works ont he face of it
[2009/02/17 12:57] Adelle Fitzgerald: *from
[2009/02/17 12:58] Snowdrop Short: since this will be used from
script eventually, I think a UUID is a good thing
[2009/02/17 12:58] Snowdrop Short: .NET has something very very
similar
[2009/02/17 12:58] Snowdrop Short: called a "Guid"
[2009/02/17 12:58] Adelle Fitzgerald: yes, i'm familiar with it
[2009/02/17 12:58] Starky Rubble: ok so UUID, Title, last Login
[2009/02/17 12:58] Snowdrop Short: I would suggest you go for a
"Guid" right now
[2009/02/17 12:59] Snowdrop Short: when we get to OpenSim, it is
pretty easy to go back and forth
[2009/02/17 12:59] Starky Rubble: Im afraid I have to bail for a bit
- sorry
[2009/02/17 12:59] Snowdrop Short: ok
[2009/02/17 13:00] Snowdrop Short: do you know enough to actually
write what we've talked about in c# syntax?
[2009/02/17 13:00] Adelle Fitzgerald: tbh, I don't think so, not
without help
[2009/02/17 13:00] Snowdrop Short: ok
[2009/02/17 13:00] Snowdrop Short: that is the goal for now
[2009/02/17 13:00] Snowdrop Short: to become comfortable writing a
bit on your own
[2009/02/17 13:00] Snowdrop Short: just like the very first LSL
script
[2009/02/17 13:00] Adelle Fitzgerald nods
[2009/02/17 13:01] Snowdrop Short: you can use the "Group" class as
inspiration
[2009/02/17 13:01] Adelle Fitzgerald: mhmm
[2009/02/17 13:01] Snowdrop Short: date is called "DateTime" in c#
[2009/02/17 13:01] Adelle Fitzgerald: so... I am writing this as a
seperate program?
[2009/02/17 13:02] Adelle Fitzgerald: or including it in the program
you showed us?
[2009/02/17 13:02] Snowdrop Short: I think the easiest thing is to
just extend upon the program I gave you in pastebin
[2009/02/17 13:02] Adelle Fitzgerald: ok
[2009/02/17 13:02] Snowdrop Short: copy it to your local computer,
inside your IDE
[2009/02/17 13:02] Adelle Fitzgerald: i have already ;)
[2009/02/17 13:03] Adelle Fitzgerald: I will give it a go
[2009/02/17 13:03] Snowdrop Short: that will help you with syntax
coloring
[2009/02/17 13:03] Snowdrop Short: and when ever you have problem you
cannot figure
[2009/02/17 13:03] Snowdrop Short: call me, and paste it into
pastebin
[2009/02/17 13:03] Snowdrop Short: so we can discuss it
[2009/02/17 13:03] Adelle Fitzgerald: okies
[2009/02/17 13:03] Snowdrop Short: that's my purpose for today
[2009/02/17 13:03] Snowdrop Short: to do some tutoring
[2009/02/17 13:03] Adelle Fitzgerald nods
[2009/02/17 13:04] Snowdrop Short: and to be at hand for Q&A
[2009/02/17 13:04] Snowdrop Short: so don't hold back, just yell,
that's what I'm here for
[2009/02/17 13:04] Adelle Fitzgerald: im sure I will hehe
[2009/02/17 13:04] Snowdrop Short: great
[2009/02/17 13:04] Snowdrop Short: ok, I'll leave you to it then
[2009/02/17 13:04] Adelle Fitzgerald: okies :)
[2009/02/17 13:05] Snowdrop Short: how are you guys doing?
[2009/02/17 13:06] Snowdrop Short: hard at work I think
[2009/02/17 13:09] Snowdrop Short: hi Retro
[2009/02/17 13:09] Snowdrop Short: welcome
[2009/02/17 13:09] RetroDan Dezno: Am I late, I have no idea what UTC
is
[2009/02/17 13:09] Snowdrop Short: Universal Time Coordinated
[2009/02/17 13:10] RetroDan Dezno: So am I time co-ordinated?
[2009/02/17 13:10] RetroDan Dezno: 4:00 EST?
[2009/02/17 13:10] Snowdrop Short: the same time as in the UK, when
summer time is *not* in effect
[2009/02/17 13:10] RetroDan Dezno: GMT?
[2009/02/17 13:11] Snowdrop Short: that what used to be GMT in the
old days :-)
[2009/02/17 13:11] Snowdrop Short: before atomic clocks :-)
[2009/02/17 13:11] Snowdrop Short: you look like you need a rebake
[2009/02/17 13:11] Snowdrop Short: est is usually 5 hours behind UST
[2009/02/17 13:12] RetroDan Dezno: Am I pretty now?
[2009/02/17 13:12] Snowdrop Short: much better :-)
[2009/02/17 13:13] Snowdrop Short: broad shouldered too !
[2009/02/17 13:13] RetroDan Dezno: Dont be fooled, the shirt is
padded ;-)
[2009/02/17 13:13] Snowdrop Short: today we're working in groups on
individual pieces of code
[2009/02/17 13:13] RetroDan Dezno: ;-(
[2009/02/17 13:14] Snowdrop Short: and I'm ansering any questions
[2009/02/17 13:14] RetroDan Dezno: No one gonna wanna work with me
[2009/02/17 13:14] Snowdrop Short: try pinging Christy
[2009/02/17 13:14] Snowdrop Short: or M1Sha
[2009/02/17 13:14] Snowdrop Short: http://www.pastebin.ca/1340375
[2009/02/17 13:14] Snowdrop Short: they are working on the section of
the code which is called "GroupList"
[2009/02/17 13:15] Snowdrop Short: if needs be, setup a channel on
IRC for group discussion
[2009/02/17 13:15] Christy Lock: I dont know how to do that so if
yall do go ahead
[2009/02/17 13:15] M1sha Dallin: currently thinking about the type
for the Group List - should it be an ArrayList or justa List?
[2009/02/17 13:16] RetroDan Dezno: ArrayList
[2009/02/17 13:16] Snowdrop Short: for now, just go for an ArrayList
[2009/02/17 13:16] M1sha Dallin: ok - what are the advantages of
each?
[2009/02/17 13:16] Snowdrop Short: like I did in the "Group" class
[2009/02/17 13:16] Snowdrop Short: ArrayList .. allows for "random"
access at any point
[2009/02/17 13:16] Christy Lock: I have an idea retro we could walk
30 meters away and talk in openchat
[2009/02/17 13:17] Snowdrop Short: a list is better if you only add/
remove/read from either the beginning or the end of the list
[2009/02/17 13:17] Snowdrop Short: if that is the case, the List will
give you better performance
[2009/02/17 13:17] Snowdrop Short: that's a good idea, that way we
stay within OpenSim
[2009/02/17 13:18] Snowdrop Short: I'd really like to do most of the
work in here, in order to explore
[2009/02/17 13:18] Snowdrop Short: how much teaching can be done in
OpenSim
[2009/02/17 13:18] Snowdrop Short: lets meet back here in 20 minutes
[2009/02/17 13:19] Snowdrop Short: and IM me if you have any
questions
[2009/02/17 13:19] M1sha Dallin: ok
[2009/02/17 13:19] Christy Lock: kk
[2009/02/17 13:19] BlueWall Slade: the campfire is a good place

**M1sha & Christy and RetroDan's log below as they went off to chat**

[2009/02/17 13:19] Snowdrop Short: Retro?
[2009/02/17 13:20] RetroDan Dezno: going ot follow them right?
[2009/02/17 13:20] Snowdrop Short: yes, that way the three of you can
work together
[2009/02/17 13:21] Snowdrop Short: how are you doing Adelle
[2009/02/17 13:21] Adelle Fitzgerald: hmm, not sure
[2009/02/17 13:21] Adelle Fitzgerald: ill pastebin what I have
[2009/02/17 13:21] Snowdrop Short: great :-)
[2009/02/17 13:22] Snowdrop Short: remember, this is like the very
first time you wrote LSL
[2009/02/17 13:22] Snowdrop Short: feeling the doubt of whether
anything you wrote made sense
[2009/02/17 13:22] Adelle Fitzgerald: yes, and that was hard at
first, then one day just clicked into place
[2009/02/17 13:22] Adelle Fitzgerald: http://www.pastebin.ca/1340436
[2009/02/17 13:23] Adelle Fitzgerald: i think I have the structure
for it there, but i'm struggling on how to fill the data, into the
ArrayList
[2009/02/17 13:23] Adelle Fitzgerald: if you know what I mean?
[2009/02/17 13:23] Snowdrop Short: yes, I think so
[2009/02/17 13:24] Snowdrop Short: a little observation on your
"WriteToConsole"
[2009/02/17 13:24] Adelle Fitzgerald: oh, oops
[2009/02/17 13:24] Adelle Fitzgerald: i forgot the {4}
[2009/02/17 13:24] Snowdrop Short: yes
[2009/02/17 13:24] Adelle Fitzgerald: i mean 3
[2009/02/17 13:25] Snowdrop Short: and maybe you should use "Guid"
instead of "string" for _MemberGuid
[2009/02/17 13:25] Adelle Fitzgerald: hehe, i didnt know that existed
as such
[2009/02/17 13:25] Adelle Fitzgerald: not as a data type
[2009/02/17 13:25] Snowdrop Short: it is built into .Net
[2009/02/17 13:26] Adelle Fitzgerald: gotcha
[2009/02/17 13:26] Snowdrop Short: samething as "DateTime", "string"
[2009/02/17 13:26] Adelle Fitzgerald: yes, i understand now
[2009/02/17 13:26] Snowdrop Short: a bit more complex values, than
simple integers
[2009/02/17 13:26] Snowdrop Short: but you treat them almost the same
[2009/02/17 13:27] Snowdrop Short: now I tricky question
[2009/02/17 13:27] Snowdrop Short: why did you decide on the name
"GroupMembers"
[2009/02/17 13:27] Snowdrop Short: plural form?
[2009/02/17 13:28] Adelle Fitzgerald: oh i see, well as I see it a
group is more than one member
[2009/02/17 13:28] Adelle Fitzgerald: a group isnt a group with just
one member
[2009/02/17 13:28] Snowdrop Short: ok
[2009/02/17 13:29] Adelle Fitzgerald: oh, i understand now...
[2009/02/17 13:29] Snowdrop Short: but aren't you working on
information about just one member of a group?
[2009/02/17 13:29] Adelle Fitzgerald: the class is for a single
member only
[2009/02/17 13:29] Adelle Fitzgerald: yes
[2009/02/17 13:30] Snowdrop Short: one of the most difficult things
is comming up with good names for things
[2009/02/17 13:31] Snowdrop Short: a name that everybody will
intuitively understand
[2009/02/17 13:31] Adelle Fitzgerald: I try to be as descript as
possible without having massive string names
[2009/02/17 13:31] Snowdrop Short smiles
[2009/02/17 13:31] Snowdrop Short: the hallmark of good programing
[2009/02/17 13:31] Adelle Fitzgerald: ;)
[2009/02/17 13:32] Adelle Fitzgerald: it helps me loads when I
revisit a script months on
[2009/02/17 13:32] Snowdrop Short: yes, that and comments
[2009/02/17 13:32] Adelle Fitzgerald: i tend to be a bit sloppy on
comments :-/
[2009/02/17 13:32] Adelle Fitzgerald: i should comment more
[2009/02/17 13:32] Snowdrop Short: don't overdo comments, just enough
to make things clearing
[2009/02/17 13:33] Adelle Fitzgerald nods
[2009/02/17 13:33] Snowdrop Short: a program full of comments is hard
to read as well
[2009/02/17 13:33] Snowdrop Short: and you worry about keeping them
up to date
[2009/02/17 13:33] Adelle Fitzgerald: yes
[2009/02/17 13:33] Snowdrop Short: I know, later when we join
together
[2009/02/17 13:34] Adelle Fitzgerald: hehe, ive just realised
something...
[2009/02/17 13:34] Snowdrop Short: that the others would like for you
to do some stuff in the constructor
[2009/02/17 13:34] Adelle Fitzgerald: the place holder for the
GroupMember was already in place
[2009/02/17 13:34] Snowdrop Short nods
[2009/02/17 13:34] Snowdrop Short: and my suggestion for a name
[2009/02/17 13:34] Adelle Fitzgerald: i didnt even notice it tbh :(
[2009/02/17 13:35] Adelle Fitzgerald: i saw it was empty and ignored
it
[2009/02/17 13:35] Snowdrop Short smiles
[2009/02/17 13:35] Snowdrop Short: that's ok
[2009/02/17 13:35] Adelle Fitzgerald: thats a lesson learned for me
in itself now
[2009/02/17 13:35] Snowdrop Short: just like you can "scan" LSL
script today
[2009/02/17 13:35] Snowdrop Short: you'll pretty soon learn to do the
same with c#
[2009/02/17 13:35] Adelle Fitzgerald nods
[2009/02/17 13:36] Snowdrop Short: it is mostly a matter of trying
and working with it
[2009/02/17 13:36] Snowdrop Short: I think c# is one of the better
languages I have ever used
[2009/02/17 13:37] Adelle Fitzgerald: I havent done much with others
at all, so its hard for me to tell. I do know I have a hard time with
VBS though
[2009/02/17 13:37] Adelle Fitzgerald: but I like LSL because it is
sorta intuitive in itself
[2009/02/17 13:37] Adelle Fitzgerald: but i guess it was designed
that way so non-scripters could pick it up easily
[2009/02/17 13:38] Snowdrop Short: I have a difficult time dealing
with states in LSL, and then I'm always writhing script which runs so
Sloooooov
[2009/02/17 13:39] Adelle Fitzgerald: ohh i love states!
[2009/02/17 13:39] Adelle Fitzgerald: its like being able to ahve
lots of LSL scripts into one script
[2009/02/17 13:39] Adelle Fitzgerald: you ahve to eb warey of globals
though
[2009/02/17 13:40] Adelle Fitzgerald: states dont like it if teh
variables arent global
[2009/02/17 13:40] Snowdrop Short: yes
[2009/02/17 13:40] Snowdrop Short: one more reason I like c# .. there
really aren't globals
[2009/02/17 13:41] Snowdrop Short: you can "cheat" using something
called a singleton
[2009/02/17 13:41] Adelle Fitzgerald: whats that?
[2009/02/17 13:41] Snowdrop Short: it is a special kind of class,
that only exists in one copy
[2009/02/17 13:42] Snowdrop Short: and that copy is shared between
all other objects in the application
[2009/02/17 13:42] Adelle Fitzgerald: gotcha
[2009/02/17 13:42] Snowdrop Short: it is usually created when the
application starts
[2009/02/17 13:42] Snowdrop Short: but only once
[2009/02/17 13:42] Snowdrop Short: and then destroyed when the
application ends
[2009/02/17 13:42] Adelle Fitzgerald: like globals are in LSL
[2009/02/17 13:42] Snowdrop Short: yes
[2009/02/17 13:43] Snowdrop Short: but you have to do something
explcitly in order to create a singleton
[2009/02/17 13:43] Adelle Fitzgerald nods
[2009/02/17 13:44] Starky Rubble: Cool
[2009/02/17 13:44] Snowdrop Short: wb Starky
[2009/02/17 13:44] Adelle Fitzgerald: wb starky
[2009/02/17 13:44] Starky Rubble: I just read the chat and I
undertand all that was said
[2009/02/17 13:44] Snowdrop Short: Adelle has done it all
[2009/02/17 13:44] Snowdrop Short: all that is left for you is to
approve it :-)
[2009/02/17 13:45] Adelle Fitzgerald: oh, i have?
[2009/02/17 13:45] Starky Rubble: I was comfy with DateTime and GUID
from VBA
[2009/02/17 13:45] Adelle Fitzgerald: i thought that was just half of
it?
[2009/02/17 13:45] Adelle Fitzgerald: http://www.pastebin.ca/1340467
[2009/02/17 13:45] Starky Rubble: and saw the Class prototype at the
top
[2009/02/17 13:45] Snowdrop Short: yes, Microsoft pretty much
invented the Guid's and the UUIDøs
[2009/02/17 13:45] Adelle Fitzgerald: thats the tidied code
[2009/02/17 13:46] Snowdrop Short: great :-)
[2009/02/17 13:46] Snowdrop Short: so most of their languages support
Guid's natively
[2009/02/17 13:46] Starky Rubble: We had discussed whether to have
the redundant _MemberName and had decided in favor
[2009/02/17 13:47] Snowdrop Short: redundant?
[2009/02/17 13:47] Snowdrop Short: how redundant
[2009/02/17 13:48] Starky Rubble: instaed of using the GUID/UUID to
fetch ity
[2009/02/17 13:48] Starky Rubble: when needed
[2009/02/17 13:48] Adelle Fitzgerald: i think what Starky means is
that when the data is stored in a database, it will store the member
name too, along with the UUID, that will enable ti to be faster to
display or use from the group tables instead of having to do a lookup
between tables for name <--> UUID
[2009/02/17 13:48] Adelle Fitzgerald: it will used more disk, but
would be faster
[2009/02/17 13:48] Snowdrop Short: yes, makes good sense
[2009/02/17 13:48] Starky Rubble: right but the data is then in two
places
[2009/02/17 13:48] Snowdrop Short: ok .. I'll scoot off and see how
the others are doing
[2009/02/17 13:48] Starky Rubble: and might later disagree
[2009/02/17 13:49] Adelle Fitzgerald: okies Snowdrop
[2009/02/17 13:49] Snowdrop Short: that's called "refactoring" in
code speak
[2009/02/17 13:49] Starky Rubble: not likely here but alwats worth
remembering
[2009/02/17 13:49] Snowdrop Short: changing your working code, into
something better
[2009/02/17 13:50] Adelle Fitzgerald: I didnt realise I had done the
task at all yanno
[2009/02/17 13:50] Adelle Fitzgerald: i was looking too far ahead to
build the new arraylist with the GroupMember class
[2009/02/17 13:51] Adelle Fitzgerald: then ooutput to the Group class
[2009/02/17 13:51] Starky Rubble: right
[2009/02/17 13:52] Adelle Fitzgerald: hehe Snowdrop pointed out a
couple of mistakes, and I found some, but she kept talking to me about
stuff.. I was thinking 'i have to get on with this code!'
[2009/02/17 13:52] Adelle Fitzgerald: i didnt realise i was done
[2009/02/17 13:55] Starky Rubble: The code looks great
[2009/02/17 13:55] Adelle Fitzgerald: thanks :)
[2009/02/17 13:55] Adelle Fitzgerald: i even wrote it by hand too,
using the IDE to fill it in for me
[2009/02/17 13:56] Adelle Fitzgerald: its good that way
[2009/02/17 13:56] Starky Rubble: yeppers mee too
[2009/02/17 13:56] Starky Rubble: thats how I remembered DateTime
[2009/02/17 13:56] Starky Rubble: auofill lol
[2009/02/17 13:56] Adelle Fitzgerald: haha
[2009/02/17 13:57] Adelle Fitzgerald: i didnt knwo the exact syntax
of it, so i just wrote 'date' and it filled it in for me hehe
[2009/02/17 13:59] Starky Rubble: we probably wont need the
WriteToConsole method in the GroupMember class eventually I imagine
[2009/02/17 14:00] Adelle Fitzgerald: no, but it would eb good to
keep it there so when the program is run with some members in it, we
get a visual output to make sure our code is correct
[2009/02/17 14:00] Adelle Fitzgerald: and it does what we want
[2009/02/17 14:00] Adelle Fitzgerald: i use llSay all the time for
talking variables when scripting LSL
[2009/02/17 14:01] Starky Rubble: right but we could do a loop in the
GroupList class...
[2009/02/17 14:01] Adelle Fitzgerald: on bigger scripts i will use a
[2009/02/17 14:02] Adelle Fitzgerald: 'debug' integer if i have lots
of llSay's.. debug = TRUE.......if (debug) llSay(0,blahhh);
[2009/02/17 14:02] Starky Rubble: right
[2009/02/17 14:02] Adelle Fitzgerald: that way i can turn them all on
and off in one go
[2009/02/17 14:02] Adelle Fitzgerald: and i dont have to go right
through the code until it is finished
[2009/02/17 14:02] Starky Rubble: yes - thats great
[2009/02/17 14:03] Adelle Fitzgerald: its best to take them out
eventually though, especially with LSL as it can be lots of extra if
statements
[2009/02/17 14:04] Starky Rubble: in a compiled language th unused
lines don't matter speedwise
[2009/02/17 14:05] Starky Rubble: just for convenience and
readability
[2009/02/17 14:05] Adelle Fitzgerald: no, nor do comments, but if i
leave in the debug = FALSE, it has to look at that every time for the
if statement
[2009/02/17 14:05] Adelle Fitzgerald: can also increase script memory
[2009/02/17 14:05] Starky Rubble: yes
[2009/02/17 14:06] Starky Rubble: back in 83 or 4 I took a course in
compiler design
[2009/02/17 14:06] Starky Rubble: heh
[2009/02/17 14:07] Adelle Fitzgerald: wow
[2009/02/17 14:07] Starky Rubble: we (about 4 of us) implemented a
Pascal compiler on the mainframe
[2009/02/17 14:07] Adelle Fitzgerald: you mean to compile pascal into
machinecode?
[2009/02/17 14:07] Starky Rubble: it was crazy difficult
[2009/02/17 14:08] Adelle Fitzgerald: ohh didnt they used to be
called 'assemblers' back then?
[2009/02/17 14:08] Starky Rubble: No, it was a Tandem Nonstop II
mainframe and it spoke TAL
[2009/02/17 14:08] Starky Rubble: Tandem Application language
[2009/02/17 14:08] Adelle Fitzgerald: hehe ok, you lost me
[2009/02/17 14:09] Starky Rubble: Tandem was an early Big Iron maker
like IBM
[2009/02/17 14:09] Starky Rubble: and so we wrote this thing that
took pascal and wrote out TAL
[2009/02/17 14:09] Adelle Fitzgerald: gotcha
[2009/02/17 14:09] Starky Rubble: the writing out part is actually
the easy bit
[2009/02/17 14:10] Adelle Fitzgerald: so, C# is a compiler right?
[2009/02/17 14:10] Starky Rubble: yes
[2009/02/17 14:10] Adelle Fitzgerald: i know its a language
[2009/02/17 14:10] Starky Rubble: that too
[2009/02/17 14:10] Adelle Fitzgerald: but it compiles into whatever
using the .Net framework
[2009/02/17 14:10] Adelle Fitzgerald: and .Net is just a big library
that makes it easier to program
[2009/02/17 14:11] Starky Rubble: I think the output is a common
threaded low level language
[2009/02/17 14:11] Adelle Fitzgerald nods
[2009/02/17 14:11] Starky Rubble: that 44 diffferent langauges
compile to
[2009/02/17 14:11] Adelle Fitzgerald: machinecode?
[2009/02/17 14:12] Starky Rubble: no higher level than assmbler but
not much lol
[2009/02/17 14:12] Adelle Fitzgerald: gotcha
[2009/02/17 14:12] Adelle Fitzgerald: i will ahve to look into it
later
[2009/02/17 14:13] Adelle Fitzgerald: I'm quite stunned tbh that I
managed that code
[2009/02/17 14:13] Adelle Fitzgerald: its given me a bit of a boost,
i was wondering if I could even do bits of it earlier
[2009/02/17 14:13] Adelle Fitzgerald: then you left... i was almost
scared for a bit!
[2009/02/17 14:13] Starky Rubble: I think .Net is the virtual machine
that excutes that compiled code
[2009/02/17 14:14] Starky Rubble: which keeps it all a layer above
the actual hardware
[2009/02/17 14:14] Adelle Fitzgerald: gotcha
[2009/02/17 14:14] Starky Rubble: so it is more platform independent
[2009/02/17 14:15] Adelle Fitzgerald: The Microsoft .NET Framework is
a software framework that is available with several Microsoft Windows
operating systems. It includes a large library of coded solutions to
prevent common programming problems and a virtual machine that manages
the execution of programs written specifically for the framework.
The .NET Framework is a key Microsoft offering and is intended to be
used by most new applications created for the Windows platform.
[2009/02/17 14:15] Adelle Fitzgerald: http://en.wikipedia.org/wiki/.NET_Framework
[2009/02/17 14:16] Starky Rubble: Its a little confusing for me
because it has echos of 20some years of MS coding practice in it going
back ti Quickbasic, C and MASM
[2009/02/17 14:16] Adelle Fitzgerald: hehe
[2009/02/17 14:16] Starky Rubble: yes, thats it precisely
[2009/02/17 14:16] Adelle Fitzgerald: i remember writing a program in
QBasic years and years ago
[2009/02/17 14:16] Starky Rubble: the VM
[2009/02/17 14:16] Adelle Fitzgerald: compiles to CLR, common
language runtime
[2009/02/17 14:17] Starky Rubble: yes - wiith a DOS prompt lol
[2009/02/17 14:17] Adelle Fitzgerald: it was a daft program, but
something I needed to do as part of my training
[2009/02/17 14:17] Starky Rubble: I bet its a decendent of Threaded P
Code lol
[2009/02/17 14:17] Adelle Fitzgerald: it made a ball go from one side
of the screen in an arc to the other
[2009/02/17 14:17] Starky Rubble: heh
[2009/02/17 14:17] Starky Rubble: those were the days
[2009/02/17 14:18] Adelle Fitzgerald: yep hehe
[2009/02/17 14:18] Starky Rubble: before graphics cards
[2009/02/17 14:18] Adelle Fitzgerald: oh yes
[2009/02/17 14:18] Adelle Fitzgerald: 80 colums
[2009/02/17 14:18] Adelle Fitzgerald: lol
[2009/02/17 14:18] Starky Rubble: we had a color monitor in the
computer lab
[2009/02/17 14:19] Starky Rubble: 100 plus terminals took turns to
use iy
[2009/02/17 14:19] Adelle Fitzgerald: lol
[2009/02/17 14:19] Starky Rubble: 256 colors!!
[2009/02/17 14:19] Adelle Fitzgerald: 256!!! wow
[2009/02/17 14:19] Adelle Fitzgerald: not just 16?
[2009/02/17 14:19] Starky Rubble: I know
[2009/02/17 14:20] Starky Rubble: We hand coded Gourard shaing etc.
[2009/02/17 14:20] Adelle Fitzgerald: its crazy... and look now, were
here in a virtual world as avatars learnign C#
[2009/02/17 14:20] Starky Rubble: yep
[2009/02/17 14:20] Adelle Fitzgerald: i shudder to think what it will
be like in another 20 years time
[2009/02/17 14:21] Adelle Fitzgerald: according too moore's law, i
think a standard PC will ahve something like a 2000core cpu!
[2009/02/17 14:21] Starky Rubble: Yeh there have been several
breakthroughs recently that have reinvigorated Moore's law
[2009/02/17 14:21] Starky Rubble: it now loooks like it will hold for
another 20 years anyway
[2009/02/17 14:22] Adelle Fitzgerald: yep
[2009/02/17 14:22] Adelle Fitzgerald: i hope so
[2009/02/17 14:22] Starky Rubble: So yes massivly parallel very fast
very energy efficient very tiny devices
[2009/02/17 14:23] Starky Rubble: Or we all could be dust in the wind
lol
[2009/02/17 14:23] Adelle Fitzgerald: haha
[2009/02/17 14:23] Starky Rubble: its hard to say
[2009/02/17 14:23] Adelle Fitzgerald: but i think we will ahve 10
petabyte hard disks in 20 years !!
[2009/02/17 14:23] Starky Rubble: exabyte
[2009/02/17 14:23] Adelle Fitzgerald: thats pretty much
uncomprehendable at the moment
[2009/02/17 14:23] Adelle Fitzgerald: peta is after tera
[2009/02/17 14:24] Starky Rubble: Terabytes go for ~$100 yes and is
followed by Exa I think\
[2009/02/17 14:24] Adelle Fitzgerald: yes it it
[2009/02/17 14:24] Adelle Fitzgerald: so prolly 30~35 years before
exabyte!
[2009/02/17 14:25] Starky Rubble: Oh good

**M1sha & Christy and RetroDan returned to the lecture area**

[2009/02/17 14:25] Adelle Fitzgerald: ahh welcome back :)
[2009/02/17 14:25] Snowdrop Short: ok ...
[2009/02/17 14:25] Snowdrop Short: all of you did a good job on it
[2009/02/17 14:25] Snowdrop Short: congratulations on getting your
feet wet
[2009/02/17 14:26] Snowdrop Short: and completing your first real
assignment in c# programming
[2009/02/17 14:26] Adelle Fitzgerald smiles
[2009/02/17 14:26] Snowdrop Short: I think you should all share paste
bin results
[2009/02/17 14:26] Starky Rubble: is there a pastebin
[2009/02/17 14:26] Starky Rubble: right
[2009/02/17 14:26] M1sha Dallin: http://www.pastebin.ca/1340505
[2009/02/17 14:26] M1sha Dallin: Our last state
[2009/02/17 14:27] Adelle Fitzgerald: http://www.pastebin.ca/1340467
[2009/02/17 14:27] M1sha Dallin: ty
[2009/02/17 14:27] Snowdrop Short: and I'll event throw in some home
work :-)
[2009/02/17 14:27] Adelle Fitzgerald: oohh
[2009/02/17 14:28] Snowdrop Short: we really need to combine the
efforts you have made
[2009/02/17 14:28] Starky Rubble: yes
[2009/02/17 14:28] Snowdrop Short: so that it is one program, and not
two separate programs
[2009/02/17 14:28] Adelle Fitzgerald: okies
[2009/02/17 14:29] Snowdrop Short: next time, we'll look into saving
the date into a diskfile
[2009/02/17 14:29] Starky Rubble: ok
[2009/02/17 14:29] Snowdrop Short: there are many ways we can do that
[2009/02/17 14:30] Snowdrop Short: but we will use something which
works almost automagically in c#
[2009/02/17 14:30] Starky Rubble: RetroDan thats http://www.pastebin.ca/1340467
and http://www.pastebin.ca/1340505
[2009/02/17 14:30] Snowdrop Short: called "XML Persistence"
[2009/02/17 14:30] Adelle Fitzgerald: is that writing to XML files?
[2009/02/17 14:30] Snowdrop Short: yes
[2009/02/17 14:30] Adelle Fitzgerald: hi BlueWall
[2009/02/17 14:31] Snowdrop Short: I think databases is a bit out of
reach right now
[2009/02/17 14:31] Snowdrop Short: so we'll write XML to file
[2009/02/17 14:31] Adelle Fitzgerald nods
[2009/02/17 14:31] M1sha Dallin: ok
[2009/02/17 14:31] BlueWall Slade: Hi - the region heald up?
[2009/02/17 14:31] Snowdrop Short: yes, it held up :-)
[2009/02/17 14:31] Starky Rubble: Yes Bluewall
[2009/02/17 14:31] BlueWall Slade: awesome
[2009/02/17 14:31] Adelle Fitzgerald: its super Blue :)
[2009/02/17 14:31] Adelle Fitzgerald: not a single glitch
[2009/02/17 14:32] Snowdrop Short: so what did you learn today?
[2009/02/17 14:32] BlueWall Slade: i'll make a couple of more small
spots for group discussions
[2009/02/17 14:32] Starky Rubble: Some datatypes
[2009/02/17 14:32] Christy Lock: so the homework is to combine the
programs?
[2009/02/17 14:32] Snowdrop Short: that's a good idea, it really
helps
[2009/02/17 14:33] Snowdrop Short: yes, combine the two programs into
one
[2009/02/17 14:33] Christy Lock: ok got it
[2009/02/17 14:33] Snowdrop Short: and remember, I'm just an IM away
on IRC
[2009/02/17 14:33] Adelle Fitzgerald smiles
[2009/02/17 14:33] BlueWall Slade: was there a pastbin of the work?
[2009/02/17 14:33] Starky Rubble: ok
[2009/02/17 14:34] Snowdrop Short: two pastebins
[2009/02/17 14:34] Adelle Fitzgerald: there was several Blue
[2009/02/17 14:34] BlueWall Slade: ahh
[2009/02/17 14:34] Adelle Fitzgerald: http://www.pastebin.ca/1340467
and http://www.pastebin.ca/1340505
[2009/02/17 14:34] Starky Rubble: there are two at the moment
Bluewall
[2009/02/17 14:34] Christy Lock: ok I see XML Persistence on the msdn
site
[2009/02/17 14:34] Adelle Fitzgerald: they are the finished tasks
[2009/02/17 14:34] BlueWall Slade: shoulda left my avie parked here
[2009/02/17 14:34] BlueWall Slade: thaks!
[2009/02/17 14:34] Adelle Fitzgerald: :)
[2009/02/17 14:35] Snowdrop Short: you can also get at the pastebins
from the chat log
[2009/02/17 14:35] Snowdrop Short: they'll live for 30 days
[2009/02/17 14:35] Adelle Fitzgerald: i usually put them at the
bottom of the log in the group web thingy anyway
[2009/02/17 14:35] Snowdrop Short: before we split, I'd really like
to hear from you
[2009/02/17 14:35] Adelle Fitzgerald: preserved forever
[2009/02/17 14:35] M1sha Dallin: http://www.pastebin.ca/1340517
maybe? Needs some group members to be added
[2009/02/17 14:35] Snowdrop Short: what you have learned
[2009/02/17 14:35] Christy Lock: today I learned to divide and
conquer
[2009/02/17 14:36] Starky Rubble: cool
[2009/02/17 14:36] Snowdrop Short: that's the most powerfull strategy
known to any developer
[2009/02/17 14:36] Adelle Fitzgerald: i learned loads today, how to
write a simple class, different data types, learn to READ THE CODE
first! lol
[2009/02/17 14:36] Snowdrop Short whispers: well, besides "get
somebody else to do it"
[2009/02/17 14:37] Snowdrop Short: how did I whisper?
[2009/02/17 14:37] Snowdrop Short: ohh ... well
[2009/02/17 14:37] Adelle Fitzgerald: i'm also getting a better feel
for the code too, its not as frightening to me now
[2009/02/17 14:37] Snowdrop Short: it was appropriate
[2009/02/17 14:37] Adelle Fitzgerald: shift + enter = whisper, ctrl +
enter = shout
[2009/02/17 14:37] Snowdrop Short: hmmm ... I learned something
new :-)
[2009/02/17 14:37] Adelle Fitzgerald: ;)
[2009/02/17 14:38] Starky Rubble: gotta love that
[2009/02/17 14:38] Snowdrop Short: I always love to learn new, to see
the world with new eyes :-)
[2009/02/17 14:38] Starky Rubble: I wonder how the chat groups logs
will get merged
[2009/02/17 14:38] Adelle Fitzgerald: on other thing i have learned,
is that if two groups are going to make a program together, they need
to talk, because I dont have much a clue of M1sha's code
[2009/02/17 14:38] BlueWall Slade: Haaa, that code grew today :)
[2009/02/17 14:39] Adelle Fitzgerald: and Christy's
[2009/02/17 14:39] Snowdrop Short: that why merging the code is a
good excersice
[2009/02/17 14:39] Adelle Fitzgerald: I will look over it though, see
if i can understand it
[2009/02/17 14:39] Snowdrop Short: you need to get to understand the
code, if you are to merge it
[2009/02/17 14:40] Christy Lock: omg m1sha we didnt comment it
[2009/02/17 14:40] Christy Lock: yipe
[2009/02/17 14:40] Christy Lock: sorry
[2009/02/17 14:40] Starky Rubble: Right and maybe the chatlog from
the GroupList folks could be forwarded to Adelle?
[2009/02/17 14:40] M1sha Dallin: We should have a go at the AddMember
and DeleteMember functions as well
[2009/02/17 14:40] M1sha Dallin: and add comments :-)
[2009/02/17 14:40] Christy Lock: they are not used right now
[2009/02/17 14:41] Snowdrop Short: ok .. I hope you had as much fun
as I had

**M1sha, Christy and RetroDan returned to the chat area **


[2009/02/17 13:20] Christy Lock: is this far enough ?
[2009/02/17 13:20] M1sha Dallin: should be
[2009/02/17 13:20] Christy Lock: ok so ArrayList() is it
[2009/02/17 13:20] M1sha Dallin: I got as far as public void
AddNewGroup (string name)
{
_OSGroups.Add (name);
}
[2009/02/17 13:20] Christy Lock: ohh yes thats it
[2009/02/17 13:20] M1sha Dallin: assuming groups retaina na erather
than an ID
[2009/02/17 13:21] Christy Lock: lemme get that in there
[2009/02/17 13:21] M1sha Dallin: retain a name
[2009/02/17 13:21] Christy Lock: hey retro
[2009/02/17 13:21] Christy Lock: lemme get this in the code Ill paste
where we are so far
[2009/02/17 13:21] RetroDan Dezno: hey hey ;-)
[2009/02/17 13:21] Christy Lock: Im totally new at c# so it may be
all wrong
[2009/02/17 13:22] Christy Lock: ok this will spam a bit
[2009/02/17 13:22] Christy Lock: but heres what I got
[2009/02/17 13:22] Christy Lock: ////////
[2009/02/17 13:22] Christy Lock: using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
}


// all known groups
public class GroupList
{
public GroupList(string name)
{
_OsGroups = new ArrayList();
}

public ArrayList _OsGroups;
}
public void AddNewGroup (string name)
{
_OSGroups.Add (name);
}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_Description = description;
_Members = new ArrayList();
_Groups =


}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members {2}",
_Name, _Description, _Members.Count);
}

public string _Name;
public string _Description;
public ArrayList _Members;
}
[2009/02/17 13:22] Christy Lock: using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
}


// all known groups
public class GroupList
{
public GroupList(string name)
{
_OsGroups = new ArrayList();
}

public ArrayList _OsGroups;
}
public void AddNewGroup (string name)
{
_OSGroups.Add (name);
}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_Description = description;
_Members = new ArrayList();
_Groups =


}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members {2}",
_Name, _Description, _Members.Count);
}

public string _Name;
public string _Description;
public ArrayList _Members;
}
[2009/02/17 13:23] Christy Lock: oh it didnt paste
[2009/02/17 13:23] Christy Lock: ok great
[2009/02/17 13:23] Christy Lock: lemme try paste bin
[2009/02/17 13:24] RetroDan Dezno: oK i got it
[2009/02/17 13:24] M1sha Dallin: and a remove without returning any
status
[2009/02/17 13:24] M1sha Dallin: public void DeleteGroup (string
name)
{
if ( _OSGroups.Contains (name) {
_OSGroups.Remove (name);
}
}
[2009/02/17 13:24] M1sha Dallin: but think it should return success
or fail
[2009/02/17 13:25] Christy Lock: ok are these inside the GroupList
class?
[2009/02/17 13:25] M1sha Dallin: and we should really be using a
group id rather than a name
[2009/02/17 13:25] Christy Lock: oh thats true
[2009/02/17 13:25] M1sha Dallin: yes
[2009/02/17 13:26] Christy Lock: ok lemme hack on this a sec
[2009/02/17 13:26] M1sha Dallin: contains and remove are in the
ArrayList class
[2009/02/17 13:27] M1sha Dallin: Snowdrop suggested guid as an id
type
[2009/02/17 13:27] M1sha Dallin: Class group should define a new guid
on group creation and pass that to groupList - I think :-)
[2009/02/17 13:27] M1sha Dallin: rather than the group name
[2009/02/17 13:29] Christy Lock: ok this compiles
[2009/02/17 13:29] Christy Lock: all known groups
public class GroupList
{
public ArrayList _OsGroups;

public GroupList(string name)
{
_OsGroups = new ArrayList();
}


// add to the group list
public void AddNewGroup (string name)
{
_OsGroups.Add (name);
}

// delete from the group list
public void DeleteGroup(string name)
{
if (_OsGroups.Contains(name))
{
_OsGroups.Remove(name);
}
}
}
[2009/02/17 13:29] Christy Lock: retro you got any ideas?
[2009/02/17 13:30] RetroDan Dezno: Sorry
[2009/02/17 13:31] Christy Lock: Ive seen a way to create a new LSL
type UUID
[2009/02/17 13:31] Christy Lock: oh np you see where we are though?
[2009/02/17 13:31] RetroDan Dezno: I see add and delete functions for
the list
[2009/02/17 13:32] Christy Lock: we were thinking everytime a new
group is created that it adds to a growing list of groups
[2009/02/17 13:32] Christy Lock: _OsGroups
[2009/02/17 13:32] Christy Lock: so have the structure there to
exapnd and contract that array
[2009/02/17 13:32] Christy Lock: but I dont know how to call those
methods from when they create the group
[2009/02/17 13:33] Christy Lock: I supose from here we need to have
another function that asks if they wish to add or delete
[2009/02/17 13:33] Christy Lock: then take the group name feed it
into the add or del methor
[2009/02/17 13:33] Christy Lock: d
[2009/02/17 13:33] RetroDan Dezno: You mean prompt the user?
[2009/02/17 13:33] Christy Lock: yes
[2009/02/17 13:34] Christy Lock: well on creation it should be
automatic
[2009/02/17 13:34] Christy Lock: lets do that first
[2009/02/17 13:34] RetroDan Dezno: Print to console or delete?
[2009/02/17 13:34] RetroDan Dezno: Read console input
[2009/02/17 13:34] RetroDan Dezno: Switch Command
[2009/02/17 13:35] RetroDan Dezno: no wait...
[2009/02/17 13:35] RetroDan Dezno: print to console "command?"
[2009/02/17 13:35] RetroDan Dezno: A- Add user
[2009/02/17 13:35] RetroDan Dezno: D - Delete user
[2009/02/17 13:35] Christy Lock: Im stuck on adding the group
automatically on creation
[2009/02/17 13:35] M1sha Dallin: needs to be something like
GroupList.AddNewGroup (_GroupID);
[2009/02/17 13:36] Christy Lock: ok what I understand is we create a
new group using the Group class
[2009/02/17 13:36] M1sha Dallin: though I was thinking of replacing
name with the guid
[2009/02/17 13:36] Christy Lock: but how does that also add the name?
[2009/02/17 13:36] M1sha Dallin: hang on
[2009/02/17 13:36] Christy Lock: yes and the name should be replaced
for sure
[2009/02/17 13:36] M1sha Dallin: public Group(string name, string
description)
{
_Name = name;
_GroupID = new Guid;
_Description = description;
_Members = new ArrayList();

GroupList.AddNewGroup (_GroupID);

}
[2009/02/17 13:37] M1sha Dallin: doesn't compile though
[2009/02/17 13:37] Christy Lock: yes the Group needs to have that
inside the base class
[2009/02/17 13:37] Christy Lock: yiipe
[2009/02/17 13:37] Christy Lock: inheritance?
[2009/02/17 13:37] Christy Lock: I barely know what that is
[2009/02/17 13:37] M1sha Dallin: How does pastebin work - I'll show
what I've got?
[2009/02/17 13:37] Christy Lock: but it does allow a class to inherit
all from another
[2009/02/17 13:38] Christy Lock: I couldnt fogure it out
[2009/02/17 13:38] M1sha Dallin: http://www.pastebin.ca/1340459
[2009/02/17 13:38] M1sha Dallin: Doesn't compile - but my current
thoughts
[2009/02/17 13:38] Christy Lock: ok Im looking
[2009/02/17 13:39] Christy Lock: yep thats exactly what Im thinking
[2009/02/17 13:39] M1sha Dallin: Actually the Add should also check
for presence
[2009/02/17 13:39] M1sha Dallin: avoid duplicate groups
[2009/02/17 13:39] Christy Lock: yes
[2009/02/17 13:40] Christy Lock: but we cant access the AddNewGroup()
from the method inside Group
[2009/02/17 13:40] Christy Lock: lemme move that outside the curlys
[2009/02/17 13:41] Christy Lock: do we need to feed the method an id?
[2009/02/17 13:41] Christy Lock: we send in a name and description
there
[2009/02/17 13:41] Christy Lock: when we create our instance of a new
group
[2009/02/17 13:41] Christy Lock: but no id
[2009/02/17 13:42] Christy Lock: on never mind thats a static class
[2009/02/17 13:43] M1sha Dallin: not sure
[2009/02/17 13:44] M1sha Dallin: lost on the syntax structure here
[2009/02/17 13:44] Christy Lock: yeah we know we need to add it but
how
[2009/02/17 13:44] M1sha Dallin: what is the not operator in an if -
is it still !
[2009/02/17 13:46] Christy Lock: lets move that to main()
[2009/02/17 13:46] Christy Lock: on the bottom
[2009/02/17 13:47] M1sha Dallin: just tried :-)
[2009/02/17 13:50] Snowdrop Short: hi
[2009/02/17 13:50] Snowdrop Short: how are you doing?
[2009/02/17 13:50] Christy Lock: oh hi
[2009/02/17 13:50] M1sha Dallin: stuck
[2009/02/17 13:50] Snowdrop Short: ok
[2009/02/17 13:50] Christy Lock: well we decided to get a UUID for
the group
[2009/02/17 13:50] Christy Lock: instead of a name
[2009/02/17 13:50] Snowdrop Short: anything I can help with, or is
the sim causing trouble
[2009/02/17 13:50] Snowdrop Short: ok
[2009/02/17 13:51] Christy Lock: that wont compile for me _Group =
new Guid
[2009/02/17 13:51] Christy Lock: in opensim I think we will need an
lsl type though
[2009/02/17 13:51] Snowdrop Short: try putting it on pastebin
[2009/02/17 13:51] Christy Lock: umm well
[2009/02/17 13:51] Christy Lock: lol I dont know how
[2009/02/17 13:51] M1sha Dallin: http://www.pastebin.ca/1340476
[2009/02/17 13:51] Snowdrop Short: yes in OpenSim it's called and
UUID
[2009/02/17 13:51] Christy Lock: oh ok
[2009/02/17 13:52] Christy Lock: lemme get what I have
[2009/02/17 13:52] M1sha Dallin: problem is at line 49
[2009/02/17 13:52] Snowdrop Short: but there is a very similar thing
called a Guid in .net
[2009/02/17 13:52] Christy Lock: thats what she got
[2009/02/17 13:53] M1sha Dallin: want to use a new guid in teh
constructor for group
[2009/02/17 13:53] M1sha Dallin: teh way of doing it escapes me
[2009/02/17 13:53] Snowdrop Short: ok
[2009/02/17 13:54] Snowdrop Short: rembember our talk last tuesday
[2009/02/17 13:54] Christy Lock: I actually got controlable bots to
work in sl using the code and saw they had UUIDs I think were int32
types
[2009/02/17 13:54] Snowdrop Short: about the difference between a
class and and object
[2009/02/17 13:54] M1sha Dallin: partly
[2009/02/17 13:54] RetroDan Dezno: Dont we need something like {3} to
reference them
[2009/02/17 13:54] Christy Lock: the class is the template and the
object the specific
[2009/02/17 13:54] Snowdrop Short: GroupList is the name of a class,
just a template really
[2009/02/17 13:54] Christy Lock: ok
[2009/02/17 13:55] M1sha Dallin: GroupList.AddNewGroup should be
_OSGGroups.Add....
[2009/02/17 13:55] Christy Lock: the pastebin has M1sha's code which
is about what I got
[2009/02/17 13:55] Christy Lock: Snowdrop we have the
GroupList.AddNewGroup(_GroupID);
[2009/02/17 13:56] Snowdrop Short: the problem you've run into is a
bit tricky to sort out
[2009/02/17 13:56] Christy Lock: inside the Group
[2009/02/17 13:56] Christy Lock: shouldnt that be in the main?
[2009/02/17 13:56] Snowdrop Short: yes, because main is supposed to
create an object of GroupList
[2009/02/17 13:56] Snowdrop Short: main will hold a handle to that
[2009/02/17 13:57] Christy Lock: ok because we dont need it as part
of a base class
[2009/02/17 13:57] Christy Lock: since its not needed till an object
is created in main
[2009/02/17 13:57] Snowdrop Short: so in main you could do something
like this!!
[2009/02/17 13:58] Christy Lock: I think I see
[2009/02/17 13:58] Christy Lock: ok add to the list in main
[2009/02/17 13:58] Christy Lock: then get the new UUID in the AddList
[2009/02/17 13:59] Snowdrop Short: hmm
[2009/02/17 14:00] Snowdrop Short: why have you decided to use
AddNewGroup(Guid ...)
[2009/02/17 14:00] Snowdrop Short: and now
[2009/02/17 14:00] Snowdrop Short: AddNewGroup(Group ...)
[2009/02/17 14:00] Snowdrop Short: ???
[2009/02/17 14:00] Snowdrop Short: and not, even
[2009/02/17 14:00] Christy Lock: well we were thinking a name would
conflict
[2009/02/17 14:00] M1sha Dallin: Have a compiled version
[2009/02/17 14:01] Christy Lock: so we wanted each new group to have
a new UUID
[2009/02/17 14:01] Christy Lock: ok
[2009/02/17 14:01] M1sha Dallin: http://www.pastebin.ca/1340484
[2009/02/17 14:01] Christy Lock: kewl
[2009/02/17 14:01] M1sha Dallin: not totally happy though
[2009/02/17 14:01] Christy Lock: yes adding the Guid in AaList
[2009/02/17 14:01] Snowdrop Short: so what are you storing in your
group list?
[2009/02/17 14:02] M1sha Dallin: guid of a group
[2009/02/17 14:02] Snowdrop Short: and what happens to the rest of
the information?
[2009/02/17 14:02] Snowdrop Short: where does that go?
[2009/02/17 14:02] M1sha Dallin: oops :-)
[2009/02/17 14:03] Snowdrop Short: off into never never land
[2009/02/17 14:03] M1sha Dallin: yep
[2009/02/17 14:04] Christy Lock: hmmm lets add to the AddNewGroup and
Delete to store all of it
[2009/02/17 14:04] Snowdrop Short: ok ... so avoiding duplicates
really caused a lot of problems for us
[2009/02/17 14:04] Snowdrop Short: yes, something like "AddNewGroup
(Group g)" ....
[2009/02/17 14:05] Snowdrop Short: then worry about handing
duplicates later
[2009/02/17 14:05] Snowdrop Short: small incremental steps
[2009/02/17 14:05] Christy Lock: Im nt sure what you mean by
duplicates
[2009/02/17 14:05] M1sha Dallin: duplicate names
[2009/02/17 14:05] Christy Lock: yyou man confliting info in the list
[2009/02/17 14:05] Christy Lock: oh ok
[2009/02/17 14:05] Christy Lock: does GroupList AllKnownGroups = new
GroupList(); wipe out our list everytime the program is started?
[2009/02/17 14:05] Snowdrop Short: if you have two different goups
with the same name it could cause trouble
[2009/02/17 14:06] Snowdrop Short: yes
[2009/02/17 14:06] Christy Lock: ok
[2009/02/17 14:06] Snowdrop Short: that's going to be the next
excercise
[2009/02/17 14:06] Snowdrop Short: saveing data
[2009/02/17 14:06] Snowdrop Short: and retrieving it again
[2009/02/17 14:06] Christy Lock: I know how to create a text with c#
inside opensim
[2009/02/17 14:06] Christy Lock: I did that the other day i was
shocked
[2009/02/17 14:06] Christy Lock: lol
[2009/02/17 14:07] Snowdrop Short smiles
[2009/02/17 14:07] Snowdrop Short: pretty easy, isn't it :)
[2009/02/17 14:07] Christy Lock: I really really need to find a way
to read the keyboard inside world
[2009/02/17 14:07] Christy Lock: giving us total use of controls
[2009/02/17 14:07] Snowdrop Short: sorry .. the viewer doesn't
support that
[2009/02/17 14:07] Snowdrop Short: you'll have to write your own
viewer
[2009/02/17 14:08] Christy Lock: yeah i figured not
[2009/02/17 14:08] Christy Lock: lol oh well baby steps
[2009/02/17 14:08] RetroDan Dezno: Cant you just listen on channel 0?
[2009/02/17 14:08] Christy Lock: my listens were failing
[2009/02/17 14:08] Christy Lock: I started using the osMessageObject
[2009/02/17 14:08] Christy Lock: I wrote an os function and got it
compiled inside the api
[2009/02/17 14:08] Snowdrop Short: that won't handle f1, f2, etc
[2009/02/17 14:08] Christy Lock: OSSL
[2009/02/17 14:09] Christy Lock: that works great!
[2009/02/17 14:09] Snowdrop Short: ok
[2009/02/17 14:09] Snowdrop Short: so what do we do about GroupList?
[2009/02/17 14:09] RetroDan Dezno: No idea, everyone talking over my
head
[2009/02/17 14:09] Christy Lock: well we add the _Name, to it
[2009/02/17 14:10] M1sha Dallin: http://www.pastebin.ca/1340495
[2009/02/17 14:11] M1sha Dallin: I removed the calls to write for the
moment
[2009/02/17 14:11] Snowdrop Short: great ..
[2009/02/17 14:11] Snowdrop Short: that looks as if it would work
[2009/02/17 14:12] M1sha Dallin: it compiles :-)
[2009/02/17 14:12] Snowdrop Short: and works too
[2009/02/17 14:12] Christy Lock: ok wait lemme figure this out
[2009/02/17 14:12] Snowdrop Short: one thing I'm missing is
[2009/02/17 14:12] Snowdrop Short: GroupList.WriteToConsole
[2009/02/17 14:12] M1sha Dallin: yep
[2009/02/17 14:13] M1sha Dallin: an iterator on AllGroups calling the
group write method?
[2009/02/17 14:13] Christy Lock: ok where do we get the roup
GroupDetail though?
[2009/02/17 14:13] Christy Lock: I know its the name etc
[2009/02/17 14:13] Snowdrop Short: I'll give you a hint
[2009/02/17 14:13] Christy Lock: but then in Main () we call
AddNewGroup?
[2009/02/17 14:14] Snowdrop Short: look up the instructin
[2009/02/17 14:14] Snowdrop Short: instrution, even
[2009/02/17 14:14] M1sha Dallin: :-)
[2009/02/17 14:14] Snowdrop Short: "foreach"
[2009/02/17 14:14] Christy Lock: ok
[2009/02/17 14:14] Snowdrop Short: but I think we should join the
others
[2009/02/17 14:14] Snowdrop Short: and share experiences learned
[2009/02/17 14:15] Christy Lock: ok it can be used to search through
an array
[2009/02/17 14:15] Snowdrop Short: yes
[2009/02/17 14:16] Christy Lock: yes but we have several types of
things in this array
[2009/02/17 14:16] Snowdrop Short: foreach(Group groupDetail in
_OSGroups) groupDetail.WriteToConsole()
[2009/02/17 14:16] Christy Lock: ok lol lemme grab more caffine
[2009/02/17 14:16] Christy Lock: thinking about that
[2009/02/17 14:17] RetroDan Dezno: Wow thats easy once you get to
know the syntax and all the names
[2009/02/17 14:17] Snowdrop Short nods
[2009/02/17 14:17] Snowdrop Short: and using object orientation
[2009/02/17 14:17] Snowdrop Short: leave it up to the Group to write
itself out
[2009/02/17 14:17] RetroDan Dezno: No need to write a for/next loop
[2009/02/17 14:17] Snowdrop Short: foreach is just a conveniece
[2009/02/17 14:17] Christy Lock: I seee
[2009/02/17 14:18] Snowdrop Short: called "Syntax sugar" in coder
speak
[2009/02/17 14:18] Snowdrop Short: it does the same as for/next
[2009/02/17 14:18] Christy Lock: we are looking through the array
_OsGroups and for every part that has the info defined in our object
[2009/02/17 14:18] Christy Lock: it writes it
[2009/02/17 14:18] Christy Lock: is that right?
[2009/02/17 14:18] Snowdrop Short nods
[2009/02/17 14:18] RetroDan Dezno: Does it have a "DoSomeTimes" too,
ha ha ha!!!
[2009/02/17 14:18] M1sha Dallin: http://www.pastebin.ca/1340501
[2009/02/17 14:18] Christy Lock: lol yeah
[2009/02/17 14:18] Snowdrop Short: actually ... it does :-)
[2009/02/17 14:19] Snowdrop Short: haha
[2009/02/17 14:19] M1sha Dallin: Though I forgot to invoke it from
main
[2009/02/17 14:19] RetroDan Dezno: DoSomeTimesDependingOnYourMood
[2009/02/17 14:19] Snowdrop Short: well ... not really
[2009/02/17 14:19] Snowdrop Short: mood is a bit difficult
[2009/02/17 14:19] RetroDan Dezno: Hmm too bad, I think Windows uses
it alot
[2009/02/17 14:19] Snowdrop Short: but you can use "random" :-)
[2009/02/17 14:20] Snowdrop Short: not really the same thing, but it
is a good way to fake it
[2009/02/17 14:20] Christy Lock: ok Im getting 3 groups instead of
two
[2009/02/17 14:20] M1sha Dallin: http://www.pastebin.ca/1340505 seems
to work
[2009/02/17 14:20] Christy Lock: so I have some kind of one off error
[2009/02/17 14:21] RetroDan Dezno: Am I a Moron, or did we agree to
join the others?
[2009/02/17 14:21] M1sha Dallin: yep
[2009/02/17 14:21] Snowdrop Short: it looks fine to me
[2009/02/17 14:21] Christy Lock: oh duh yeah
[2009/02/17 14:21] Snowdrop Short: congratulations on your first real
coding assignment in C#
[2009/02/17 14:21] M1sha Dallin: :-) ty
[2009/02/17 14:22] Christy Lock: M1sha is the genius here I think I
got only bugs
[2009/02/17 14:22] RetroDan Dezno: Does it work?
[2009/02/17 14:22] M1sha Dallin: struggling - a few new concepts and
the syntax
[2009/02/17 14:22] M1sha Dallin: seems to work
[2009/02/17 14:22] RetroDan Dezno: Where is the ForAll?
[2009/02/17 14:22] Christy Lock: I was trying to make the methods do
too much
[2009/02/17 14:22] Snowdrop Short: yes
[2009/02/17 14:23] Snowdrop Short: it works as it should
[2009/02/17 14:23] Christy Lock: she broke it into methods that did
each job
[2009/02/17 14:23] M1sha Dallin: Line 34 Retro
[2009/02/17 14:23] Snowdrop Short: KISS
[2009/02/17 14:23] Snowdrop Short: start simple, and then improve
[2009/02/17 14:23] RetroDan Dezno: Ah ok
[2009/02/17 14:23] Christy Lock: ok well I learned more about c#
today than I ever knew in my last 24 years
[2009/02/17 14:23] Snowdrop Short smiles
[2009/02/17 14:23] M1sha Dallin: :-)
[2009/02/17 14:24] Snowdrop Short: did you learn swimming the same
way?
[2009/02/17 14:24] Christy Lock: lol I cant swim
[2009/02/17 14:24] Christy Lock: lol
[2009/02/17 14:24] M1sha Dallin: I started by sinking
[2009/02/17 14:24] Christy Lock: well a little
[2009/02/17 14:24] Snowdrop Short: ok
[2009/02/17 14:24] Christy Lock: I made the best swim ao in sl
though!
[2009/02/17 14:24] Snowdrop Short: lets join the others
[2009/02/17 14:24] Christy Lock: it rocks
[2009/02/17 14:24] M1sha Dallin: ok
[2009/02/17 14:24] RetroDan Dezno: My dad used to throw me off a
pier......
[2009/02/17 14:24] Christy Lock: thanks



http://www.pastebin.ca/1340375

using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
}


// all known groups
public class GroupList
{
}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_Description = description;
_Members = new ArrayList();
}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members {2}",
_Name, _Description, _Members.Count);
}

public string _Name;
public string _Description;
public ArrayList _Members;
}

class MainClass
{
public static void Main(string[] args)
{
Group openSimCoreDeveloper = new Group("OpenSim Core developer",
"Group for some really cool coders");
Group openSimClass = new Group("OpenSim Classes", "Group for some
really nice and cool people");
openSimCoreDeveloper.WriteToConsole();
openSimClass.WriteToConsole();
}
}
}



http://www.pastebin.ca/1340436

using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
}


// all known groups
public class GroupList
{
}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_Description = description;
_Members = new ArrayList();
}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members
{2}", _Name, _Description, _Members.Count);
}

public string _Name;
public string _Description;
public ArrayList _Members;
}


public class GroupMembers
{
public GroupMembers(string memberName, string memberGuid,
string memberTitle, DateTime memberLastLogin)
{
_MemberName = memberName;
_MemberGuid = memberGuid;
_MemberTitle = memberTitle;
_MemberLastLogin = memberLastLogin;
}

public void WriteToConsole()
{
Console.WriteLine("Member Name={0}, GUID={1}, Title {2},
Last Login", _MemberName, _MemberGuid, _MemberTitle,
_MemberLastLogin);
}


public string _MemberName;
public string _MemberGuid;
public string _MemberTitle;
public DateTime _MemberLastLogin;
}


class MainClass
{
public static void Main(string[] args)
{
Group openSimCoreDeveloper = new Group("OpenSim Core
developer", "Group for some really cool coders");
Group openSimClass = new Group("OpenSim Classes", "Group
for some really nice and cool people");
openSimCoreDeveloper.WriteToConsole();
openSimClass.WriteToConsole();
}
}
}



http://www.pastebin.ca/1340467

using System;
using System.Collections;

namespace Groups
{

// define the information needed to describe a group member
public class GroupMember
{
public GroupMember(string memberName, Guid memberGuid, string
memberTitle, DateTime memberLastLogin)
{
_MemberName = memberName;
_MemberGuid = memberGuid;
_MemberTitle = memberTitle;
_MemberLastLogin = memberLastLogin;
}

public void WriteToConsole()
{
Console.WriteLine("Member Name={0}, GUID={1}, Title {2},
Last Login {3}", _MemberName, _MemberGuid, _MemberTitle,
_MemberLastLogin);
}


public string _MemberName;
public Guid _MemberGuid;
public string _MemberTitle;
public DateTime _MemberLastLogin;
}


// all known groups
public class GroupList
{
}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_Description = description;
_Members = new ArrayList();
}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members
{2}", _Name, _Description, _Members.Count);
}

public string _Name;
public string _Description;
public ArrayList _Members;
}




class MainClass
{
public static void Main(string[] args)
{
Group openSimCoreDeveloper = new Group("OpenSim Core
developer", "Group for some really cool coders");
Group openSimClass = new Group("OpenSim Classes", "Group
for some really nice and cool people");
openSimCoreDeveloper.WriteToConsole();
openSimClass.WriteToConsole();
}
}
}



http://www.pastebin.ca/1340505

using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
}


// all known groups
public class GroupList
{
public GroupList()
{
_OSGroups = new ArrayList();
}

public void AddGroup (Group GroupDetail)
{
_OSGroups.Add(GroupDetail);

}

public void DeleteGroup(Group GroupDetail)
{

_OSGroups.Remove (GroupDetail);
}

public void WriteGroupListToConsole()
{
foreach (Group groupDetail in _OSGroups)
groupDetail.WriteToConsole();
}

public ArrayList _OSGroups;

}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_GroupID = new Guid ();
_Description = description;
_Members = new ArrayList();

}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members
{2}", _Name, _Description, _Members.Count);
}

public string _Name;
public Guid _GroupID;
public string _Description;
public ArrayList _Members;
}

class MainClass
{
public static void Main(string[] args)
{
GroupList AllGroups = new GroupList();

AllGroups.AddGroup(new Group("OpenSim Core developer",
"Group for some really cool coders"));
AllGroups.AddGroup(new Group("OpenSim Classes", "Group for
some really nice and cool people"));
AllGroups.WriteGroupListToConsole();
}
}
}



http://www.pastebin.ca/1340517

using System;
using System.Collections;

namespace Groups
{
public class GroupMember
{
// define the information needed to describe a group member
public GroupMember(string memberName, Guid memberGuid, string
memberTitle, DateTime memberLastLogin)
{
_MemberName = memberName;
_MemberGuid = memberGuid;
_MemberTitle = memberTitle;
_MemberLastLogin = memberLastLogin;
}

public void WriteToConsole()
{
Console.WriteLine("Member Name={0}, GUID={1}, Title {2},
Last Login {3}", _MemberName, _MemberGuid, _MemberTitle,
_MemberLastLogin);
}


public string _MemberName;
public Guid _MemberGuid;
public string _MemberTitle;
public DateTime _MemberLastLogin;
}


// all known groups
public class GroupList
{
public GroupList()
{
_OSGroups = new ArrayList();
}

public void AddGroup (Group GroupDetail)
{
_OSGroups.Add(GroupDetail);

}

public void DeleteGroup(Group GroupDetail)
{

_OSGroups.Remove (GroupDetail);
}

public void WriteGroupListToConsole()
{
foreach (Group GroupDetail in _OSGroups)
GroupDetail.WriteToConsole();
}

public ArrayList _OSGroups;

}


public class Group
{
public Group(string name, string description)
{
_Name = name;
_GroupID = new Guid ();
_Description = description;
_Members = new ArrayList();

}

public void WriteToConsole()
{
Console.WriteLine("Name={0}, Description={1}, #of Members
{2}", _Name, _Description, _Members.Count);
foreach (Group GroupMember in _Members)
GroupMember.WriteToConsole();
}

public string _Name;
public Guid _GroupID;
public string _Description;
public ArrayList _Members;
}

class MainClass
{
public static void Main(string[] args)
{
GroupList AllGroups = new GroupList();

AllGroups.AddGroup(new Group("OpenSim Core developer",
"Group for some really cool coders"));
AllGroups.AddGroup(new Group("OpenSim Classes", "Group for
some really nice and cool people"));
AllGroups.WriteGroupListToConsole();
}
}
}
Reply all
Reply to author
Forward
0 new messages