Not really Off-Topic, but where to put it ?
In a multi-platform project, I have (in Application Data) three directories, one for each platform.
I added a Method to place Properties and Methods
In the Initialize method, I set the default data OS References. Of course, I use #If Target
to code for each platform.
Hopefully, I was at the same time watching TV. After a large break (stop coding / watch TV), I came back to the code, read what I wrote and was happy with it.
Time to check what I wrote (it was running on macOS, code to run for Windows results (generate an image for Windows while running on macOS).
Ch**t, I forgot to call the Initialize Method ! So, I go back to the code and my eye was reading it Leaping Lizards ! This cannot works ! The other platform code can only be fired while running in each other platform!!
Even with the how do I design / code this application (Feature listing, etc.) and knowing exactly what I want to achieve, Ive made this stupid error
I do not coded it yet, but at App.Open time, I will check the running platform, placing this information in a global Property and initialize the code properly using that information.
Conclusion:
Do not watch TV while coding ?
This job is error prone and we only can remove it when we will fall into one ?
Always give the code to someone else for review ?
Or
Happy New Year