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 opinionsince 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 bemore complex if it has to consider optional parameters when itencounters [ipaddress.3- Adding optional parameters to a tag that never had them beforemeans the C++ programmer (probably wouldn't but) could possibly"screw up" and accidentally break [ipaddress] -- whereas with anew tag he wouldn't even be touching that internal code so hecould not break it.4- To me it is cleaner to add a new tag rather than make us modifyour use of an existing tag, especially when the vast majority ofus 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 thatwe don't need it because using [showif x=y] would work fine tohide any code we felt like commenting out ...FORTUNATELY my suggestion was ignored, and ever since we haveenjoyed the benefit of the faster and easier to type [!]. I thinkthe same lesson applies here: Let's just keep things as simple aspossible and add a new [realIP] tag -- or make things supershort-and-sweet with [ip].:)Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 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:
Nothing wrong with your approach either, however here's my opinionsince 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 bemore complex if it has to consider optional parameters when itencounters [ipaddress.3- Adding optional parameters to a tag that never had them beforemeans the C++ programmer (probably wouldn't but) could possibly"screw up" and accidentally break [ipaddress] -- whereas with anew tag he wouldn't even be touching that internal code so hecould not break it.4- To me it is cleaner to add a new tag rather than make us modifyour use of an existing tag, especially when the vast majority ofus 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 thatwe don't need it because using [showif x=y] would work fine tohide any code we felt like commenting out ...FORTUNATELY my suggestion was ignored, and ever since we haveenjoyed the benefit of the faster and easier to type [!]. I thinkthe same lesson applies here: Let's just keep things as simple aspossible and add a new [realIP] tag -- or make things supershort-and-sweet with [ip].:)Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 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:
Web Mail (2000)
t or f (1997)
WebCat 3.04-3.07 plug-in dying on server.... (2000)
carriage returns in data (1997)
Quit revisited (1997)
Help w/Multi User Admins (1997)
Talk List Archive Down? (2004)
RE: Formulas.db + Users.db (1997)
WebCat2 - Getting to the browser's username/password data (1997)
HomePage Caution (1997)
Rookie/New User Question (2003)
why is this line in GeneralStore? (1998)
WebCat2 - Getting to the browser's username/password data (1997)
New Guestbook Source (1997)
orderfile location (1999)
protect tag on NT IIS (1997)
SmithMicro FTP problems (2002)
webcat2b12 CGI -- Date comparisons (1997)
WebCatalog-NT?'s (1996)
Re[2]: 2nd WebCatalog2 Feature Request (1996)