大约有 42,000 项符合查询结果(耗时:0.0290秒) [XML]
What is the purpose of mock objects?
I am new to unit testing, and I continously hear the words 'mock objects' thrown around a lot. In layman's terms, can someone explain what mock objects are, and what they are typically used for when writing unit tests?
...
What is meant by the term “hook” in programming?
I recently heard the term "hook" while talking to some people about a program I was writing. I'm unsure exactly what this term implies although I inferred from the conversation that a hook is a type of function. I searched for a definition but was unable to find a good answer. Would someone be ab...
Ruby on Rails vs ASP.NET MVC 3 for a .NET Guy? [closed]
I am very new to RoR and I want to select between APS.NET MVC3 and RoR. C# is sure easier for me as I have been doing it for so long but I am wondering if there is any point to consider using RoR over .MVC to develop a real world website?
...
What is the difference between Python's list methods append and extend?
What's the difference between the list methods append() and extend() ?
20 Answers
2...
Algorithm to generate all possible permutations of a list?
Say I have a list of n elements, I know there are n! possible ways to order these elements. What is an algorithm to generate all possible orderings of this list? Example, I have list [a, b, c]. The algorithm would return [[a, b, c], [a, c, b,], [b, a, c], [b, c, a], [c, a, b], [c, b, a]].
...
Downcasting in Java
Upcasting is allowed in Java, however downcasting gives a compile error.
11 Answers
1...
Navigation in django
I've just done my first little webapp in django and I love it. I'm about to start on converting an old production PHP site into django and as part its template, there is a navigation bar.
...
Class method differences in Python: bound, unbound and static
What is the difference between the following class methods?
13 Answers
13
...
Does the Java &= operator apply & or &&?
Assuming
5 Answers
5
...
JavaScript function in href vs. onclick
I want to run a simple JavaScript function on a click without any redirection.
15 Answers
...
