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

Jun
26
awarded  Fanatic
Jun
21
comment Find the maximum number of pairs of numbers that are in a range, between two arrays
Possibly sorting the arrays would help somehow?
Jun
21
comment Find the maximum number of pairs of numbers that are in a range, between two arrays
In simplest case I'd use two nested loops to create all possible pairs, and something like a Set<Pair<Integer, Integer>> to store the pairs without repetitions.
Jun
16
comment Is the semantic contract of an interface (OOP) more informative than a function signature (FP)?
@jk.: Well, in Haskell, it's type classes, in OCaml you either use a module or a functor, in Clojure you use a protocol. In any case, you don't usually limit your interface analogy to a single function.
Jun
16
comment first time scrum master - need to create product backlog and set up work
Half-hour is an utter failure. Anything that needs to be discussed in more than 3-4 phrases should happen after the standup, only with people interested in the particular subject. Also, in my team at JetBrains we kept voice on standups somehow low to promote attentive listening.
Jun
16
comment first time scrum master - need to create product backlog and set up work
Ten minutes for a standup feels long, unless your team is 15-20 people. Usually it's 15-45 seconds per person, as in "I've done this and this, which resulted in so and so, I plan to do that and that".
Jun
16
comment Is the semantic contract of an interface (OOP) more informative than a function signature (FP)?
An OOP interface is more like FP typeclass, not a single function.
Jun
15
comment Fast indexing of k-combinations
8-bit integers have only 256 combinations of any bit patters which are trivial to store (and would take up less space than any clever code). What are your target / estimated bit counts?
Jun
13
comment Local Updates in Persistent/Immutable Data Structures
Take a look at the idea of "cursor" from this article. It's not explained in detail there, though, only the idea is shown. Basically It is similar to a lens, but with a more traditional interface :)
Jun
12
awarded  Nice Answer
Jun
11
comment Binding software to one PC
Then charge the price low enough so that it's easier for them to buy another copy than to learn (or to hire someone) to make a copy in a virtual machine.
Jun
11
answered Binding software to one PC
Jun
11
comment What is a proper way to chain instructions if previous one is ok
Just in case, there is a library for functional programming in PHP. It includes all the stuff that would be needed for easy chaining of functions that may fail. It would take a certain change of approach in the rest of the code, though. Also related to the problem: Railway-Oriented programming slides.
Jun
10
revised Why would we need to rollback twice before closing in a finally block?
code formatting
Jun
8
comment Crypto hash in 'a href'?
I suspect HTTPS / HTTP2 solve this in a more general way.
Jun
6
comment Project a piece of image cut by N-vertex shape to a different N-vertex shape
Provided that both 4-vertex shapes are convex, I'd split both to two triangles, and mapping between contents of two triangles is more or less obvious.
Jun
1
answered Database view performance - good practice?
May
26
awarded  Guru
May
24
comment Avoid numeric errors in Naive Bayes method
Where do you need to multiyply 256 such results (basically raising it to 256th power)? What it the formula? That formula can be rewritten differently to avoid out-of-range resuts.
May
24
comment Semantically more appropriate package name than `util` for the following things?
To me, something like from me.myproject.uuid import UUID, GetUUIDInfo looks OK. There could be more than one exported thing in a module.