Re: [WebDNA] Don't change [ipaddress] ...

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111853
interpreted = N
texte = Nothing wrong with your approach either, however here's my opinion since you brought it up: 1- [realIP] is a whole lot faster and easier to type than [ipaddress format=standard/clean] 2- The internal code inside the WebDNA engine would probably be more complex if it has to consider optional parameters when it encounters [ipaddress. 3- Adding optional parameters to a tag that never had them before means the C++ programmer (probably wouldn't but) could possibly "screw up" and accidentally break [ipaddress] -- whereas with a new tag he wouldn't even be touching that internal code so he could not break it. 4- To me it is cleaner to add a new tag rather than make us modify our use of an existing tag, especially when the vast majority of us will probably never use [ipaddress] again anyways after [realIP] becomes available! This reminds me of years ago when Grant asked for suggestions. One of them was to create a webdna comment context. I argued that we don't need it because using [showif x=y] would work fine to hide any code we felt like commenting out ... FORTUNATELY my suggestion was ignored, and ever since we have enjoyed the benefit of the faster and easier to type [!]. I think the same lesson applies here: Let's just keep things as simple as possible and add a new [realIP] tag -- or make things super short-and-sweet with [ip]. :) Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 01/12/2015 11:48 AM, Brian Burton wrote: > Why not [ipaddress format=standard/clean]? if no format is > specified, the default behavior is the same as today, if the > format is specified to be “clean” then no extra zeros. This is > more inline with the other WebDNA tags and doesn’t add more > clutter to the language. > > -BBB > >> On Jan 12, 2015, at 11:11 AM, Kenneth Grome >> wrote: >> >>> Maybe it's better that the WSC resources be put to other >>> uses like fixing the IPaddress format. >> >> For clarification, I never suggested changing or "fixing" >> the existing [ipaddress] format. >> >> And I would never make such a suggestion because it would >> break the work-around code many of us have been using for >> years to get rid of the extraneous leading zeros produced by >> [ipaddress]. >> >> On the other hand, a *new* [realIP] tag that gives us the >> real ip address -- without the undesirable leading zeros -- >> would definitely be a welcome improvement. >> >> Regards, Kenneth Grome > > > --------------------------------------------------------- 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] Don't change [ipaddress] ... (Kenneth Grome 2015)
  2. Re: [WebDNA] Don't change [ipaddress] ... (Brian Burton 2015)
  3. Re: [WebDNA] Don't change [ipaddress] ... (Brian Burton 2015)
  4. Re: [WebDNA] Don't change [ipaddress] ... (Terry Wilson 2015)
  5. [WebDNA] Don't change [ipaddress] ... (Kenneth Grome 2015)
Nothing wrong with your approach either, however here's my opinion since you brought it up: 1- [realIP] is a whole lot faster and easier to type than [ipaddress format=standard/clean] 2- The internal code inside the WebDNA engine would probably be more complex if it has to consider optional parameters when it encounters [ipaddress. 3- Adding optional parameters to a tag that never had them before means the C++ programmer (probably wouldn't but) could possibly "screw up" and accidentally break [ipaddress] -- whereas with a new tag he wouldn't even be touching that internal code so he could not break it. 4- To me it is cleaner to add a new tag rather than make us modify our use of an existing tag, especially when the vast majority of us will probably never use [ipaddress] again anyways after [realIP] becomes available! This reminds me of years ago when Grant asked for suggestions. One of them was to create a webdna comment context. I argued that we don't need it because using [showif x=y] would work fine to hide any code we felt like commenting out ... FORTUNATELY my suggestion was ignored, and ever since we have enjoyed the benefit of the faster and easier to type [!]. I think the same lesson applies here: Let's just keep things as simple as possible and add a new [realIP] tag -- or make things super short-and-sweet with [ip]. :) Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 01/12/2015 11:48 AM, Brian Burton wrote: > Why not [ipaddress format=standard/clean]? if no format is > specified, the default behavior is the same as today, if the > format is specified to be “clean” then no extra zeros. This is > more inline with the other WebDNA tags and doesn’t add more > clutter to the language. > > -BBB > >> On Jan 12, 2015, at 11:11 AM, Kenneth Grome >> wrote: >> >>> Maybe it's better that the WSC resources be put to other >>> uses like fixing the IPaddress format. >> >> For clarification, I never suggested changing or "fixing" >> the existing [ipaddress] format. >> >> And I would never make such a suggestion because it would >> break the work-around code many of us have been using for >> years to get rid of the extraneous leading zeros produced by >> [ipaddress]. >> >> On the other hand, a *new* [realIP] tag that gives us the >> real ip address -- without the undesirable leading zeros -- >> would definitely be a welcome improvement. >> >> Regards, Kenneth Grome > > > --------------------------------------------------------- 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 > Kenneth Grome

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:

WCf2 and nested tags (1997) Subject: Authenticating users without dialog box (1997) whole word matching (2004) [returnraw] and form variables (1998) searchable list archive (1997) [WebDNA] Email syntax checking code? (2015) select menus & database design (1998) Soft return (2001) Empty Shopping Carts? (1998) Explorer 3.0 (1997) [WebDNA] [MATH] & formatting (2015) Protecting webdelivery (1997) missing records (1998) multi-paragraph fields (1997) emailer settings and control questions (1997) Updating emailer (server) (2000) Execute Applescript (1997) Emailer (1998) PCS Frames-Default page is solution! (1997) Thanks for tips, more quest (1997)