<rant>
So I have to write a parser to extract values from a certain message type. I have to extract 14 values. Supposed to be a standardized message format. No big deal right?
Wrong
1. There are several date fields, but they're to damn lazy to put the year in every field. They put it one field. But the other date fields can refer to other days before or after the field that has the year in it. So I've got to put in logic for every date field to try and figure out if it's crossed in the same year as the one field that has the year in it. I also get impossible date fields like julian day 421 (should've been 321 ... I think).
2. This is supposed to be a standardized format ... but it turns out that some dumb bastard apparently fat fingers most of it in. For one field in particular, here is the regex I've come up with so far I run toupper() on it first to deal with the myriad capitalizations. Sometimes this line is missing altogether.
Plenty more where that came from.
Your tax dollars at work ladies & gentlemen. It's frankly amazing that our government gets anything done at all.
</rant>
So I have to write a parser to extract values from a certain message type. I have to extract 14 values. Supposed to be a standardized message format. No big deal right?
Wrong
1. There are several date fields, but they're to damn lazy to put the year in every field. They put it one field. But the other date fields can refer to other days before or after the field that has the year in it. So I've got to put in logic for every date field to try and figure out if it's crossed in the same year as the one field that has the year in it. I also get impossible date fields like julian day 421 (should've been 321 ... I think).
2. This is supposed to be a standardized format ... but it turns out that some dumb bastard apparently fat fingers most of it in. For one field in particular, here is the regex I've come up with so far I run toupper() on it first to deal with the myriad capitalizations. Sometimes this line is missing altogether.
Plenty more where that came from.
Your tax dollars at work ladies & gentlemen. It's frankly amazing that our government gets anything done at all.
</rant>