12,763 reputation
12758
bio website
location
age
visits member for 4 years, 1 month
seen Apr 20 at 14:55

Apr
17
comment Elegant way to count the number of files in Zip archive
Given the structure of a Zip archive it doesn't get a whole lot prettier; the only thing faster is to examine the "Central Directory" byte for byte and that tends to be something Java makes intentionally difficult.
Apr
17
revised Java and .NET: Why different sorting algorithms are used by default?
added 188 characters in body
Apr
17
comment Java and .NET: Why different sorting algorithms are used by default?
It does remain that Microsoft devs are proven fanboys of QuickSort over other implementations, as QuickSort has been the algorithm of choice since MS-DOS, and this would have influenced their decision to implement .NET's sorting with this algorithm.
Apr
17
comment Java and .NET: Why different sorting algorithms are used by default?
@RobertMacLean - ".NET isn't layered on top of anything" is not a true statement, though you have demonstrated that the Sort function in question is wholly "managed" code. Large portions of .NET, including cryptography support, Windows desktop GUI libraries, Windows API interop (including process and threading control) are all based on pre-existing unmanaged code including the MFCs. They simply have to be; Windows itself has only a very minor .NET component of its codebase, the rest is unmanaged
Apr
17
comment Who owns code if project cancelled
Where the court will step in is where there was a proven misrepresentation of fact (fraud), or where certain specifics of the agreement are conceded by both parties and the outcome does not live up to them (such as a finished product for 10 grand, or overtime for hours in excess of a stipulated amount). In neither case is either party guaranteed "fair value" for the money they have spent or the effort they have put in. Even if the court calls the contract void, and the company keeps their money and the OP his code, is the OP going to be able to turn around and resell that code? Probably not.
Apr
17
comment Who owns code if project cancelled
Yep. "The legal system is not intended to be a remedy for bad decision making". A contract is merely an offer and an acceptance, which can be in any form of communication understood by both parties. Therefore, there was an "agreement" of some sort of work for payment. The specifics, however, don't exist. Therefore as long as some money was paid and some work was done, the court will call it a wash even if the freelancer's only been paid a dollar for two weeks' work, or if the company paid $10,000 up front for what turned out to be 8 hours.
Apr
14
comment Who owns code if project cancelled
If there was no explicit contract, it's up to a judge, who will see that the freelancer has been paid some amount of money, will direct the freelancer to make the product of his work to date available to the client, and consider the contract satisfied.
Apr
14
answered Who owns code if project cancelled
Apr
9
comment What is meant by 4 GL?
As far as HTML/XML, you're right that they're markup languages, but that makes them effectively declarative languages as opposed to imperative; they define what to do, not how to do it, and they convey that information to a browser engine for rendering. And I think you'll be hard-pressed, given the various things Google's done with its logo in the past few years using nothing more than HTML5/CSS3, to argue that pure HTML/CSS isn't a programming language.
Apr
9
comment What is meant by 4 GL?
@LucioM.Tato - JavaScript was created as exactly that; a scripting language for browsers that looked vaguely Java-like, as that was the vogue. Until Node.JS was developed making it a server-side language, the language existed solely for the purpose of instructing the browser to perform custom client-side work. That still describes 99.9% of its use cases.
Apr
9
revised Does anyone have a specific example of using the Flyweight Pattern?
deleted 20 characters in body
Apr
1
awarded  Nice Answer
Mar
4
awarded  Yearling
Feb
28
awarded  Nice Answer
Feb
17
awarded  Generalist
Feb
2
revised Why is Today() an example of an impure function?
added 39 characters in body
Jan
13
awarded  Enlightened
Jan
13
awarded  Nice Answer
Dec
26
awarded  Guru
Dec
17
awarded  Nice Answer