Comparison or difference in meaning between two or more concepts. For code synchronization or compare and merge algorithms use [diff]
Questions tagged [difference]
22 questions
73
votes
7 answers
Difference Between Unit Testing and Test Driven Development
From reading the descriptions, I understand that in TDD tests are done prior to writing the function and in Unit Testing, its done afterwards.
Is this the main difference, or the two terms can't even be compared as such. Perhaps, Unit Testing is an…

Shamim Hafiz - MSFT
- 4,123
- 7
- 38
- 46
53
votes
4 answers
What is the difference between a hash and a dictionary?
What is the difference between Hash and Dictionary?
Coming from a scripting background, I feel that they are similar, but I wanted to find out the exact differences. Googling did not help me much.

Sairam
- 641
- 1
- 5
- 8
51
votes
4 answers
What is the difference between building and compiling ?
What's the difference between Building and Compiling.

Vishwas
- 521
- 1
- 4
- 4
19
votes
7 answers
Is it necessary to read every single byte to check if a copied file is identical to the original?
I recently learned of a program called Total Commander. It's a Windows Explorer replacement and has its own stuff to copy files. To check whether the files are identical, instead of calculation a CRC, it literally checks every single byte, one at a…

Koen027
- 293
- 2
- 6
11
votes
6 answers
What are the differences between a website and a web application?
How do you differentiate a web application from websites? It's language/platform agnostic.

Gulshan
- 9,402
- 10
- 58
- 89
11
votes
6 answers
Is there an "anti-hash" or "similarity hash" / similarity measure algorithm?
The idea of hashes is they get drastically different results for even the smallest change of data.
What I am asking for is the opposite of that. An algorithm that will produce proximity hash values for data that is approximately the same. Regardless…

dtech
- 713
- 6
- 17
6
votes
5 answers
Closest file match?
I am looking for a way to compare a set of files against a given file with each comparison giving me a "closeness" metric. I should then be able to order based upon the metric to find the closest file.
I considered using diff, but afaik this only…

Gruffputs
- 512
- 2
- 9
5
votes
11 answers
What is the difference between a Design Pattern and an Algorithm?
From Wikipedia:
In mathematics and computer science, an algorithm is an effective
method expressed as a finite list of well-defined instructions for
calculating a function.
In software engineering, a design pattern is a general reusable
solution to…

Shamim Hafiz - MSFT
- 4,123
- 7
- 38
- 46
5
votes
3 answers
Difference Between Software Development and Production?
In a typical SDLC there isn't much mention of the word production or development or the distinction between the two.These seem more of a real time , industrial driven concepts . I have come across these terms in regards describing companies.
As i…

Aditya P
- 3,537
- 2
- 26
- 42
5
votes
5 answers
Difference between planning a project vs. planning a product
I have read in numerous places that when developing a product you need to take a different approach to when you are developing a project (think "contract" work).
Some differences are:
1) There is no definitive user, but a "user-base".
2) You need…

Aidos
- 125
- 1
- 7
4
votes
3 answers
Can we reduce confusion in line-based diff tools by annotating the code with some unique tokens?
Let's say I have
procedure1() {
--body of first procedure--
}
Then I rename it into procedure2 and create a procedure1 above it:
procedure1() {
--body of second procedure--
}
procedure2() {
--body of first procedure--
}
Not once a…

Jay Lorn
- 41
- 1
3
votes
2 answers
universally understood file-diff format
I've always assumed that the output from diff (typically "unified", whether or not it's colorized) is universally understood among most if not all text-based language programmers. Whether it's used due to version control or just comparing two…

r2evans
- 326
- 2
- 9
3
votes
0 answers
What's the most practically efficient way to store differences in adjacent matrix values?
I am implementing a certain algorithm that works like this:
Create a closed contour (list) of elements in a matrix, where closed means that the last element is adjacent (by row, column) to the first.
Weight (multiply) each of the elements addressed…

bright-star
- 129
- 4
3
votes
3 answers
Difference between Optimization and Scalability?
If I quote a paragraph from Wikipedia about Optimization:
In computer science, program optimization or software optimization is
the process of modifying a software system to make some aspect of it
work more efficiently or use fewer resources.…

Mohammad Areeb Siddiqui
- 141
- 1
- 7
2
votes
2 answers
Solve Synchronization
I want to solve Synchronization with a Message Queue
In the wikipedia page of message queue, I read:
Most messaging systems support both the publisher/subscriber and message queue models in their API
I used python-rq (celery in the past), with fun…

guettli
- 180
- 1
- 15