Reputation
11,583
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 25 57
Newest
 Announcer
Impact
~363k people reached

21h
answered Dynamic Forms: Pattern or AntiPattern?
22h
revised Monitoring a web service
added 6 characters in body
22h
answered Monitoring a web service
2d
comment How do I prevent people from abusing my endpoint that accepts files?
Looks related: programmers.stackexchange.com/questions/145704
Aug
29
revised How often have you switched stacks in your career? Has it hurt your career progress?
deleted 5 characters in body
Aug
28
comment Pass data into a constructor or instead create virtual methods?
Could you give an example?
Aug
27
accepted Performance of list concatenation followed by scanning
Aug
26
asked Performance of list concatenation followed by scanning
Aug
25
comment Bad project structure?
FWIW, to build Mozilla you have to have at least 2 GB of RAM + lots of swap space, with 8 GB recommended. A build process can happily consume huge amounts of RAM, especially if it tries to optimize the resulting code.
Aug
20
answered Is it considered good practice to use mutables this way?
Aug
12
comment Ways of embedding static data with python application
I'd rather modify hard-coded file names throughout my code so that they referred to names specified on the command line or a config file. OTOH if you only name versioned directories differently, but the files inside all use the same naming structure, then you can just pick a directory and copy / symlink it to your 'usual data files' directory, to which your code refers. (I hope you don't mix data and code? If you do, try not to.)
Aug
12
answered Ways of embedding static data with python application
Aug
11
comment Why not just make non-parameterized queries return an error?
A better solution is to use tainted strings for user input, so that concatenation with unprocessed user input results in a tainted string that a DB driver refuses to accept as a query. I remember successfully using Java annotations to achieve such an effect.
Aug
10
comment Is there a well defined notion of 'before' and 'after' in finite state machines?
You can define a partial order like "state Y only happens after state X within less than n ticks", but not a total order. Imagine a FSM that contains a cycle.
Aug
9
awarded  Announcer
Aug
5
comment Threading strategies for a webservice implementation
Why can't the main thread just put the request to the queue? What happens if 1000 long requests arrive to the main thread, and you don't want to start 1000 threads? How does a thread pool fit into this picture? I think your options need a bit more of further contemplation.
Jul
31
revised Sacrifice server validation in pos of performance with Rich Client validation?
edited body
Jul
31
answered Sacrifice server validation in pos of performance with Rich Client validation?
Jul
30
comment Can fast, optimized server calls collapse a server?
@Korcholis: this should be enough. You can see how many requests the server can process in a few minutes of intense (simulated) load: this is throughput. You can see how long it takes for one request to complete; this is latency. The former should grow, the latter shrink. (Also, you should be able to decide which of the two is more important for you.)
Jul
29
comment Can fast, optimized server calls collapse a server?
Where I/O was previously a bottleneck (load < 1, threads waiting), now CPU is a bottleneck (load > 1 per CPU). The real question is, how did your throughput and average call latency change? Without these numbers, it's hard to tell if the optimization made sense at all.