Reputation
676
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 11
Newest
 Enlightened
Impact
~68k people reached

  • 0 posts edited
  • 5 helpful flags
  • 63 votes cast
Mar
13
answered Where can I find software project deliverables/ documents to help me professionally document my projects?
Dec
23
reviewed No Action Needed How to represent a collection with capacity in a database?
Oct
9
awarded  Enlightened
Oct
9
awarded  Nice Answer
Jul
28
awarded  Yearling
Jul
10
reviewed Reviewed Can you do iterative development in c#?
Jul
10
reviewed No Action Needed Getting items from a ListView - without breaking MVC paradigm?
May
18
reviewed Reviewed number of square matrices in a non-square matrix
May
18
awarded  Custodian
Oct
31
comment Data structures and algorithms for a directed rooted tree with inherited properties?
Come on.. don't just downvote. Tell me why?!
Oct
23
answered Data structures and algorithms for a directed rooted tree with inherited properties?
Dec
3
comment Is logging hours for software work a good idea?
if only the answers could be merged :)
Dec
3
answered Is logging hours for software work a good idea?
Dec
17
awarded  Yearling
Jun
8
awarded  Caucus
May
8
revised Best way to parse a file
added 1145 characters in body
May
7
comment Best way to parse a file
@Spencer Rathbun You encourage me too take a deeper look back into state machines.. I actually like them and remember them fondly. I also like to promote things that I have found have worked well for me before, like OO parsing of messages. The parsing rules here are the structure of the message and I believe they would both work well. however I think the OO approach is simpler.
May
7
comment Best way to parse a file
@Songo.. nope, you would parse independently of the vendor (unless you new who). the parse would be in the INIT of the class. You turn your message into a data object based on the same rules used to construct the message. If you needed to grab something from the message however.. and it is represented differently across your vendors then you would have the different functions yep.. But why do it like that? use a base class and have a separate class for each vendor, overriding only when necessary, much easier. take advantage of inheritance.
May
7
comment Best way to parse a file
it is a message, what states do you need? it would seem that such a message, which is organised in a structure of composites and segments would fit this OO approach perfectly. error handling is done per class and done properly you can construct a parser that is very efficient and extensible. messages such as this lend themselves to classes and functions especially when multiple vendors send different flavours of the same format. An example would be a function in a UNA class which returned a particular value for a specific vendor.
May
7
answered Best way to parse a file