Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6251783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:40:42+00:00 2026-05-24T13:40:42+00:00

I have a library which parses various messages, sent in binary form from multiple

  • 0

I have a library which parses various messages, sent in binary form from multiple devices. Devices are still in active development, and their firmware is changed often, which forces me to support different variations of the protocol for all existing versions.

Let’s say that a message prior to revision looked like this:

INFO XXXX YYYY CRC

and after firmware version 50, it changed to:

INFO XXXX YYYY ZZZZ CRC

Does it make sense to name my parser classes like this:

class InfoParser : IParser<IInfoMessage>
{ ... }

class InfoParserRev50 : IParser<IInfoMessage> 
{ ... }

They are both doing a similar things, and they need to coexist, and these changes happen all the time, but I was wondering if there is a better way of naming them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:40:43+00:00Added an answer on May 24, 2026 at 1:40 pm

    I think it’s perfectly acceptable to maintain different versions of you classes if you need to support different versions of parsing at the same time. You can combine this with some sort of dispatch logic to tie it all together. In this way you can support multiple versions simultaneously, and avoid issues that may be associating with trying to specialize your parsers as the specifications evolve e.g. fiendishly nested and long if\else statments, for example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been working on this text extraction project of various file extensions, but
I'm writing a class library (say: lib ) that parses and compiles Razor templates.
I have a rules engine, which supports two modes of operations: Compilation into a
Here is what I am trying to do: I have implemented Form Authentication in
I have ported a library (ice , NAT traversal ) for iPhone and encountering
I have a DOM Document ( org.w3c.dom ) but I need to be able
I have a program with 2 threads (A and B). Is it possible to
I have a problem because i have never written any makefile. So if any
While separating business logic and data access logic into two different assemblies, I want
I've a C code where I fetch headers for all mails in the inbox

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.