Dictionary & Array Manipulation (Repost)

AkashiDom

Active member
As JavaScript programmer, we can manipulate array and dictionary as much as we want as we have function called .map(), .join(), etc.
Those so called function can manipulate dictionary and array like .map() can replace every key/index in dictionary/array to be something like add another array or do math. And .join() is just like Text Manipulation "Split to Array" but this time it'll join the array to string.

In other words, turn these JavaScript object manipulation features to Macrodroid features
 

Dm114

Well-known member
As JavaScript programmer, we can manipulate array and dictionary as much as we want as we have function called .map(), .join(), etc.
Those so called function can manipulate dictionary and array like .map() can replace every key/index in dictionary/array to be something like add another array or do math. And .join() is just like Text Manipulation "Split to Array" but this time it'll join the array to string.

In other words, turn these JavaScript object manipulation features to Macrodroid features
At the very beginning, I remember @MacroDroidDev was saying that MD is not a programming language but a tool to automate a great list of actions on Android based devices.

This tool became so convenient and more and more rich and powerful as now we could compare it to a real programming language. The problem is that it is easy enough to improve this kind of "product" every day or week to suit a infinite number of requests or needs and satisfy a huge number of users all around the world.

In my opinion, the consequences are of 3 types:
- some new "technical" features will only be used by a very small number of "MD/computer geeks" (the majority of MD users only use basic functionalities)
- it will sometimes require a big amount of time and work in development
- MD application is getting heavier and heavier and not all users have devices with "infinite" RAM and storage and processors working at supersonic speed...
 

AkashiDom

Active member
At the very beginning, I remember @MacroDroidDev was saying that MD is not a programming language but a tool to automate a great list of actions on Android based devices.

This tool became so convenient and more and more rich and powerful as now we could compare it to a real programming language. The problem is that it is easy enough to improve this kind of "product" every day or week to suit a infinite number of requests or needs and satisfy a huge number of users all around the world.

In my opinion, the consequences are of 3 types:
- some new "technical" features will only be used by a very small number of "MD/computer geeks" (the majority of MD users only use basic functionalities)
- it will sometimes require a big amount of time and work in development
- MD application is getting heavier and heavier and not all users have devices with "infinite" RAM and storage and processors working at supersonic speed...
I see
At least add some of the feature like join, push, splice, combine(concat), etc
 

Endercraft

Moderator (& bug finder :D)
It's already available in the JavaScript action, and that's why it was added: for more advanced users who need those.
 

AkashiDom

Active member
It's already available in the JavaScript action, and that's why it was added: for more advanced users who need those.
Oh ok
It just that I'm tired of doing 3 actions (to do it, I must turn the array/dictionary to JSON then run the script and lastly turn the JSON to dictionary) and wish for easier way.
 
Top