14,138 reputation
3064
bio website bentilly.blogspot.com
location Arcadia, CA
age 45
visits member for 3 years, 8 months
seen 13 hours ago

I'm tilly on Perlmonks, btilly on Hacker News, and am active in many forums. I know Perl and math pretty well, but dabble in lots of things.


15h
comment Data structures and algorithms for a directed rooted tree with inherited properties?
Are you open to using multiple threads? It is easy to make all operations fast if your operations update information and invalidate some caches. And then you can have a background process fixing up the cache. Searches will usually be fast, unless cache is not rebuilt in which case they won't be slower than they would otherwise be.
Oct
13
answered Finding common subsets in a list of sets
Sep
30
awarded  Explainer
Sep
29
comment Notifications system with too many subscribers
@php_nub_qq Well no, it is not straightforward. You could also have an email notification system that sends things immediately. In that case you have no need to even store this data in a table!
Sep
28
answered Is it necessary to collect zip codes if I'm already collecting address, city, and state?
Sep
26
comment Duplicate Account Detection - New Approach?
The idea is to keep cheaters from knowing what they were caught by.
Sep
26
comment Duplicate Account Detection - New Approach?
The solution to THAT is to make cheating detection soft, and then occasionally get a bunch of accounts.
Sep
26
comment Duplicate Account Detection - New Approach?
You will catch duplicate accounts for banks, but not ones created to spy on other alliances. You will also misidentify farms as being duplicate accounts when they are merely regular victims. The bigger question is why duplicate accounts actually need to be prevented. If you look closely, the people who do it are probably your best potential customers. Why not take advantage of that?
Sep
25
awarded  Nice Answer
Sep
25
comment Should a developer refuse to access production server?
@Disco3 This does come up. But that is where, "Measure twice" comes in. Try to figure it out, and only after getting blocked say, "I can't."
Sep
25
comment Is “friendly fire” session replay a valid concern?
@MSalters I disbelieve. The overhead of checking session time relative to everything else is pretty small. If that straw breaks the camel's back, the back would break soon from something else. And besides, everything on the server side should be designed to distribute across machines. Then server load is easy to scale.
Sep
25
answered Should a developer refuse to access production server?
Sep
25
comment Is “friendly fire” session replay a valid concern?
@Dave In practice you just look up a session record, and have everything in the session. An extra field is no noticeable extra work on top of what you are doing. And the timestamp is very useful to have on your server side because it lets you know when you can delete expired data. Furthermore if you start trusting the client, then you open up possible subtle attacks that you have not thought of like en.wikipedia.org/wiki/Length_extension_attack. Don't go there.
Sep
25
answered Is “friendly fire” session replay a valid concern?
Sep
25
answered How message acknowledge deadlock problem is being solved in real world applications?
Sep
24
answered How to avoid global state without large function signatures?
Sep
11
answered What is the largest size a HashSet or TreeSet be?
Sep
10
comment dealing with a very large state machine in a class
Yet another way to do it is to factor out an object that contains service class data that the statemachine class touches. Now the statemachine class can know about this object, and the service class can know about this object, with no friendship relationship needed. You can call it something like servicestate.
Sep
10
answered Wrap all external calls with flag to fight against recursion and double-entry?
Sep
9
awarded  Good Answer