Re: [WebDNA] maybe silly suggestion? [founditems]
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111896
interpreted = N
texte = Hi Brian,I think the idea of catering WebDNA to be more MVC compliant is a good =idea. Yes, you can do this in several ways currently.. but,is there better possible ways? probably.=20As you know, WebDNA is not an object oriented language, so our methods =would look a bit different than other languages.Govinda did an MVC framework that can be found in the archives. His may =/ may not be the end-all / be all.. but I think morediscussion would be needed to figure out where WSC might want to go with =supporting MVC better. To keep in-line with the ideals of=20WebDNA, the solutions would have to be understandable, yet powerful =enough to justify.=20Currently, in your example, it might be pretty straight forward to make =use of the WebDNA [function] tag to get your desired behavior.=20I=92m not sure core WebDNA engine tags would make things any easier / =better.=20more discussion I think.=20Sincerely,Donovan=20On Jan 14, 2015, at 2:57 PM, Brian Burton
wrote:> to help separate my controller logic from my display code it would be =awesome to have a shortcut like:> [search db=3Dallthethings.db&blahblahblah][savefounditems =name=3Dpeoplenameddave][/search]>=20>=20>=20>=20> then later in the page, where i=92m rendering the html> [displayfounditems use=3Dpeoplenameddave] html things =[/displayfounditems]>=20>=20>=20> I know it looks like it=92s not saving that much code, but I can see =switching which search I want in the controller, and still being able to =use a universal founditems loop lower in the code. Also the ability to =reuse search results (if needed) without doing the same search again.=20>=20> ok, feel free to start telling me how you can do this with a table =(you=92re missing the point) or how we don=92t need more tags or =whatever :)=20>=20>=20> -Brian B. Burton> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Hi Brian,I think the idea of catering WebDNA to be more MVC compliant is a good =idea. Yes, you can do this in several ways currently.. but,is there better possible ways? probably.=20As you know, WebDNA is not an object oriented language, so our methods =would look a bit different than other languages.Govinda did an MVC framework that can be found in the archives. His may =/ may not be the end-all / be all.. but I think morediscussion would be needed to figure out where WSC might want to go with =supporting MVC better. To keep in-line with the ideals of=20WebDNA, the solutions would have to be understandable, yet powerful =enough to justify.=20Currently, in your example, it might be pretty straight forward to make =use of the WebDNA [function] tag to get your desired behavior.=20I=92m not sure core WebDNA engine tags would make things any easier / =better.=20more discussion I think.=20Sincerely,Donovan=20On Jan 14, 2015, at 2:57 PM, Brian Burton wrote:> to help separate my controller logic from my display code it would be =awesome to have a shortcut like:> [search db=3Dallthethings.db&blahblahblah][savefounditems =name=3Dpeoplenameddave][/search]>=20>=20>=20>=20> then later in the page, where i=92m rendering the html> [displayfounditems use=3Dpeoplenameddave] html things =[/displayfounditems]>=20>=20>=20> I know it looks like it=92s not saving that much code, but I can see =switching which search I want in the controller, and still being able to =use a universal founditems loop lower in the code. Also the ability to =reuse search results (if needed) without doing the same search again.=20>=20> ok, feel free to start telling me how you can do this with a table =(you=92re missing the point) or how we don=92t need more tags or =whatever :)=20>=20>=20> -Brian B. Burton> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
' add to cart ' or ' sku ' problem (1998)
my price won't move (1997)
Sorting (2000)
[OT][OT] OSX email client (2002)
What am I doing wrong? --GOT IT! (2000)
Non-SGML Characters and databases (2004)
%@#*& back button!!! (1999)
[shownext] and sort (1998)
Typhoon Rev. and PCS store problems (1999)
Anyone Using 4DMail (2004)
item sorting (1997)
'page impression' techniques for banner ads (1999)
[WebDNA] I need a newbie installation primer (2011)
[showif] and equality (1998)
WebCatalog can't find database (1997)
Quickie question on the email templates (1997)
US Postal Service API (2007)
External RAID (2005)
showif (1999)
Where is f2? (1997)