You are not logged in.

#26 2004-10-05 06:05:54

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ensmer -- Proposed 3D desktop environment

heh.. so we became your customers. See, requirements and documentation thrashing around is useful..

:twisted:


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#27 2004-10-05 14:34:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

Dusty wrote:

cactus: That link they want to charge you for, but I did a similar search on google and found some templates. I think it might be a little too formal for me, because there's no customer. That is, the developer (me) is the customer (me), so we don't have to communicate (well, I *do* talk to myself frequently, but usually I understand what I'm saying...).  Perhaps I just don't know how to solidify my plans that much without code.

requirements docs and all these things are really not formal - thats where people get hung up in school... the format is laid out, but very flexible.  Basically as long as you number your sections, outline style, and follow an order for the layout (and not throw junk all over the place) it should be fine - req docs are an IEEE standard too... can't recall the number...

Offline

#28 2004-10-05 21:38:44

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

Here's a question for you all. I'm having trouble deciding whether the scripting frontend should be in Jython or Beanshell. This language will basically be used to create and interact with Java3D Scenegraph objects.

I'm leaning towards Jython because then the project can attract both Python and Java users, and attracting users is a bonus. Another reason for Jython is that if somebody wanted to reimplement Ensmer in another language (C, C++, Python itself), Python scripts would be much easier to implement than BeanShell ones, which are basically Java specific. Further, Jython seems to be more actively developed.

The only compelling reason to use BeanShell instead of Jython is that it is an order of magnitude smaller (Jython: 2.7mb, BeanShell: 280kb). However, that is a good reason; I could distribute BeanShell with Ensmer rather than listing it as a dependency (people hate dependencies!).

Jython has a BSD style license, BeanShell is dual Sun Public License and LGPL.

What do you guys think?

Dusty

Offline

#29 2004-10-05 22:33:20

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

I would say jython simply due to the fact that everyone and their mother loves python now-a-days.... even google!

Offline

#30 2004-10-05 22:58:37

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: Ensmer -- Proposed 3D desktop environment

Just thowing this out, but have you looked at groovy? If not check it out at http://groovy.codehaus.org/.
-wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#31 2004-10-06 00:00:08

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ensmer -- Proposed 3D desktop environment

umm...jruby!
lol..

in all seriousness, use whatever you are most comfortable with. It will be you coding on it the most (for your project). Later, if people want to, they can either learn it, or reimplement it themselves.
So, go with what you want, since you will have to "live" in it for a while.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#32 2004-10-06 14:13:53

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

how about brainf*ck..... it's got to be the worst language ever... and it was created as a joke.... but stilll....

Offline

#33 2004-10-06 16:30:53

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

Oi, mates, you guys are getting off topic. :-D

I've settled more or less on Jython. I'm going to do some informal class diagramming and stuff today and then decide if I want to publish a physical design or just start coding...

Dusty

Offline

#34 2004-10-06 16:44:15

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

definately do some design docs before jumping in to code - it makes a world of difference and the task doesn't seem as daunting on large projects.

it doesnt even have to be formal... just write up a good, say, 5-10 page design listing class names, what they do, and how they're connected.

draw some pictures too

this phase is really good to do by hand with real pencil and paper (they still make those?)

Offline

#35 2004-10-06 19:40:31

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

I've run into some issues with Jython and the Java 1.5 beta that I'm running. I found a fix but... it doesn't work.

I may have similar problems with other scripting languages not being compatible with the new Java.  I'll investigate Groovy and Beanshell further.

*sigh* the price we pay for bleeding edgeware.

Dusty

Offline

#36 2004-10-07 03:45:58

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

This post is a contentless minirant.

I've spent most of the afternoon and evening (after giving up on Jython and deciding on Groovy -- wdemoss, where do you hear about this cool stuff?)  working on DBUMLwPP (Dusty's Bastardized UML with Pencil and Paper) class diagrams for the project. I'm not sure if they've helped much, I guess parts of the design are solidifying. At first it seemed useful, maybe, but now it feels like a waste of time and I want to do my traditional CS project thing and start coding.  It's worked before... only before I wasn't worried about having the result be extensible. wink

Maybe its just the diagramming that's frustrating me. I just don't think in pictures, and these diagrams look more like spiders than information to me, even though I'm drawing them myself and know what I'm thinking.

Actually, the clearest diagram is the one I got after I typed up exactly what the classes would do. I think I'll switch to a more verbose form of design, maybe with pseudocode. Something more suitable for me, lol.

So that's my rant. Somebody explain to me why I'm doing exactly one CS project now and I'm spending more time on it than I did doing six CS courses (including two projects...).  I think its the open source thing, all of a sudden more than just my prof will know if I do it wrong.

Sucks too, cause I've always gotten good enough grades doing it my way. wink

Dusty

Offline

#37 2004-10-07 07:38:39

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ensmer -- Proposed 3D desktop environment

heh..good ranting. big_smile
*imagines dusty hunched over paper with broken pencils littering the floor...thrashing a large pink eraser back and forth mumbling something about boxes and lines...crumpled up papers all over the desk*


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#38 2004-10-07 15:04:32

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

yes diagraming and documenting sucks - but it needs to be done (especially when you have multiple people working on a project).  I think this is a big problem with open source.  If someone wants to jump into a project.... say firefox or something.... they have to read through the code to understand what's going on.  I don't know about you but I don't want to read through 100 pages of code... I'd rather read a few pages written in english to understand something.

It's also easier to diagnose bugs this way... i go "hmmm ok it's failing on download... let's look at what calls the download methods... oh these arrows show me exactly what calls it and what it calls... I didn't have to grep through a bunch of files to find this out....and look, this document has a granular list of what certain methods do... ok well based on the descriptions, the problem is function A... which according to the docs is in file A.java at line 123... it's go time"

for small projects which are common to CS classes (make a program which uses a linked list to do X and then transforms it to a red black tree and performs Y) they do only one thing and documentation is a waste.

The thing about documenting this stuff is this:  write it out however you want, and however you understand it - don't worry about if the format is right or you document things correctly or use proper UML.... write it out how you see it.  Just write down something which isn't code.... write down code flow... in whatever form you want (first I hit X and then I do this and then this happens or int X(char *c) --> double something(struct blah b) --> connect to google.com) just have something that someone can look at which isn't code.

When you do a project yourself, you know everything that's going on and it's easy to understand.... however, for others it's not so easy.  Also, try this - find a fairly large project that you did, say 2 or 3 years ago.... and go back and look at it.... you'll probably be confused... I've said many a times "why the hell did I do that?" while looking at older code.


the key point is this: don't worry about formats or structures for documentation, just document something, anything.... even if it's bad and not even complete sentences.... hell when sequence diagramming is required, i don't even do it until the end... i leave the format like this:

int foo() calls
   double bar() calls
      char *func() calls
   struct bigint *get_a_big_num()

i remember when I thought it was worthless.... but think of it this way: for a project like ensmer which is obviously a big undertaking, how is someone like me supposed to understand what's happening when your done... I'll take one look at the 300 java files and go "nope, sorry"...

keep in mind, this is just my 2 cents based on things I've run into... I actually think the best way to understand something like this is to have to pickup on a fairly large project that has NO documentation.... it's a painful process....

Offline

#39 2004-10-07 16:27:51

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

phrakture wrote:

I don't know about you but I don't want to read through 100 pages of code... I'd rather read a few pages written in english to understand something.

To be honest, the code often makes more sense to me, and the english docs are ALWAYS out of date.  I do make extensive use of javadoc comments (or equivalent in other languages); I figure that's all the documentation needed. Further, it makes more sense to me to document the code after its been written, but that might just be a bassackwards way of looking at it.

It's also easier to diagnose bugs this way...

again, that's assuming the docs describe the code; the code, I've noticed, is usually different from design docs.

The thing about documenting this stuff is this:  write it out however you want, and however you understand it

Yeah, but then you can't exactly publish it. The stuff I wrote yesterday for the InputManager (after giving up on diagramming. It just doesn't work for me!) would make less sense to you than the code.

Also, try this - find a fairly large project that you did, say 2 or 3 years ago.... and go back and look at it.... you'll probably be confused... I've said many a times "why the hell did I do that?" while looking at older code.

Yeah, I've done that exercise... that's why I usually put in Javadoc comments that are longer than the actual methods nowadays. :-D

I also look at my older code and think 'gee, I was a real moron programmer back then, what am I gonna think of my current skills in two years?' wink

i remember when I thought it was worthless....

I don't think its worthless. This isn't my first big project or my first open source one (it's my first big open source project where I'm head developer). I know a lot about having a good design... I just tend to like to design in code! hehehehe

Actually, its the diagramming I've decided is worthless, but only because of my spazzed out thought processes that are unable to interpret shapes or something like that...

keep in mind, this is just my 2 cents based on things I've run into...

I'm not discarding your advice; I'm just... complaining about how much work it is. :-D   I'll be heading back into a (text based) physical OO design after I finish this. I just needed the sleep last night, lol.

I actually think the best way to understand something like this is to have to pickup on a fairly large project that has NO documentation.... it's a painful process....

I remember trying to hack the readline library... and its not even that big, and its got decent inline comments... but I did have to search through a half dozen files before I could find the one I wanted to edit, then I had to search through the C code line by line and edit several of them...

it would have been better if they'de documented the files, but the design... I dunno.

Dusty

Offline

#40 2004-10-07 16:32:52

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: Ensmer -- Proposed 3D desktop environment

Dusty wrote:

Maybe its just the diagramming that's frustrating me.

If you don't like diagramming or documenting in advance before coding, keep a logbook.... what you have done and what to do next. No need to keep everything in your head and also helps to make the documentation once ready. For other developers to join, its good to categorize the logbook in sections.


Markku

Offline

#41 2004-10-07 17:32:29

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

The stuff I wrote yesterday for the InputManager (after giving up on diagramming. It just doesn't work for me!) would make less sense to you than the code.

maybe, but think about it this way - Joe Schmoe knows jack-sh*t about java syntax or even OO in general... he wants to reproduce something you did in perl (don't ask - it's my example, I'll do what i want!) and looks at your code and the javadoc and gains almost nothing except the @param descriptions (along with a functional description).  He now has no idea where this falls in the grand scheme of things and basically has to waste a bunch of time learning java and referencing a book to reporduce your code.  Yeah it's not hard, but you have to understand, you won't always be using java and you won't always have javadoc... in 200X java may be defunct and not used anymore and if someone wants to reporduce yuor stuff he's going to have to learn outdated coding techniques to figure out what you did.

I alao look at my older code and think 'gee, I was a real moron programmer back then, what am I gonna think of my current skills in two years?' wink

We all do that, heh....

I know a lot about having a good design... I just tend to like to design in code! hehehehe

yeah, but the real point of UML and all these other lame techniques is this - it makes everyone able to design the same way if needed, so people can communicate.... i design in almost all pictures and flow charts... what if you and I were working on the same project.... you'd send me some pseudo code to look at your chunk and i'd send you some diagrams - we'd both be confused as hell.

I'll be heading back into a (text based) physical OO design after I finish this. I just needed the sleep last night, lol.

that works too.... text based, picture based, whatever....

it would have been better if they'de documented the files, but the design... I dunno.

well, if there was a design doc, you could have easilly found the portion that described what you needed and it should have listed function names and files - making your searching job much easier... if the files were commented, you would still have to find which file(s) to edit by reading through them.

as far as documentation being crappy and not up to date.... I agree.  but this is namely on open source projects..... there was a big schpiel a while back by some guy saying that open source programmers know nothing of standard software engineering practices - most just jump in and start coding... this makes it hard for companies newly moving to OSS to hire programmers - they have their methods and practices, and the open source programmers just want to ignore them and start coding - no design, no documentation, nothing - "submit a patch later if its not good" - I am strong believer that the OS community really needs to learn standard practices... even if they are commonly used under MS technologies.

I must state, for the record, that I find it tedious and boring as well - it's terrible spending weeks writing up a document and busing out rational rose diagrams.... but it pays off in the end.

Offline

#42 2004-10-08 02:22:53

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ensmer -- Proposed 3D desktop environment

Well, good luck with your "design by coding" methodology. Hope it works for you. Doesn't work well for me when the project attains any significant size..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#43 2004-10-08 02:32:20

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: Ensmer -- Proposed 3D desktop environment

Dusty wrote:

(after giving up on Jython and deciding on Groovy -- wdemoss, where do you hear about this cool stuff?)

I hacked into dp's computer and stole his bookmarks. smile

About the design stuff, I generally perfer test driven development (a close approximation of it any way) and a continuosly evolving design over a formal water-fall methodology. Test driven development generally leads to writting only what you need, not over-engineering anything, and maintainable code. Beside, there is no better documentation then well written unit test. Maven (another tool wink) has a really cool report it generates that is alot like javadoc but has the junit test cases that are browsable. If you have clearly written test classes and methods this can be much better form of documentation then javadoc / uml / rose diagrams. At least IMHO.

-wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#44 2004-10-08 07:45:31

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ensmer -- Proposed 3D desktop environment

why is it when people mention diagrams/uml, and requirements, they start talking about the waterfall method? These things aren't synonymous.

iterative model? Extreme? Rupp? TestDriven (I like this one too, but to make tests, you need requirements to test against)....

blech...Enough post hijacking...
We can talk about software development methodologies until we are blue in the face in another thread. Lets try to leave some semblance of Dusty's thread on Ensmer in tact..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#45 2004-10-08 17:52:16

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

Feel free to fight over design methods. It makes my thread bigger and people will think there's lots of interest. :-D

I've made my choice on design; I want to have a not too detailed physical design outlining the major classes (not all classes). I probably wouldn't do this if it wasn't a school project, but I was taught to design stuff, after all.

UML is fully object oriented. I just can't think in it. It's not that I don't understand the language; I just have to do a lot of translating in my head and that doesn't work too well when you're thinking.  Think of the stories of blind people suddenly getting their sight and all they see is a bunch of colours, they don't understand the concept of 'shapes'. I know what 'shapes' are, but my mind doesn't 'think in shapes'.

I want to finish the physical design today (but I wont, I feel like shit and I got a late start, so I'll bust my ass all weekend to start coding Monday).

I have to say that the open source projects that you guys describe that don't use a formal design... they work pretty good in spite of themselves, eh? catb.org. wink

So, I'll have that design up for you're critique ("it's not detailed enough!", "translate it into UML"... :-D) sometime this weekend.

Dusty

Offline

#46 2004-10-08 17:55:15

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

wdemoss wrote:

Maven (another tool wink)

I heard about that before you mentioned it. I must be getting better. Actually, it was on the Groovy page, so you still get credit...

I haven't investigated it, but I think I'll stick with ant. The main reason is I'm already going to be learning too much new stuff to finish this in the four months I've allocated...  (Call me nuts, but I'm an insanely fast coder. yeah.  for sure.  I can fly too, did I ever mention that?)

Dusty

Offline

#47 2004-10-08 18:30:45

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

cactus wrote:

why is it when people mention diagrams/uml, and requirements, they start talking about the waterfall method? These things aren't synonymous.

thank you.
seriously, has anyone here used the waterfall method since like 1980? (exagerated rhetoric, please don't answer wink)

software documents are always evolving... and no one EVER has done something right the first time and succeeded

Offline

#48 2004-10-08 18:42:44

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

phrakture wrote:

software documents are always evolving... and no one EVER has done something right the first time and succeeded

I don't know if I've mentioned that this is my third project in this area; I've failed twice. Actually, the other two were more of a 'proof of concept' and then a 'prototype'; now I know what I'm doing. :-D  That's why the focus on extensibility now, you know how prototypes are, never extensible, hack it together ASAP.

Anyway, I wanted to mention that I got registered for a Java.net project. I've moved the homepage over, but I don't think its completely up to date. I haven't decided whether to stick with them or with my university for web hosting and CVS.

https://ensmer.dev.java.net/

Every bleeping way I bleeping turn, there's another bleeping decision to make.

Dusty

Offline

#49 2004-10-08 18:45:58

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ensmer -- Proposed 3D desktop environment

NICE! use cases! hooray!

Offline

#50 2004-10-08 19:14:56

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ensmer -- Proposed 3D desktop environment

phrakture wrote:

NICE! use cases! hooray!

Er... did you miss this post on page 2? :-D

Dusty wrote:

I've written another introductory document that is meant to be oriented to non-technical users. I want to capture the interest of people that don't know what 'scenegraph' or even 'java' means. wink  It's organized as a collection of informal use cases... I think a lot of people might find it interesting:

http://io.acad.athabascau.ca/~dustyp/co … cases.html

Offline

Board footer

Powered by FluxBB