Given some library that implements some widespread protocol or something similar (for example, FTP), how will I store my standard compatible code separately from the code that is necessary only to be able to cooperate with non-standard standards?
A good example where this will make sense too IMHO - these are libraries like jQuery, which should take into account all these features of the browser. Projects that must be compatible with previous versions are also likely to be a good target audience for such methods.
I am particularly interested in ruby solutions, but language independent templates or good examples from other languages are also welcome.
I already found the question here on stackoverflow, but are there any other approaches?
source
share