padawan/mt-plugin-field-day — comment on commit 983c3533c77aa5831bbabf363f462400e2e42efd
File:  line 0
By jayallen:

That sounds great François. All I'm saying is that you can do that the
right way (so it will work with both MT4 and MT5...and even eventually
MT6) or you can continue on with the plugin's short-sighted, barely
extensible programming techniques.

Instead of replacing MT 4-specific code with MT 5-specific code,
refactor it by **abstracting out the variable parts** into an MT4
compatibility module, create a similar MT5 module and then add a new
abstract compat module to provide the right code based on the MT
version.