Search the web
Sign In
New User? Sign Up
svg-developers · SVG Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
SVG ouside the browser...   Message List  
Reply | Forward Message #46197 of 63018 |
Re: SVG ouside the browser...



> and then wait a few weeks -- and more -- whilst your developers add
more spaghetti, and debug.

That is bad development.


> I think this is where we get to the nub of it; is it just a case of
using modules and objects? My suggestion was to use declarative
mark-up like XForms which decreases maintenance and increases
development speeds by an order of magnitude, way past OO techniques.

Oh, I am not at all against declarative development.
I think concepts/techniques should be used according to their
aplicability.
And if that means to write a class then I will write a class.
If it means to use XFORMS I will use XFROMS, if it is XBL then let it
be XBL. Whatever is the better choice.

But that does not change anything about JavaScript.
Not that I am a fan of JavaScript as a language, but one can still
write clean code with it and also build large apps using it.


> <xf:input ref="name">
> <xf:label>Name:</xf:label>
> <xf:hint>Enter your name here</xf:hint>
> <xf:help>This is where you would enter your name</xf:help>
> <xf:alert>You must enter your name</xf:alert>
> </xf:input>
>

You still need an XFORMs impl. and something that renders it.

BTW in script the above decl. would be
inp = new Input("name");
inp.label = "Name:"
inp.hint = "..."
...

It's just a different way to declare it, you still need something that
can handle the inp. obj. As you need something that can handle the XML .


> Now, we might want to render this using SVG, in which case we need
to write
> a 'hint' object, a 'help' object, a 'label' object, and of course an
'input'
> object for our system. But they're pretty easy, and once they are
done, you
> can then concentrate on using your declarative mark-up to build
complex UIs
> that are far easier to maintain.

I agree with that very much.
I used this approach in a couple of projects, e.g.:
http://jan.kollhof.net/projects/svg/playground/superformula.svg

it uses namespaced custom elements which are transforemd to some path
data after the document is loaded.
In some projects I use JS to do the transformation and in others a
combination of templates written in XML and some JS to take care of
the bindings. It works realy well.

We will get sXBL, so we will have a standard way of taking care of
those binding and transformation issues.

> It's very impressive, and none of what I am saying says that
libraries such as this aren't useful. But to build large
industrial-strength applications, rather than web-sites, I think we
need to move to a new generation, and a new approach.

So your problem is not that you have 12,000 LOC to manage but that
it would have not been 12,000 lines of code if using a different
approach, for example using techniques like XFORMS or sXBL or ... ?

Maybe I misunderstood your initial post.
I thought it had something to do with wether large
projects can be developed with JS or not.
I am sure one can but should use whatever is most apropriate.



Jan







Tue Nov 23, 2004 1:27 pm

keyjaque
Offline Offline
Send Email Send Email

Forward
Message #46197 of 63018 |
Expand Messages Author Sort by Date

Hi all, the web application we are building has really grown up and is beginning to tax the reach of JavaScript – by that I mean more then 12,000 lines of...
peterkalev2002
Offline Send Email
Nov 23, 2004
1:11 am

... then ... animations, ... Hi Peter, I am working on an SVG project with over 300,000 lines of code and still counting...Using Javascript within the IE5.5/6...
Francis Hemsher
fhemsher
Offline Send Email
Nov 23, 2004
1:58 am

Hi Peter, Here are a few comments on your posting. ... Understandable! I have long felt that the path SVG is currently following is dangerously close to the...
Mark Birbeck
mark_birbeck
Offline Send Email
Nov 23, 2004
2:02 am

... Not to steal Mark's thunder here (I too am a big advocate of X-Forms) but you may also want to look at C# SVG implementations, such as that produced by...
Kurt Cagle
kurt_cagle
Offline Send Email
Nov 23, 2004
5:12 am

Hi, ... How is 12,000 lines a problem? I am not sure how many lines of script Mozilla has but the number is not small. The only problem I can think of is...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Nov 23, 2004
9:47 am

Jan-Klaas, Great to see some discussion starting on how we might build these types of applications. ... Are you arguing for or against, here? ;) The "only...
Mark Birbeck
mark_birbeck
Offline Send Email
Nov 23, 2004
11:44 am

... more spaghetti, and debug. That is bad development. ... using modules and objects? My suggestion was to use declarative mark-up like XForms which decreases...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Nov 23, 2004
1:27 pm

... Well the move to Java/Batik is probably your path of least resistance (smallest amount to learn, easiest to translate). You should even be able to run your...
Thomas DeWeese
world_mage
Offline Send Email
Nov 23, 2004
11:32 am

If you move to .NET, VG.net is the fastest GDI+ based graphics system. It is not an SVG object model but an open-source SVG importer is under development. Much...
frankhileman
Offline Send Email
Nov 23, 2004
1:20 pm

"Mark Birbeck" <Mark.Birbeck@...> wrote in message news:005201c4d151$ab2d5ed0$0e01a8c0@W100... ... Sure, I'd agree with that, but the reason I'd agree...
Jim Ley
jibberjim
Offline Send Email
Nov 24, 2004
12:09 am

"Mark Birbeck" <Mark.Birbeck@...> wrote in message news:000b01c4d100$67ccd9a0$0e01a8c0@W100... ... But the reason for this is that we can ship solutions...
Jim Ley
jibberjim
Offline Send Email
Nov 24, 2004
12:11 am

Jim, Thanks for the very interesting points in both your posts. I'm very keen to debate these issues, so I really do appreciate the input. I've also ...
Mark Birbeck
mark_birbeck
Offline Send Email
Nov 24, 2004
1:20 am

"Mark Birbeck" <Mark.Birbeck@...> wrote in message news:002f01c4d1c3$a3f002e0$0e01a8c0@W100... ... Where it needs to be checked all again of course, so...
Jim Ley
jibberjim
Offline Send Email
Nov 24, 2004
9:29 pm

Jim, ... This is a common argument, but with respect, it's completely upside down! We are *already* validating on the server, right? We already check our data ...
Mark Birbeck
mark_birbeck
Offline Send Email
Nov 25, 2004
12:49 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help