5 ms·
local state, I like to have it... I think this is a nice argument for using oop
by keefe 17y ago
local state, I like to have it... I think this is a nice argument for using oop
- chancho 17y agolocal state, you will not like what concurrent threads do to it... For every nice argument there is a counter.
- keefe 17y agoI'm absolutely fine with what concurrent threads would do to it? Thread synch stuff is really not hard once you've done it a while. It's actually one of the more fun pieces of programming, given that you have jprofiler (or similar) to inspect what's going on in the jvm as you try different things. To me, it is a very logical idea and powerful tool to pair up a bit of memory with a bit of algorithm.