3 ms·
Having multiple prefixes per airline doesn't seem trivial, given that this historically wasn't a thing. I could imagine a bazillion code snippets of if fli
by lxgr 2y ago
Having multiple prefixes per airline doesn't seem trivial, given that this historically wasn't a thing. I could imagine a bazillion code snippets of
if flightNumber.startsWith(OUR_AIRLINE_CODE)
that might be incredibly painful to fix on short notice.
- deleted 2y ago[deleted]
- charrondev 2y agoAt least the pain only has to be dealt with by the companies that wrote code like that?
- drdaeman 2y agoSearching a large codebase for a constant (like "DL", plus tracing all related variable use if something is assigned this or related value), and replacing the logic is a relatively easy kind of change. Especially in the modern day when we got all those nice semantic analysis and code transformation tools. Especially if they got proper tests. Certainly way easier than replacing use of a deprecated API (and people do this kind of stuff all the time).
- kelnos 2y agoI think you have an unreasonably optimistic view of the current state of most of these code bases.