Reputation
32,978
Next tag badge:
93/100 score
19/20 answers
Badges
7 66 106
Newest
 Enlightened
Impact
~400k people reached

Apr
23
comment Testing performance of a single page application
some browsers have an option to slow down bandwidth and latency to simulate poor connections, e.g. for a phone user. You could use such features to make the network overhead more measurable on a local machine. Note that the amount of data transferred is largely irrelevant, but the number of sequential requests has a larger impact – a large HTML response is roughly as fast as a large Ajax response, except that the HTML will launch secondary requests for resources like styles, images, iframes, ….
Apr
19
awarded  Enlightened
Apr
19
awarded  Good Answer
Apr
18
awarded  Nice Answer
Apr
18
revised Could Hindley-Milner inference work for the Go language?
added 160 characters in body
Apr
18
answered Could Hindley-Milner inference work for the Go language?
Apr
18
awarded  Guru
Apr
17
comment What is Big O of sqrt(1) + sqrt(2) + … + sqrt(n)?
I'm voting to close this question as off topic because it's not about software development concepts. Please look at the help center to understand what kinds of questions are acceptable here. While you encountered this problem while trying to calculate Big-O (which is on topic here), your problem is purely mathematical. It may be better to ask the question about the sum of square roots on Mathematics instead, but make sure to show what you've tried.
Apr
15
awarded  Great Answer
Apr
15
comment How to warn other programmers of class implementation
Software design is about shuffling the system complexity around in a manner that minimizes the apparent complexity. Sometimes but not always, this is the best approach. It's good to be aware of this potential solution.
Apr
15
comment How to warn other programmers of class implementation
@Bergi I have found the technique presented in the last section to be tremendously useful (see also the “Replace conditionals through Polymorphism ” refactoring technique, and the State Pattern). It is easy to forget the check in one method if we use an if/else, it's much harder to forget implementing a method required by the interface. Most importantly, the MainImpl corresponds exactly to an object where the initialize method is merges with the constructor. This means the implementation of MainImpl can enjoy the stronger guarantees this affords, which simplifies the main code. …
Apr
14
comment BST to AVL in O(n)
@RobertHarvey Walking a BST is O(n) but each insertion is O(log n) for an AVL tree, leading to O(n log n).
Apr
14
awarded  Good Answer
Apr
14
awarded  Nice Answer
Apr
14
answered How to warn other programmers of class implementation
Apr
13
reviewed Close How to minimize typos when you code?
Apr
12
comment Can I re-publish code under copyright if it has been published to the public?
Republishing code does not have any of these characteristics. Republishing a whole file rather than just quoting a couple of lines is substantial. There is no urgent public interest served by your republishing. The republishing is not transformative. In short, it is copyright infrigement. Also, fair use is a defense strategy when accused of infringement, but not a rather likely one in this case. The mere possibility that your use might be fair use does not give you any kind of license. It would be up to a court of law to accept or reject a fair-use defense.
Apr
12
comment Can I re-publish code under copyright if it has been published to the public?
Fair use or similar concepts only exist in a couple of common-law legal systems such as the U.S.. Google has so far been able to argue its image search is Fair Use, because the used images are not substantial and not competitive with the originals -- they don't republish full-resolution images but store thumbnails, clicking on an image leads you to the original page; noncommercial -- because they don't directly profit from image search but offer it free of charge; and in the public interest because they provide a valuable service. Web masters can also very simply opt out from indexing.
Apr
12
comment Can I re-publish code under copyright if it has been published to the public?
This looks similar to What is the "default" software license?. The default license is "all rights reserved". You do not have a right to re-publish/redistribute other people's work, just like you may not republish an article someone else wrote.
Apr
8
awarded  Good Answer