comparison

What are the differences between C, C# and C++ in terms of real-world application

As I posted earlier here I've decided to try my hand at one of these but given my interests as a web developer, I'd like to know the difference between them in their real-world applications. Edit Note: While I'm a web developer, please don't let that limit your answer. I'm 30...I've got years of career changing ahead of me. ...

Why use !== FALSE to check stripos in php?

Here is the code I am looking at. foreach ($header as $idx => $field) { if (stripos($field, 'foo') !== false) { $cols['foo'] = $idx; } else if (stripos($field, 'bar') !== false) { $cols['bar'] = $idx; } else if (stripos($field, 'brr') !== false) { $cols['brr'] = $idx; } else if (stripos($field, '...

How do I compare multiple array entries simultaneously, in Java?

I have problem with comparing the value of array elements. e.g. I wanted to compare the value of index 0 and index 2, and index 1 to index 3 and so on. With the code below I suppose to get the result of numOfdifferentShape is 2 but I get 3. How can I solve this problem? :-( int numOfdifferentShape=0; myArray = {40.0, 40.0, 40.0, 40.0,...

More difficult to build: Emulator or compiler?

Given a proficient developer with 10-20 years of experience that has never built either a compiler or an emulator, which would be more of challenge? Could you compare the issues that would be road blocks for either. Thanks. ...

How can I frequently/automatically compare the structure of the same Database?

Does anyone know a tool that automatically compares the structure of a database and gives a report of what was changed? If it can be integrated into a CruiseControl, even better. By structure I also mean functions and stored procedures. Which is probably not clear at first sight ;-) The idea was to integrate that into a cruise control...

Comparing Tuples in SQL

Is there any more convenient way to compare a tuple of data in T-SQL than doing something like this: SELECT TOP 100 A, B FROM MyTable WHERE (A > @A OR (A = @A AND B > @B)) ORDER BY A, B Basically I'm looking for rows with (A, B) > (@A, @B) (the same ordering as I have in the order by clause). I have cases where I have 3 fields, but it...

Is isprefix more expensive than comparing two strings in C#?

Hi, I'm doing some calculations of comparing two strings. In case I know they are same length, is it more expensive to call isprefix or If ("string"=="string") ? ...

Beyond Compare for Object Instances

Does anyone know of a tool or library in .net that can be used to compare object properties and sub-objects like beyond compare does for text files? What I am looking for is a way to show two instances of the same type and show colored coded differences between them and allow the user to copy values between the objects. ...

Lightspeed vs NHibernate

What is the experience with LightSpeed? The comparison provided by Mindscape doesn't say too much about NHibernate. Lightspeed seems flexible, but I don't see much about performance. How well does Lightspeed perform? Also are there any drawbacks to using Lightspeed? ...

Browser Compatibility testing

How do i do browser compatibility testing? Is there any particular way or checklist through which i can confirm compatibility testing on browser IE 6/7/8 is done. Let me extend my query in particular to a application : Let us assume a web application is tested in IE6 (Approx 5000 Test Cases) Now i need to check the application compat...

Sql Server String Comparision

Is there any information as to how SQL Server compares strings and handles searching in them (like statments)? I am trying to find out if there is a way to determine how efficient it is to store information as a large string and use sql server to do a bunch of comparisons on rows to determine which match. I know this is potentially goi...

What is the fastest way to check if files are identical?

If you have 1,000,0000 source files, you suspect they are all the same, and you want to compare them what is the current fasted method to compare those files? Assume they are Java files and platform where the comparison is done is not important. cksum is making me cry. When I mean identical I mean ALL identical. Update: I know about ...

Processing language vs javascript ?

I'm going to develop a comprehensive educational software which runs on the browser and has many visualization and simulation works (electrostatic and electromagnetic visualization, 2D and 3D). Which language(Processing, javascript or something else) is the best toward my purpose? ...

Best graphical source code diff viewer/editor for code comparison and merging?

The options for source code diff viewing/editing/merging seem to be: Free: Tortoise Merge Meld * WinDiff WinMerge * DiffMerge * KDiff AJC Diff Diffuse Commercial: Total Commander's Diff viewer * Beyond Compare * Delta Walker * Araxis Merge * Are there any other options? (Wikipedia suggests a few) What's your favorite tools fo...

ActionScript vs C#?

What (if any) are the major differences in the work environment, type of projects, type of thinking, pay, and general day to day working differences based on your experience? RE: Apples vs Oranges (this is exactly why I asked) ...

How to determine a strings dna for likeness to another

I am hoping I am wording this correctly to get across what I am looking for. I need to compare two pieces of text. If the two strings are alike I would like to get scores that are very alike if the strings are very different i need scores that are very different. If i take a md5 hash of an email and change one character the hash change...

Flash versus Flex

I've tried looking everywhere for a concise list of the advantages and disadvantages of using Flex vs. Flash. Coming from a programming background, I absolutely love Flex. It's easy to pick up, and since it can use flash classes, why would I want to use Flash without flex? Flex: Pros: good for RIA development provides many user-inp...

how to compare a NSURLconnection http response data with a string value in iphone???

hi......i am new in iphone programming......i want to do an activation module which will send a http request with a PIN numbr and then read the response...if the response is "OK" it opens up with a main menu...........the problem is that i am recieving the response as "OK" but i am unable to compare it with a NSString @"OK"............so...

Subsonic Comparison

Could someone that knows SubSonic add it to this comparison page / or post the answers here on SO? http://c2.com/cgi/wiki?ObjectRelationalToolComparisonDotNet Even if not all 54, any that you know off the top of your head would be great. ...

JSF and Spring performance vs poor JSP performance

I saw some JSF projects developed by my collegues and these projects seemed to me very slow. Does anybody have the same opinion? I'm currenly using jsp+jstl and jQuery for "rich" client. I wonder what advantages and disadvantages have modern frameworks (jsf, wicket, tapestry..) over old plain jsp. It would be great if people who ...