2007/3/29, Daryl Richter <[hidden email]>:
> On 3/29/07 5:03 AM, "Lukas Renggli" <[hidden email]> wrote: > > >>>> * GET vs. POST: One of the things that confused me about the simple > >>>> counter example already is that it uses POST instead of GET - isn't GET > >>>> supposed to be idempotent as well as not modifying the requested > >>>> resource? > >>> > >>> Frankly, if you are thinking about URLs and POST vs. GET, you should > >>> probably not use Seaside. > >> > >> Frankly, giving a non-answer like this isn't exactly helpful. > > > > Seaside is for people that don't want to worry about low level details > > such as HTTP. It let them think about more important things when > > building a sophisticated application. Again if you want to fiddle > > around with URLs and worry about HTTP details you probably should use > > a different framework. > > > > Have a look at #navigation in WAAnchorTag. It creates an idempotent > > (navigational) action callback for anchors. > > > >> question. And I think the robots issue is a real one, too. Or do Seaside > >> apps somehow, magically, never get indexed? > > > > You see, Seaside is for sophisticated web *applications* and not web > > *sites*. Does it make sense to index an application like Microsoft > > Word? I doubt so. > > Ah, but if they are on the internet, they *will* be indexed. > > In the early days of Ruby on Rails framework development there was a a bit > of angst since the framework initially performed deletes using links that > used GET. People put their sites up, Google "indexed", bye-bye data. http://www.lukas-renggli.ch/blog/blogbugfix In the earlier versions there was a confirmation dialog, that used a form and POST but this had to be replaced by a single get and a JS confirmation. > So, while I totally agree that people creating a web site w/ Seaside > shouldn't need to know about GET, POST, &c., the developers of the framework > certainly should understand and use HTTP methods appropriately. > > > > >> Can they even be indexed in any meaningful way? > > > > They certainly can, ask Google what it knows about my Pier site: > > > > http://www.google.com/search?hl=en&q=+site:www.lukas-renggli.ch > > > > Cheers, > > Lukas > > -- > Daryl > > "Don't worry about people stealing an idea. If it's original, you will have > to ram it down their throats." > -- Howard Aiken > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
2007/3/29, Andreas Raab <[hidden email]>:
> Hi Folks - > > I've been toying around with Seaside and there are quite a few things > that I don't understand. Since I've been spamming the Squeak list > already with some of these questions I figure it's probably about time > to move the discussion to this list. Here we go: > > * RESTful URLs: Philippe pointed me to http://www.lukas-renggli.ch/blog/ > which discusses the use of RESTful URLs in Pier. Looking at it I found > the dazzlingly cryptic method PRPierFrame>>initialRequest: and gave up > on the idea for the time being ;-) > > Could someone perhaps give a brief outline of what needs to be done to > support RESTful URLs in Seaside that both, goes well beyond "it can be > done" and stays well short of PRPierFrame's implementation? ;-) > > * GET vs. POST: One of the things that confused me about the simple > counter example already is that it uses POST instead of GET - isn't GET > supposed to be idempotent as well as not modifying the requested resource? Idempotent does not mean has no side effects. Idempotent means it doesn't matter whether the action is executed once or more times. This is true for the counter. You can refresh it as many times as you want, the count doesn't increase. Going back and hitting '++' again will result in the same count. As long as you're just messing with UI state I don't see a problem with using GET. I mean what havoc can be done? In the worst case the crawler messes up his UI. For "real" state changes you have a point but Seaside really handles this just like every other webframework so I don't see how this is a particular issue of Seaside and not every framework (or HTML in general). Yes you have to know HTML to use Seaside but pretty much every other webframework requires you to do so too. If you open filestreams in Squeak you have to make sure you close them. Is this a particular issue of Squeak that it requires you to know about operating systems and file descriptors? Philippe > Can someone explain to me why Seaside uses GET for such requests and not > POST? What rules does Seaside have for using GET vs. POST? What happens > if a robot ever comes across the counter example? > > Thanks, > - Andreas > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Philippe Marschall
Philippe Marschall wrote:
> Anchors are GET, always. That has nothing to do with Seaside but with > HTML. Forms are default POST and GET if requested. Same as in HTML. > > I really fail to see the problem there, Seaside behaves exactly like > HTML which is not surprising since it uses HTML. Thanks. I think I got a little bit taken away with the whole "it's got nothing to do with urls/http/html" speech ;-) Since I don't know the whole of W3Cs specs at heart it wouldn't have surprised me to find out that there is some magic hidden inside seaside that makes it happen. BTW (and this is not a criticism of Seaside but rather the docs) there is quite a bit of confusion for me about what exactly a component is expected to do and what not. Like: the component shouldn't worry about pages but it needs to worry about forums. Having the responsibilities stated somewhere would help me getting a better feel for understanding how to structure seaside apps. There are various other areas (the use of styles and css, or meta tags for example) that I'm not at all sure where the responsibility lies. Any good places to read up on? (where is the Seaside book when you need it ;-) Cheers, - Andreas _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Philippe Marschall
On 29 Mar 2007, at 22:36, Philippe Marschall wrote: > > http://www.lukas-renggli.ch/blog/blogbugfix > > In the earlier versions there was a confirmation dialog, that used a > form and POST but this had to be replaced by a single get and a JS > confirmation. Can you explain a bit more about that (esp. JS)? Is this related to the protective measures people put in place post-GWA? Also, do you direct the crawler in anyway? Or just let it walk the links? I hadn't expected Google to index the urls with state keys but if you look down at the bottom of the results it has actually done that. You probably know that but I had imagined that Google didn't care so much. Cheers, Mike _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
2007/3/30, Andreas Raab <[hidden email]>:
> Philippe Marschall wrote: > > Anchors are GET, always. That has nothing to do with Seaside but with > > HTML. Forms are default POST and GET if requested. Same as in HTML. > > > > I really fail to see the problem there, Seaside behaves exactly like > > HTML which is not surprising since it uses HTML. > > Thanks. I think I got a little bit taken away with the whole "it's got > nothing to do with urls/http/html" speech ;-) Since I don't know the > whole of W3Cs specs at heart it wouldn't have surprised me to find out > that there is some magic hidden inside seaside that makes it happen. How did Joel put it, leaky abstractions? ;) You certainly need to know html for doing Seaside. You need to know CSS or that you don't know CSS like in my case. > BTW (and this is not a criticism of Seaside but rather the docs) there > is quite a bit of confusion for me about what exactly a component is > expected to do and what not. Like: the component shouldn't worry about > pages but it needs to worry about forums. Having the responsibilities > stated somewhere would help me getting a better feel for understanding > how to structure seaside apps. There are various other areas (the use of > styles and css, or meta tags for example) that I'm not at all sure where > the responsibility lies. A component is responsible for generating a part of the html of a "page". This includes forms, since they are part of html (note that you must not nest forms, forms really suck in html). The (visible) part inside the <body> is generated in #renderContentOn:. The part in the <title> is generated in #updateRoot: (cerate your metas here). CSS depends on your needs. There are about three different ways for different situations. In general you assign the correct classes and ids to your html elements and the CSS comes from "somewhere" outside. You will have to write your CSS by hand (or let it write) Seaside doesn't help you there. It just gives you a choice where to put it. We suck at documentation and getting started. We know that and are not proud about this. We know the store example sucks. What would help are easy ways to turn mails like this into useful documentation. And of course if people help with documentation ... > Any good places to read up on? (where is the Seaside book when you need > it ;-) Seaside mailinglist ;) Ramon has some good blog posts, more can be found at: http://www.seaside.st/Community/ Philippe > Cheers, > - Andreas > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
So seaside is a great application for people who don't want to care
about low level details like http and html - except when you need to know about low level details like http and html. :-) Abstractions leak more on the web than in most places. -Todd Blanchard On Mar 29, 2007, at 11:42 AM, Andreas Raab wrote: > Boris Popov wrote: >> You need a form to put buttons in, > > Dang! Of course, stupid me ;-) > > Thanks, > - Andreas > >> WACounter>>renderContentOn: html >> html >> form: >> [html heading: count. >> (html submitButton) >> callback: [self increase]; >> text: '++'. >> html space. >> (html submitButton) >> callback: [self decrease]; >> text: '--'] >> Cheers! >> -Boris > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
You need to know about html and http if you're building web applications
regardless of the framework. All seaside does it make it (more) fun :) -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Todd Blanchard > Sent: Thursday, March 29, 2007 4:18 PM > To: Seaside - general discussion > Subject: Re: [Seaside] Re: Seaside and REST > > So seaside is a great application for people who don't want to care > about low level details like http and html - except when you need to > know about low level details like http and html. :-) > > Abstractions leak more on the web than in most places. > -Todd Blanchard > > On Mar 29, 2007, at 11:42 AM, Andreas Raab wrote: > > > Boris Popov wrote: > >> You need a form to put buttons in, > > > > Dang! Of course, stupid me ;-) > > > > Thanks, > > - Andreas > > > >> WACounter>>renderContentOn: html > >> html > >> form: > >> [html heading: count. > >> (html submitButton) > >> callback: [self increase]; > >> text: '++'. > >> html space. > >> (html submitButton) > >> callback: [self decrease]; > >> text: '--'] > >> Cheers! > >> -Boris > > > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
Philippe has already talked about some of the starting points....
> > BTW (and this is not a criticism of Seaside but rather the docs) > there is quite a bit of confusion for me about what exactly a > component is expected to do and what not. Like: the component > shouldn't worry about pages but it needs to worry about forums. > Having the responsibilities stated somewhere would help me getting > a better feel for understanding how to structure seaside apps. > There are various other areas (the use of styles and css, or meta > tags for example) that I'm not at all sure where the responsibility > lies. > > Any good places to read up on? (where is the Seaside book when you > need it ;-) and simple application. It shows *components *callbacks *component composition *call/answer *REST URLs (in a most basic manner) It doesn't do any style since I just hacked it up; you would just need to remove all the html breaks and sprinkle some css. If you are interested I would be happy to do that. It is probably not one for the experts on this list, since it is a bit dumb, but if you can understand what it does then you should have all the starting concepts (including REST which we don't start with!). At the very least, if you pick a fully loaded Seaside image like Damien's squeak-web then you can browse all the senders of the framework's messages and see better examples. For me, in absence of a book, I find Seaside easier to learn by doing rather than trying to comprehend entirely up front. I know that doesn't help you pick your framework but I would imagine that you need to take a punt in either direction anyway. Cheers, Mike _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside PP-Example-mjr.2.mcz.zip (6K) Download Attachment |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
> You need to know about html and http if you're building web
> applications regardless of the framework. All seaside does it > make it (more) fun :) > > -Boris By removing most of the burden of state management from the programmer. Rather than manually passing state between pages, and then looking it up again each time, continuations and callbacks can be used to tie actions together more naturally and urls are automagically generated for links that use this feature. However, you can still do everything the old fashioned way should you prefer it. The request and all its parameters are readily available. Urls can be generated any way you like via #addToPath:. The current path is also readily available. You can use meaningful urls if you like, Seaside only gives you more options, it's not taking anything away. Ramon Leon http://onsmalltalk.com _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Philippe Marschall
Philippe Marschall wrote:
> We suck at documentation and getting started. We know that and are not > proud about this. We know the store example sucks. What would help are > easy ways to turn mails like this into useful documentation. And of > course if people help with documentation ... One of the things that I have done in the past is to, instead of responding on-list, work information like this directly in a Wiki that you refer people to. This has two advantages: First, the information is preserved automatically, second, after a while people learn that this is a good place to go look for answers. [--- big snip; wearing my flame-proof suit now ---] BTW, I can tell you in numbers how much Seaside sucks for documentation - I noticed the apparent lack of any comments in so much of the code so I wrote a little analysis tool which looks at both class and method comments, ran this over my image, and took out everything that is less than 50 classes. The result (in alphabetical order so as not to embarrass you right away ;-) is this: Category Classes Comments % Methods Comments % Chat-* 50 12 24.00 584 151 25.85 Collections-* 86 71 82.55 2009 1200 59.73 Croquet-* 254 225 88.58 4599 1857 40.37 Games-* 95 43 45.26 1114 198 17.77 Graphics-* 57 46 80.70 1827 1085 59.38 Kernel-* 81 72 88.88 3171 2172 68.49 Magritte-* 214 83 38.78 1742 117 6.71 Monticello-* 135 10 7.40 1502 70 4.66 Morphic-* 419 255 60.85 10546 5037 47.76 Multilingual-* 85 37 43.52 715 182 25.45 Network-* 148 94 63.51 1512 728 48.14 Pier-* 157 46 29.29 1227 154 12.55 Qwaq-* 235 204 86.80 3746 2057 54.91 QwaqDemo-* 89 80 89.88 967 488 50.46 Scriptaculous-* 74 3 4.05 690 172 24.92 Seaside-* 297 40 13.46 2809 126 4.48 Sound-* 71 39 54.92 1252 615 49.12 ST80-* 72 58 80.55 1447 1030 71.18 Swazoo-* 81 1 1.23 718 45 6.26 System-* 123 72 58.53 2125 1218 57.31 Tools-* 60 42 70.00 1550 969 62.51 Tweak-* 563 281 49.91 9432 4743 50.28 VMMaker-* 93 71 76.34 3230 1488 46.06 If you sort this a little (I'd love to use dabbledb for this but I haven't figured it out yet ;-) you'll find that Seaside scores the 4th to last rank when looking at percentage of classes commented, and rock-bottom for percentage of methods commented. Ouch. [BTW, the best commented web package is HV2 but it is so small (44 classes) that it isn't listed here. It has 72% class and 53% method comment coverage which is a fair bit above average] The code for the above analysis is attached. Cheers, - Andreas _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside SystemDictionary-commentCoverageForon.st (2K) Download Attachment |
In reply to this post by Andreas.Raab
On Mar 29, 2007, at 10:38 AM, Andreas Raab wrote: > Klaus D. Witzel wrote: >> Besides of that, the counter in the Seaside counter example is >> *not* stored (as would be suggested by POST) but it is >> incremented. Doing incremental changes to a living object is not >> addressed by any HTTP request method ;-) For example, all WebDAV >> resources and Web2Mail scripts are considered to be dead (in the >> sense of a stateless, always repeatable request+response scenario). > > Which indeed they are. Buy my point about the counter example went > of course a little deeper. I can see the counter as stateless > merely by assuming that we have a platonic space of integer numbers > where plus and minus are retrievals ;-) However, that gets really > hard when we get to persistent state that can't be undone easily. > Or when one deals with files directly. Does Seaside have "special > rules" for making such modifications or are all of these presented > as GET nevertheless? You can get even more philosophical by considering continuations to be "resources." The theory behind HTML and HTTP is fine, but in practice you can't always live up to it. One of the limitations has been mentioned already - that you can't specify that a link should generate a POST request when the user clicks on it. Conversely, GET requests can't upload data in the body of the request; it has to be encoded in the url. This means that you must use POST to upload significant amounts of data, regardless of the semantics of a request. Seaside doesn't have "special rules" but it does (by default) use a convention to make this stuff a little safer. Normally, the transition from one page to another is split into two request- response cycles. The first triggers the callbacks associated with the link or form elements, and Seaside sends back a 302 response, redirecting the browser to another url. The second request triggers no callbacks and is a "pure" HTTP GET. Seaside sends back an html representation of the page in its new state. That page can be reloaded as much as you like with no side effects. Seaside is a set of compromises that takes a lot of the pain out of writing web apps. For web apps - software that uses the web as it's user interface - it's a pretty good compromise. It's not a good compromise for dynamic websites, or RESTful web services or similar things. Hope this help with your decision, Colin _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Colin Putney wrote:
> Seaside doesn't have "special rules" but it does (by default) use a > convention to make this stuff a little safer. Normally, the transition > from one page to another is split into two request-response cycles. The > first triggers the callbacks associated with the link or form elements, > and Seaside sends back a 302 response, redirecting the browser to > another url. The second request triggers no callbacks and is a "pure" > HTTP GET. Seaside sends back an html representation of the page in its > new state. That page can be reloaded as much as you like with no side > effects. Wow. This is pretty clever. I can see how this avoids a whole bunch of nasty problems. > Seaside is a set of compromises that takes a lot of the pain out of > writing web apps. For web apps - software that uses the web as it's user > interface - it's a pretty good compromise. It's not a good compromise > for dynamic websites, or RESTful web services or similar things. > > Hope this help with your decision, Yes, indeed it does. I think I'll try a mix-and-match approach and see where this gets me: Use HV2 for the RESTful parts and Seaside for the more complex ones. If it ends up all being Seaside in the end (or all being HV2) that's fine - for now I like to be able to try out both approaches and delay any irrecoverable decisions for a while. I think there is room for both in what I'm doing and learning about the strengths and weaknesses of each approach can't hurt. Cheers, - Andreas _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi!
> Colin Putney wrote: >> Hope this help with your decision, > > Yes, indeed it does. I think I'll try a mix-and-match approach and see > where this gets me: Use HV2 for the RESTful parts and Seaside for the > more complex ones. If it ends up all being Seaside in the end (or all > being HV2) that's fine - for now I like to be able to try out both > approaches and delay any irrecoverable decisions for a while. I think > there is room for both in what I'm doing and learning about the > strengths and weaknesses of each approach can't hurt. I will send you write access to the HV2 repo. Don't hesitate to improve on it. :) regards, Göran _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
Yes comments are missing! Long story there.
Stef > Philippe Marschall wrote: >> We suck at documentation and getting started. We know that and are >> not >> proud about this. We know the store example sucks. What would help >> are >> easy ways to turn mails like this into useful documentation. And of >> course if people help with documentation ... > > One of the things that I have done in the past is to, instead of > responding on-list, work information like this directly in a Wiki > that you refer people to. This has two advantages: First, the > information is preserved automatically, second, after a while > people learn that this is a good place to go look for answers. > > [--- big snip; wearing my flame-proof suit now ---] > > BTW, I can tell you in numbers how much Seaside sucks for > documentation - I noticed the apparent lack of any comments in so > much of the code so I wrote a little analysis tool which looks at > both class and method comments, ran this over my image, and took > out everything that is less than 50 classes. The result (in > alphabetical order so as not to embarrass you right away ;-) is this: > > Category Classes Comments % Methods Comments % > Chat-* 50 12 24.00 584 151 25.85 > Collections-* 86 71 82.55 2009 1200 59.73 > Croquet-* 254 225 88.58 4599 1857 40.37 > Games-* 95 43 45.26 1114 198 17.77 > Graphics-* 57 46 80.70 1827 1085 59.38 > Kernel-* 81 72 88.88 3171 2172 68.49 > Magritte-* 214 83 38.78 1742 117 6.71 > Monticello-* 135 10 7.40 1502 70 4.66 > Morphic-* 419 255 60.85 10546 5037 47.76 > Multilingual-* 85 37 43.52 715 182 25.45 > Network-* 148 94 63.51 1512 728 48.14 > Pier-* 157 46 29.29 1227 154 12.55 > Qwaq-* 235 204 86.80 3746 2057 54.91 > QwaqDemo-* 89 80 89.88 967 488 50.46 > Scriptaculous-* 74 3 4.05 690 172 24.92 > Seaside-* 297 40 13.46 2809 126 4.48 > Sound-* 71 39 54.92 1252 615 49.12 > ST80-* 72 58 80.55 1447 1030 71.18 > Swazoo-* 81 1 1.23 718 45 6.26 > System-* 123 72 58.53 2125 1218 57.31 > Tools-* 60 42 70.00 1550 969 62.51 > Tweak-* 563 281 49.91 9432 4743 50.28 > VMMaker-* 93 71 76.34 3230 1488 46.06 > > If you sort this a little (I'd love to use dabbledb for this but I > haven't figured it out yet ;-) you'll find that Seaside scores the > 4th to last rank when looking at percentage of classes commented, > and rock-bottom for percentage of methods commented. Ouch. > > [BTW, the best commented web package is HV2 but it is so small (44 > classes) that it isn't listed here. It has 72% class and 53% method > comment coverage which is a fair bit above average] > > The code for the above analysis is attached. > > Cheers, > - Andreas > <SystemDictionary-commentCoverageForon.st> > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
On 3/30/07, Andreas Raab <[hidden email]> wrote:
> Yes, indeed it does. I think I'll try a mix-and-match approach and see > where this gets me: Use HV2 for the RESTful parts and Seaside for the > more complex ones. Yup - that's a very sensible approach. I used it here and there as well, and I may even have some code somewhere in the attic that patches both to share sessions... -- "Human beings make life so interesting. Do you know, that in a universe so full of wonders, they have managed to invent boredom. " - Death, in "The Hogfather" _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Göran Krampe
On 3/30/07 4:21 AM, "Göran Krampe" <[hidden email]> wrote:
> Hi! > >> Colin Putney wrote: >>> Hope this help with your decision, >> >> Yes, indeed it does. I think I'll try a mix-and-match approach and see >> where this gets me: Use HV2 for the RESTful parts and Seaside for the >> more complex ones. If it ends up all being Seaside in the end (or all >> being HV2) that's fine - for now I like to be able to try out both >> approaches and delay any irrecoverable decisions for a while. I think >> there is room for both in what I'm doing and learning about the >> strengths and weaknesses of each approach can't hurt. > > I will send you write access to the HV2 repo. Don't hesitate to improve on > it. :) For newbies and lurkers, can you give a brief description of HV2, please? :) > > regards, Göran > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- Daryl http://itsallsemantics.com "I¹m afraid of the easy stuff its always harder than it seems" -- Bill Hampton, 2006 _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Andreas.Raab
Andreas Raab wrote:
> BTW (and this is not a criticism of Seaside but rather the docs) there > is quite a bit of confusion for me about what exactly a component is > expected to do and what not. Like: the component shouldn't worry about > pages but it needs to worry about forums. Having the responsibilities > stated somewhere would help me getting a better feel for understanding > how to structure seaside apps. There are various other areas (the use > of styles and css, or meta tags for example) that I'm not at all sure > where the responsibility lies. Well, as far as I have seen, Seaside is the best framework out there. But the problem I see is; due to the nature of HTML it is really hard to not have leaky abstractions. The obvious example here are HTML forms. Normally in Seaside your component is only responsible for displaying itself. It doesn't worry about things like <html>, <body> and such that occur in only one place. Forms are a bit harder though since: (1) every page doesn't have to have them, (2) any page can have more then one (afaik), and (3) the presence of form elements does not require a form to be present (could be JavaScript instead). I don't personally use forms myself (the only ones I have are generated by Magritte), but perhaps a way to handle them is to treat the form like a "mini-page". That is, the form is just one component that only has subcomponents. That way the subcomponents only have to display themselves as usual and don't worry about the details of the form itself. Then the components have the typical Seaside trait of being able to be arbitrarily moved around. I don't know how other people handle it, but I know the Seashore components package for seaside allows nested forms, if one wanted to go that route. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> I don't personally use forms myself (the only ones I have are > generated by Magritte), Oh, I should clarify this: I don't think myself above using forms, I just meant to say that I haven't and therefor cant speak from a position of experience. :) _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Cees De Groot
Hi Cees -
Cees de Groot wrote: > On 3/30/07, Andreas Raab <[hidden email]> wrote: >> Yes, indeed it does. I think I'll try a mix-and-match approach and see >> where this gets me: Use HV2 for the RESTful parts and Seaside for the >> more complex ones. > > Yup - that's a very sensible approach. I used it here and there as > well, and I may even have some code somewhere in the attic that > patches both to share sessions... I almost forgot about that - if you could find that code I'd be really interested in it. Thanks, - Andreas _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Daryl Richter-3
Il giorno ven, 30/03/2007 alle 07.11 -0400, Daryl Richter ha scritto:
> For newbies and lurkers, can you give a brief description of HV2, please? > :) Hi Daryl, I've updated the old home page for HV2, and moved it to the swiki. You may find it here: http://wiki.squeak.org/wiki/HttpView2 Giovanni _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |