comparison
Flash versus Flex
Flash and Flex both use the same underlying rendering engine, just with different front-ends. Flash is better suited for making movies and animations. Flex is better for application development.
What is the fastest way to check if files are identical?
I’d opt for something like the approach taken by the cmp program: open two files (say file 1 and file 2), read a block from each, and compare them byte-by-byte. If they match, read the next block from each, compare them byte-by-byte, etc. If you get to the end of both files without detecting any … Read more
Javascript float comparison
As it turns out .toFixed() returns strings – Try adding parseFloat before comparing the values to see the result: console.log(parseFloat(value) < parseFloat(max)); // —- now true
Scala versus F# question: how do they unify OO and FP paradigms?
I have looked at F#, doing low level tutorials, so my knowledge of it is very limited. However, it was apparent to me that its style was essentially functional, with OO being more like an add on — much more of an ADT + module system than true OO. The feeling I get can be … Read more
SQL Server VS Oracle [closed]
Just my $0.02 after working with SqlServer for years and Oracle for 4 months now. SqlServer is much easier to use, this allows you to concentrate on what you want the database to do (solve some business problems) instead of wrestling the server all the time. Because Oracle makes you configure so many settings, there … Read more
comparing iterators from different containers
If you consider the C++11 standard (n3337): § 24.2.1 — [iterator.requirements.general#6] An iterator j is called reachable from an iterator i if and only if there is a finite sequence of applications of the expression ++i that makes i == j. If j is reachable from i, they refer to elements of the same sequence. … Read more
Comparing a string with the empty string (Java)
s1 == “” is not reliable as it tests reference equality not object equality (and String isn’t strictly canonical). s1.equals(“”) is better but can suffer from null pointer exceptions. Better yet is: “”.equals(s1) No null pointer exceptions. EDIT: Ok, the point was asked about canonical form. This article defines it as: Suppose we have some … Read more
Tool or library for comparing xml files [closed]
I am very surprised nobody mentioned Microsoft’s XML NotePad It’s free and it can create a pretty good comparison, telling which elements/attributes have changed, moved, been deleted, etc.: (Sorry if the screenshots are a little wide). You can also apply XLSes to the XML file and do various editing operations. Well worth a try.