Talk:24 game/CSharp: Difference between revisions

From Rosetta Code
Content added Content deleted
(Polling other developers to chime in on the use of the XPathNavigator.Evaluate method.)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Use of XPathNavigator.Evaluate()==
I'm curious what the community thinks about leveraging the XPathNavigator.Evaluate() method. Is this "bad" programming if there are no other comparable alternatives?
I'm curious what the community thinks about leveraging the XPathNavigator.Evaluate() method. Is this "bad" programming if there are no other comparable alternatives?


I'd personally favor the custom parser, but that's only because using the navigator feels like a hack. A big plus for the navigator, though is that it is less complex from a client code perspective and is a proven block of code vs. writing a new custom parser.
I'd personally favor the custom parser, but that's only because using the navigator feels like a hack. A big plus for the navigator, though is that it is less complex from a client code perspective and is a proven block of code vs. writing a new custom parser. --[[User:Orrin|Orrin]] 23:30, 2010 April 28 (UTC)

:I'm ''not'' a C# programmer, but if it is a standard library that is officially supported then why not use it? It stops code bloat and is less to maintain. I did similar when using the in-built Python AST module [[Arithmetic_evaluation#ast_standard_library_module|here]]. --[[User:Paddy3118|Paddy3118]] 06:47, 29 April 2010 (UTC)
:I agree with Paddy, and extend his generalization to 3rd-party libraries; if that's what a good programmer in a language would use, that suggests to me that it's par for that language. --[[User:Short Circuit|Michael Mol]] 14:15, 29 April 2010 (UTC)
:Thanks, guys. Guess that's what I expected to hear. --[[User:Orrin|Orrin]] 16:48, 2010 April 29 (UTC)

Latest revision as of 16:50, 29 April 2010

Use of XPathNavigator.Evaluate()

I'm curious what the community thinks about leveraging the XPathNavigator.Evaluate() method. Is this "bad" programming if there are no other comparable alternatives?

I'd personally favor the custom parser, but that's only because using the navigator feels like a hack. A big plus for the navigator, though is that it is less complex from a client code perspective and is a proven block of code vs. writing a new custom parser. --Orrin 23:30, 2010 April 28 (UTC)

I'm not a C# programmer, but if it is a standard library that is officially supported then why not use it? It stops code bloat and is less to maintain. I did similar when using the in-built Python AST module here. --Paddy3118 06:47, 29 April 2010 (UTC)
I agree with Paddy, and extend his generalization to 3rd-party libraries; if that's what a good programmer in a language would use, that suggests to me that it's par for that language. --Michael Mol 14:15, 29 April 2010 (UTC)
Thanks, guys. Guess that's what I expected to hear. --Orrin 16:48, 2010 April 29 (UTC)