tag:blogger.com,1999:blog-5993074704535120230.post7963706640299224701..comments2014-01-03T17:22:31.355-08:00Comments on Random bits of foo: DelimitersErinhttp://www.blogger.com/profile/02595867288580221282noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5993074704535120230.post-73993761643248381172008-12-26T13:36:00.000-08:002008-12-26T13:36:00.000-08:00Well that delimiter has some problems when you pas...Well that delimiter has some problems when you pass a string from managed code and back on occasion. But it would have been better then # by it's self.Erinhttps://www.blogger.com/profile/02595867288580221282noreply@blogger.comtag:blogger.com,1999:blog-5993074704535120230.post-6471800785673243042008-12-26T09:44:00.000-08:002008-12-26T09:44:00.000-08:00Just out of curiosity... if one is defining their ...Just out of curiosity... if one is defining their own delimiter why not use something like the Cstring delimiter? \x00<BR/>Non-typeable, Non-printable characters make the best delimiters IMHOAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5993074704535120230.post-43723108487598775502008-12-10T10:12:00.000-08:002008-12-10T10:12:00.000-08:00The reason for not using string.formate in this ca...The reason for not using string.formate in this case is actually the command in one case takes 10 args and in a different case takes 5.Erinhttps://www.blogger.com/profile/02595867288580221282noreply@blogger.comtag:blogger.com,1999:blog-5993074704535120230.post-11140713470027301772008-12-10T10:09:00.000-08:002008-12-10T10:09:00.000-08:00Oh, How i hate it when people have bright ideas li...Oh, How i hate it when people have bright ideas like the # sign for delimiting a file. Ritualistic suicide doesn't seem so bad for these people. That aside I do agree with you mostly on this. My only thing where I'll differentiate myself from you is that I do use String.Format over String.Join simply because if used wisely its a safe route to go and you can remove the output data formatting from the call and into the output string template such as using {0:C} for currency formatting using the current culture etc. I will say that having that string littered in code and not abstracted to either a resource file or a property is full of fail, especially given the large amount of fields being supplied. That is just screaming for some half wit code noob to come fuck it up. In short, good post, full of win.Anonymousnoreply@blogger.com