Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

Is it valid to compare a double with an int in java?

Utilities.getDistance(uni, enemyuni) <= uni.getAttackRange() Utilities.getDistance returns double and getAttackRange returns int. The above code is part …

java comparison int double primitive-types
Comparison between Centralized and Distributed Version Control Systems

What are the benefits and drawbacks with using Centralized versus Distributed Version Control Systems (DVCS)? Have you run into any …

version-control comparison dvcs
Equality comparison between multiple variables

I've a situation where I need to check whether multiple variables are having same data such as var x=1; var …

c# comparison operators equality
Best way to get query string from a URL in python?

I need to get the query string from this URL https://stackoverflow.com/questions/ask?next=1&value=3 and I …

python django comparison urlencode urlparse
Active Directory vs OpenLDAP

What are the main diffrences between these two implementations of LDAP protocol? Which is better for heterogenous environment? Any good …

active-directory comparison ldap openldap
Protocol Buffers versus JSON or BSON

Does anyone have any information on the performance characteristics of Protocol Buffers versus BSON (binary JSON) or versus JSON in …

c# json comparison protocol-buffers bson
Can I check strings equality in lua?

Just a straight forward beginner question, I am coding Lua stuff for Garrys Mod, learning by reading wiki and other …

string lua comparison equals
Trouble comparing time with RSpec

I am using Ruby on Rails 4 and the rspec-rails gem 2.14. For a my object I would like to compare the …

ruby-on-rails ruby time rspec comparison
String similarity algorithms?

I need to compare 2 strings and calculate their similarity, to filter down a list of the most similar strings. Eg. …

algorithm string comparison filtering ranking
What is the correct way to compare char ignoring case?

I'm wondering what the correct way to compare two characters ignoring case that will work for all cultures. Also, is …

c# .net string comparison char