Monday 18 April 2016

Memory ID tip..

Came across this neat trick today : 

So, normally, we use the "export to memory id" and "import from memory id" commands when we need to pick up data from one place and read it in another, without the hassle of passing it from place to place as the code gets processed.

In the above case, there were many shell layers between where the variable was set, and where it was read. However, Simon has done us all a favour, and assigned the variable to Class-attribute. The beauty of this is that it makes the SET really easy to find if you've got the READ, and vice versa... It's a neat simple trick, but it's a good way of organising your code!