9,660 reputation
2348
bio website dmitry.cheryasov.in
location
age
visits member for 3 years, 11 months
seen 53 mins ago

I constantly try to expand the little I know about programming.

google profile


Nov
18
comment Streamlining a method to run faster
I could imagine that List<Integer> spends time calling a method and then unboxing the integer value when you use .get(). If you could pass int[] instead, it might speed up things. If you could move matCan.get(x) out of the loop over y where x stays constant, you'd save some time, too.
Nov
17
comment REST and RPC in multi-tier API
RPC for some cases might be much faster, in exchange to losing some or all of the advantages. E.g. a connection to an SQL database, when used for multiple related requests, is an example of RPC that sheds the requirement of stateelessness but saves a lot of time on re-authentication. OTOH, an SSL certificate-based authentication with connection: keep might save reconnection costs for a REST interface: the caller will only re-auth (transparently) if the server it used to talk to closes the connection.
Nov
12
revised Architecture for a mobile (Android) chat application
list format
Nov
11
comment Decreasing MongoDB Load
How exactly do the aggregation queries work? How efficient is the use of indexes? Can previous aggregation results be stored and re-used?
Nov
11
revised Where does authorisation fit in a layered architecture?
typo: archive → achieve
Nov
8
answered Smart fallback for line endings in code files?
Nov
7
reviewed Edit suggested edit on Why is SQL's BETWEEN inclusive rather than half-open?
Nov
7
revised Why is SQL's BETWEEN inclusive rather than half-open?
Added alternate terms for "Semi-open" to help with searching.
Nov
6
comment At what point should you collapse many parameters into (e.g.) struct to improve readability in function headers?
«11. If you have a procedure with ten parameters, you probably missed some.»
Oct
27
comment How do you identify bugfix commits on QA environment with Git repository?
Putting ticket number to commit messages and even git branch names is an extremely good idea.
Oct
27
comment How do you identify bugfix commits on QA environment with Git repository?
@igorp1024 Why can't you have multiple tags per sprint? Have a tag per major build; I assume your build numbers increase monotonically? Say, I've built something from a commit I remember; after the build is done, I might git tag that commit with the build number. Maybe your build system can do this automatically. Tie fixes to builds / tags, not to commits. Tags are very cheap. Just clean them up on the next sprint.
Oct
25
comment Removal or footer text in an open source
The program must have come with a license, or at least a name of the license, like "GPL v2", or "Apache License", or "BSD License", etc. Look for it.
Oct
25
comment Removal or footer text in an open source
What does the license say?
Oct
23
answered Is it possible to make a printable 'template' document?
Oct
22
comment How important is it to reduce the number of lines in code?
A tangential bit showing how far the care about code terseness and simplicity may take you: a story about kdb.
Oct
22
comment Return equal occurrence of char in a list of strings
Well, this can make perfect sense if we use byte-sized characters.
Oct
22
revised Return equal occurrence of char in a list of strings
added 9 characters in body
Oct
22
comment Return equal occurrence of char in a list of strings
Imagine that the first string has only one character, and the second line is long and contains all sizeof(char_t) * 8 possible characters. You'd have counted great many counts of characters in the second string that don't ever occur in the first. (This, or I misunderstand what you mean saying "preprocess both strings").
Oct
22
answered Return equal occurrence of char in a list of strings
Oct
15
comment Name for this type of parser, OR why it doesn't exist
Basically your parser parses a single document and yields a parse tree, then immediately starts parsing another document, etc. I suppose this behavior modification is trivial compared to the variety of parsing techniques applied to a single document. Hence the lack of a special term for it.