Questions tagged [comparison]

Questions about data comparison and efficient ways to accomplish it.

Questions about data comparison and efficient ways to accomplish it.

112 questions
118
votes
5 answers

How can Swift be so much faster than Objective-C in these comparisons?

Apple launched its new programming language Swift at WWDC14. In the presentation, they made some performance comparisons between Objective-C and Python. The following is a picture of one of their slides, of a comparison of those three languages…
Yellow
  • 1,273
  • 2
  • 9
  • 6
74
votes
4 answers

What are the biggest differences between F# and Scala?

F# and Scala are both functional programming langugages that don't force the developer to only use immutable datatypes. They both have support for objects, can use libraries written in other languages and run on a virtual machine. Both languages…
Jonas
  • 14,867
  • 9
  • 69
  • 102
74
votes
7 answers

Dynamically vs Statically typed languages studies

Do there exist studies done on the effectiveness of statically vs dynamically typed languages? In particular: Measurements of programmer productivity Defect Rate Also including the effects of whether or not unit testing is employed. I've seen…
61
votes
24 answers

Why do programmers use or recommend Mac OS X?

I've worked on both Mac and Windows for awhile. However, I'm still having a hard time understanding why programmers enthusiastically choose Mac OS X over Windows and Linux? I know that there are programmers who prefer Windows and Linux, but I'm…
codingbear
  • 209
  • 2
  • 4
  • 7
43
votes
10 answers

Why do most mainstream languages not support "x < y < z" syntax for 3-way Boolean comparisons?

If I want to compare two numbers (or other well-ordered entities), I would do so with x < y. If I want to compare three of them, the high-school algebra student will suggest trying x < y < z. The programmer in me will then respond with "no, that's…
39
votes
8 answers

Are there tools to determine code similarity?

I'm not talking about a diff tool. I'm really looking to see if a project contains code that may have been "refactored" from another project. It would be likely that function names, variable names and whatnot would be changed. Conditionals might…
siljoy
37
votes
7 answers

What ASP.NET MVC can do and Ruby on Rails can't?

ASP.NET MVC and Rails have similar area of use, are built around same architecture, both frameworks are relatively new and open source. So as a Rails programmer I'd like to know, what ASP.NET MVC can do and Ruby on Rails can't, and visa versa?
Nikita Barsukov
  • 1,265
  • 1
  • 9
  • 12
36
votes
11 answers

Java vs. C# - Productivity perspective

If you have a number of years experience in working with Java and a number of years experience in working with C# and .NET, I would value your opinion on software development productivity differences between these two environments. One of our…
Edin Dazdarevic
  • 379
  • 1
  • 3
  • 5
30
votes
1 answer

What are the main advantages and disadvantages of LL and LR parsing?

When building a parser to a programming language what I earn and what I lost choosing one or the other?
Maniero
  • 10,826
  • 14
  • 80
  • 133
30
votes
16 answers

Most useful features of VIM that aren't standard in a IDE

I'm considering whether I should start using VIM again instead of an IDE. What are the most useful features of VIM that aren't standard in an IDE?
Casebash
  • 7,662
  • 5
  • 41
  • 62
30
votes
18 answers

When can you call yourself good at language X?

This goes back to a conversation I've had with my girlfriend. I tried to tell her that I simply don't feel adequate enough in my programming language (C++) to call myself good. She then asked me, "Well, when do you consider yourself good…
IAE
  • 1,430
  • 1
  • 15
  • 28
29
votes
10 answers

Is there any reason why most programming languages don't have '!>' (not greater than) and '!<' (not less than) operators?

I wonder if there is any reason - or if it is just an accident of history - that there are no !> and !< operators in most programming languages? a >= b (a greater OR equals b) could be written as !(a < b) (a NOT lesser b), that equals a !< b. This…
Alex Burtsev
  • 686
  • 1
  • 7
  • 15
26
votes
5 answers

Could an instance be equal to some other instance of a more specific type?

I've read this article: How to Write an Equality Method in Java. Basically, it provides a solution for an equals() method that supports inheritance: Point2D twoD = new Point2D(10, 20); Point3D threeD = new Point3D(10, 20, 50); twoD.equals(threeD);…
Wes
  • 832
  • 5
  • 12
25
votes
2 answers

Algorithm to merge two sorted arrays with minimum number of comparisons

Given are two sorted arrays a, b of type T with size n and m. I am looking for an algorithm that merges the two arrays into a new array (of maximum size n+m). If you have a cheap comparison operation, this is pretty simple. Just take from the array…
Rüdiger Klaehn
  • 369
  • 1
  • 3
  • 7
22
votes
3 answers

How is Node.js different from other server-side frameworks?

I've noticed that Node.js has become very popular, and I've seen several instances of people doing small-scale projects in it. I've also looked at pros and cons lists to get an idea of what Node.js can do, but I'm still not clear on how it differs…
Saeed Neamati
  • 18,142
  • 23
  • 87
  • 125
1
2 3 4 5 6 7 8