You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are pull request for code refactoring welcome? #30
After reviewing the code before using it I decided to include your library into our workflow.
But I think that some parts of the code could be changed, which - in my opinion - could make it easier for foreigners to unterstand what the code actually does. At least I would like to understand the code that deals with sensitive data.
Some suggestions I have:
use spaces instead of tabs because it then would look the same in all editors.
divided the code in some smaller logical parts and move the Classes in individual files, so that the functions can be seen in whole.
that sounds like a good idea.
Currently I don't have much time to work on this project - so improvements from others are definitely welcomed.
So please feel free to do so and send pull requests. I will have a look at them and then merge them into the repository.
I already started my third pass. There I will focus on the MsgInitDialog of the FinTSClient.js.
I will split the steps marked by you as comments into individual functions:
// 1. Dialog ID zuweisen// 2. System Id// 3. Möglicherweise neue kommunikationsdaten// ...
This will give a better overview about the MsgInitDialog function, and allow to easier understand what is done in this step, furthermore it reduces the risk that the cb callback is called multiple times or never.
Activity
jschyma commentedon Apr 22, 2017
Hi,
that sounds like a good idea.
Currently I don't have much time to work on this project - so improvements from others are definitely welcomed.
So please feel free to do so and send pull requests. I will have a look at them and then merge them into the repository.
So thanks a lot for your contribution in advance.
BR
Jens
tndev commentedon Apr 23, 2017
I added the first iteration as pull requests. It normalises the code the the standard format.
My suggested roadmap after this step would be:
Classes.jsto individual files (Code cleanup 2 #32).prototypeinstead ofme_… = this; me_….functioName = function() {}(or maybe even useclass)tndev commentedon Apr 25, 2017
I already started my third pass. There I will focus on the
MsgInitDialogof theFinTSClient.js.I will split the steps marked by you as comments into individual functions:
This will give a better overview about the
MsgInitDialogfunction, and allow to easier understand what is done in this step, furthermore it reduces the risk that thecbcallback is called multiple times or never.