24,935 reputation
354110
bio website
location
age
visits member for 4 years, 2 months
seen Dec 19 at 8:51

Status: angry.


Nov
30
comment Can I sell forked GPL code?
"Why might anyone pay for it?" - Simple: To get it initially. The GPL doesn't say you must provide it for free; instead, you can charge as much as you want, but you have to allow your client to offer it for free, and you must provide the source and the right to change it, distribute it etc. Therefore, if you have created a very useful nontrivial fork of a GPLed program, and someone desperately needs it, you can set the price as you would for a proprietary product. Caveeat: You can only do that once, since the first client can always become your competitor for the second client.
Nov
30
comment self referencing tables, good or bad?
(At least) Oracle even has a special SQL contruct, the "START WITH - CONNECT BY" clause, to deal with self-referencing tables.
Nov
29
comment Looking for enterprise web application design inspiration
look at the ExtJS examples, sencha.com/products/extjs/examples - that's how serious web apps might look like.
Nov
29
comment Tablets Running IDEs
I think it also provides a very quick start into writing "my first android app" (aka hello-world) apps, to get your toes wet. Getting Eclipse on the PC up and ready takes some time, while installing AIDE is just a click in the PlayStore.
Nov
29
reviewed Approve How to work as a team of two
Nov
29
comment What is constructor injection?
First hit in google clearly explains it... misko.hevery.com/2009/02/19/…
Nov
29
comment What build tools do not depend on java (or Ruby)?
inedo.com/buildmaster/features might be the right tool for you.
Nov
27
revised Are session aware Models a bad thing?
typo
Nov
27
reviewed Approve DB API for shell scripting (any shell)
Nov
27
answered Are session aware Models a bad thing?
Nov
26
comment What should be allowed inside getters and setters?
Obligatory link: javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html
Nov
22
revised Compute if a function is pure
added 1334 characters in body
Nov
22
comment Compute if a function is pure
Many cases are trivially decidable - those pure functions described by Jon Purdy or unpure functions which unconditionally do something dirty; but in general, one can construct cases which are undecidable.
Nov
22
revised Compute if a function is pure
added 43 characters in body
Nov
22
answered Compute if a function is pure
Nov
22
comment When does “proper” programming no longer matter?
You would probably need CERN's equipment to measure the difference, but introducing the itemsLength temporary variable might even make the program slower. Maybe the access to items.length is just as fast as accessing a variable, so the assignment to the temporary variable costs a few nanoseconds? Don't overoptimize just because of some unverified assumptions.
Nov
20
comment Duplication of code (backend and javascript - knockout)
To avoid creating too many ajax requests, start a timeout with something like 300ms; if another keystroke happens till then, clear and restart the timeout again. Once the timeout happens, launch the AJAX request. Obviously, it depends on the number of concurrent users how many AJAX requests are too many.
Nov
20
comment What does it mean that “language A is written in language B”?
Strictly speaking, "PHP has been written in C" is wrong. A language is per se a formal definition, therefore it isn't written in another programmer language (but rather in English); only the compiler, interpreter and/or library can be written in C, C++ or whatever. In practice, for many languages there is one dominant compiler or interpreter, and the distinction between language definition and implementation isn't made.
Nov
20
answered Duplication of code (backend and javascript - knockout)
Nov
20
comment How to discriminate from two nodes with identical frequencies in a Huffman's tree?
The exception would be a preconstructed tree, based e.g. on the frequency of letters in the English language, which is shared a priori by both sides. Other than that, you have to include something that allows reconstructing the key along with the compressed data. Including the frequency is one relatively simple possibility, as long as there is an agreement how to build the tree from that (regarding those cases you asked about).