Re: [WebDNA] improvements

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111944
interpreted = N
texte = If we work on the [switch] cell to introduce the full set of comparisons = available with [showif], will you all still need the [elseif] ? I ask because if seems to me this is something missing with [switch] = that should have been there in the first place, but the [elseif] concept = could show a little bit heavy and less elegant=E2=80=A6 - chris > On 15 Jan 2015, at 20:58, iPhonzie@G wrote: >=20 > The do/while and repeat/until scenarios can be easily enough managed = with [loop], so that doesn=E2=80=99t bother me enough to need the = additional tags, but I would love to see [break] available in EVERY = looping context - founditems, listwords, formvariables, etc. >=20 >=20 > [elseif] would be a great addition for situations where you have a = number of mutually exclusive conditions that are to complex for = [switch]. I have lots of code that looks like this: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [else] > [if (condition2)] > [then] > do stuff 2 > [/then] > [else] > [if (condition3)] > [then] > do stuff 3 > [/then] > [else] > do default stuff > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] >=20 > This would be much nicer if I could write: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [elseif (condition2)] > do stuff 2 > [/elseif] > [elseif (condition3)] > do stuff 3 > [/elseif] > [else] > do default stuff > [/else] > [/if] >=20 >=20 > This could similarly be addressed with an alternative form of = switch/case. One possibility would be if no parameters are in the = [switch] tag, then [if]-style comparisons could be put into each [case] = tag: >=20 > [switch] > [case (condition1)] > do stuff 1 > [/case] > [case (condition2)] > do stuff 2 > [/case] > [case (condition3)] > do stuff 3 > [/case] > [default] > do default stuff > [/default] > [/switch] >=20 >=20 > =E2=80=94 Brian Fries >=20 > On January 15, 2015 at 9:34:47 AM, Psi Prime Inc, Matthew A Perosi = (matt@psiprime.com) wrote: >=20 >> There have been plenty of time when I needed a [do]/[while] or a=20 >> [repeat]/[until] statement.=20 >>=20 >> The [removehtml] needs to be improved to recognize the new format for=20= >> HTML. Instead of removing HTML tags formatted like this:=20 >> =20 >> it needs to also recognize this new format like this:=20 >> =20 >>=20 >> Secure cookies are a good idea and I could use those too.=20 >>=20 >> -Matt=20 >>=20 >>=20 >> On 1/15/2015 11:23 AM, christophe.billiottet@webdna.us wrote:=20 >> > Some possible ideas; please explain specifically what you want with = "[elseif] to [if] context" and the [switch]=20 >> >=20 >> > The "commerce tags" are not supported anymore. Also, PostGres is = not on the roadmap at this time.=20 >> >=20 >> > You have had an opportunity earlier.=20 >> >=20 >> > - chris=20 >> >=20 >> >=20 >> >=20 >> >=20 >> >> On 15 Jan 2015, at 18:56, Donovan Brooke wrote:=20= >> >>=20 >> >> If resources are going to be put into development rather than = marketing, why not make some *standardized* improvements that will = attract new users.=20 >> >> I=E2=80=99m talking about things that programmers look for in a = language.=20 >> >>=20 >> >> Off the top of my head:=20 >> >> [elseif] to [if] context.=20 >> >>=20 >> >> Database support, starting with PostGres=20 >> >> ie. [SQLConnect dbtype=3DPostGres]=20 >> >>=20 >> >> [sendmail] (local) override (instead of global server setting) of = things like smtp port/auth, TLS settings, etc.. We already have the = roadmap to make that local.=20 >> >>=20 >> >> [switch..] context with more comparison options.=20 >> >>=20 >> >> Add Md5 (and other newer encryption, digest, etc.) to encrypt..=20 >> >> for md5, just copy APOP. APOP is not very descriptive.=20 >> >> [encrypt method=3Dmd5][/encrypt]=20 >> >>=20 >> >> secure param for setcookie=20 >> >>=20 >> >> Some other improvements off the top of my head:=20 >> >>=20 >> >> For the commerce tags (which, yes, they are still very = useful):=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6..=20 >> >> [listHeaders][/listHeaders]=20 >> >> ie.:=20 >> >> [orderfile cart=3D[cart]]=20 >> >> [listHeaders name=3DAccountnum]=20 >> >> [name]=3D[value]
=20 >> >> [/listheaders]=20 >> >> [/orderfile]=20 >> >>=20 >> >> would produce:=20 >> >> accountnum=3D=20 >> >>=20 >> >> =3D=3D=20 >> >> Ability to set a flag to use a WebDNA Database with [orderfile] = instead of the=20 >> >> order files that are created.=20 >> >>=20 >> >> =3D=3D=20 >> >> Ability to specify a unique ID within [addlineitems..], instead of = sku=20 >> >> [addlineitems uniqueID=3Dp_id&p_id=3DX&cart=3D[cart]][/addlineitems]= =20 >> >> = =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2= =80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80= =A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6= =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6...=20 >> >>=20 >> >>=20 >> >> "Best Match" used in WebDNA Search system is munged when using the = Summ=3DT param. <=E2=80=94 I don=E2=80=99t think that ever got fixed.=20 >> >>=20 >> >> Improvements to [removehtml]:=20 >> >> specify only parts of the html syntax... such as:=20 >> >> [removehtml comments]=20 >> >>=20 >> >> New SiteBuilder?=20 >> >>=20 >> >> code for Payment and Shipping Gateway API=E2=80=99s.=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >> ---------------------------------------------------------=20 >> >> This message is sent to you because you are subscribed to=20 >> >> the mailing list .=20 >> >> To unsubscribe, E-mail to: =20 >> >> archives: http://mail.webdna.us/list/talk@webdna.us=20 >> >> Bug Reporting: support@webdna.us=20 >> > ---------------------------------------------------------=20 >> > This message is sent to you because you are subscribed to=20 >> > the mailing list .=20 >> > To unsubscribe, E-mail to: =20 >> > archives: http://mail.webdna.us/list/talk@webdna.us=20 >> > Bug Reporting: support@webdna.us=20 >> >=20 >> >=20 >> >=20 >> > --=20 >> > Matthew A Perosi=20 >> > Corporate Consultant=20 >> > Mobile Marketing Expert=20 >> > Senior Web Developer=20 >> > SEO Analyst & Educator=20 >> > matt@psiprime.com=20 >> >=20 >> > Psi Prime, Inc.=20 >> > 323 Union Blvd.=20 >> > Totowa, NJ 07512=20 >> >=20 >> > Direct: 888.872.0274=20 >> > Fax: 888.488.5924=20 >> >=20 >> > http://www.perosi.com=20 >> ---------------------------------------------------------=20 >> This message is sent to you because you are subscribed to=20 >> the mailing list .=20 >> To unsubscribe, E-mail to: =20 >> archives: http://mail.webdna.us/list/talk@webdna.us=20 >> Bug Reporting: support@webdna.us=20 > --------------------------------------------------------- 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:

    
  1. Re: [WebDNA] improvements (Stuart Tremain 2015)
  2. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  3. Re: [WebDNA] improvements (Tom Duke 2015)
  4. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  5. Re: [WebDNA] improvements (Jym Duane 2015)
  6. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  7. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  8. Re: [WebDNA] improvements (Brian Burton 2015)
  9. Re: [WebDNA] improvements (Dan Strong 2015)
  10. Re: [WebDNA] improvements (Stephen Reiss 2015)
  11. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  12. Re: [WebDNA] improvements (Kenneth Grome 2015)
  13. Re: [WebDNA] improvements (Dan Strong 2015)
  14. Re: [WebDNA] improvements (Donovan Brooke 2015)
  15. Re: [WebDNA] improvements (Matthew Perosi 2015)
  16. Re: [WebDNA] improvements (Kenneth Grome 2015)
  17. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  18. Re: [WebDNA] improvements ("Psi Prime Inc, Matthew A Perosi " 2015)
  19. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  20. [WebDNA] improvements (Donovan Brooke 2015)
If we work on the [switch] cell to introduce the full set of comparisons = available with [showif], will you all still need the [elseif] ? I ask because if seems to me this is something missing with [switch] = that should have been there in the first place, but the [elseif] concept = could show a little bit heavy and less elegant=E2=80=A6 - chris > On 15 Jan 2015, at 20:58, iPhonzie@G wrote: >=20 > The do/while and repeat/until scenarios can be easily enough managed = with [loop], so that doesn=E2=80=99t bother me enough to need the = additional tags, but I would love to see [break] available in EVERY = looping context - founditems, listwords, formvariables, etc. >=20 >=20 > [elseif] would be a great addition for situations where you have a = number of mutually exclusive conditions that are to complex for = [switch]. I have lots of code that looks like this: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [else] > [if (condition2)] > [then] > do stuff 2 > [/then] > [else] > [if (condition3)] > [then] > do stuff 3 > [/then] > [else] > do default stuff > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] >=20 > This would be much nicer if I could write: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [elseif (condition2)] > do stuff 2 > [/elseif] > [elseif (condition3)] > do stuff 3 > [/elseif] > [else] > do default stuff > [/else] > [/if] >=20 >=20 > This could similarly be addressed with an alternative form of = switch/case. One possibility would be if no parameters are in the = [switch] tag, then [if]-style comparisons could be put into each [case] = tag: >=20 > [switch] > [case (condition1)] > do stuff 1 > [/case] > [case (condition2)] > do stuff 2 > [/case] > [case (condition3)] > do stuff 3 > [/case] > [default] > do default stuff > [/default] > [/switch] >=20 >=20 > =E2=80=94 Brian Fries >=20 > On January 15, 2015 at 9:34:47 AM, Psi Prime Inc, Matthew A Perosi = (matt@psiprime.com) wrote: >=20 >> There have been plenty of time when I needed a [do]/[while] or a=20 >> [repeat]/[until] statement.=20 >>=20 >> The [removehtml] needs to be improved to recognize the new format for=20= >> HTML. Instead of removing HTML tags formatted like this:=20 >> =20 >> it needs to also recognize this new format like this:=20 >> =20 >>=20 >> Secure cookies are a good idea and I could use those too.=20 >>=20 >> -Matt=20 >>=20 >>=20 >> On 1/15/2015 11:23 AM, christophe.billiottet@webdna.us wrote:=20 >> > Some possible ideas; please explain specifically what you want with = "[elseif] to [if] context" and the [switch]=20 >> >=20 >> > The "commerce tags" are not supported anymore. Also, PostGres is = not on the roadmap at this time.=20 >> >=20 >> > You have had an opportunity earlier.=20 >> >=20 >> > - chris=20 >> >=20 >> >=20 >> >=20 >> >=20 >> >> On 15 Jan 2015, at 18:56, Donovan Brooke wrote:=20= >> >>=20 >> >> If resources are going to be put into development rather than = marketing, why not make some *standardized* improvements that will = attract new users.=20 >> >> I=E2=80=99m talking about things that programmers look for in a = language.=20 >> >>=20 >> >> Off the top of my head:=20 >> >> [elseif] to [if] context.=20 >> >>=20 >> >> Database support, starting with PostGres=20 >> >> ie. [SQLConnect dbtype=3DPostGres]=20 >> >>=20 >> >> [sendmail] (local) override (instead of global server setting) of = things like smtp port/auth, TLS settings, etc.. We already have the = roadmap to make that local.=20 >> >>=20 >> >> [switch..] context with more comparison options.=20 >> >>=20 >> >> Add Md5 (and other newer encryption, digest, etc.) to encrypt..=20 >> >> for md5, just copy APOP. APOP is not very descriptive.=20 >> >> [encrypt method=3Dmd5][/encrypt]=20 >> >>=20 >> >> secure param for setcookie=20 >> >>=20 >> >> Some other improvements off the top of my head:=20 >> >>=20 >> >> For the commerce tags (which, yes, they are still very = useful):=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6..=20 >> >> [listHeaders][/listHeaders]=20 >> >> ie.:=20 >> >> [orderfile cart=3D[cart]]=20 >> >> [listHeaders name=3DAccountnum]=20 >> >> [name]=3D[value]
=20 >> >> [/listheaders]=20 >> >> [/orderfile]=20 >> >>=20 >> >> would produce:=20 >> >> accountnum=3D=20 >> >>=20 >> >> =3D=3D=20 >> >> Ability to set a flag to use a WebDNA Database with [orderfile] = instead of the=20 >> >> order files that are created.=20 >> >>=20 >> >> =3D=3D=20 >> >> Ability to specify a unique ID within [addlineitems..], instead of = sku=20 >> >> [addlineitems uniqueID=3Dp_id&p_id=3DX&cart=3D[cart]][/addlineitems]= =20 >> >> = =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2= =80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80= =A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6= =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6...=20 >> >>=20 >> >>=20 >> >> "Best Match" used in WebDNA Search system is munged when using the = Summ=3DT param. <=E2=80=94 I don=E2=80=99t think that ever got fixed.=20 >> >>=20 >> >> Improvements to [removehtml]:=20 >> >> specify only parts of the html syntax... such as:=20 >> >> [removehtml comments]=20 >> >>=20 >> >> New SiteBuilder?=20 >> >>=20 >> >> code for Payment and Shipping Gateway API=E2=80=99s.=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >>=20 >> >> ---------------------------------------------------------=20 >> >> This message is sent to you because you are subscribed to=20 >> >> the mailing list .=20 >> >> To unsubscribe, E-mail to: =20 >> >> archives: http://mail.webdna.us/list/talk@webdna.us=20 >> >> Bug Reporting: support@webdna.us=20 >> > ---------------------------------------------------------=20 >> > This message is sent to you because you are subscribed to=20 >> > the mailing list .=20 >> > To unsubscribe, E-mail to: =20 >> > archives: http://mail.webdna.us/list/talk@webdna.us=20 >> > Bug Reporting: support@webdna.us=20 >> >=20 >> >=20 >> >=20 >> > --=20 >> > Matthew A Perosi=20 >> > Corporate Consultant=20 >> > Mobile Marketing Expert=20 >> > Senior Web Developer=20 >> > SEO Analyst & Educator=20 >> > matt@psiprime.com=20 >> >=20 >> > Psi Prime, Inc.=20 >> > 323 Union Blvd.=20 >> > Totowa, NJ 07512=20 >> >=20 >> > Direct: 888.872.0274=20 >> > Fax: 888.488.5924=20 >> >=20 >> > http://www.perosi.com=20 >> ---------------------------------------------------------=20 >> This message is sent to you because you are subscribed to=20 >> the mailing list .=20 >> To unsubscribe, E-mail to: =20 >> archives: http://mail.webdna.us/list/talk@webdna.us=20 >> Bug Reporting: support@webdna.us=20 > --------------------------------------------------------- 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 christophe.billiottet@webdna.us

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:

New Mac Public Beta Available (1997) [ShowIf] and empty fields (1997) [format xs] freeze (1997) [TaxableTotal] - not working with AOL and IE (1997) LineItem variable set (2007) What am I missing (1997) CSS positioning!!! (2001) Laying an egg. (1998) Mixed databases (1998) Generating Options for a Form. (1997) WebCatalog/WebMerchant 3.0 for SALE !!! (2000) Emailer help....! (1997) WebCat with WebTen (1998) [WebDNA] Brian Harrington (2019) encripted storage (1998) Speed Admin? (Was FlushDatabases) (1997) [WebDNA] WebDNA as cgi app (was WebSite Examples) (2008) Retrospect Backup Misses Empty Folders (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Storing calculated data (2002)