Tagged Questions
1
vote
2answers
146 views
Programming by Intention, Depth-First or Breadth-First?
Say I have the following graph of dependencies between procedures/functions/methods:
o
/ \
v e
/ \ / \
r f l w
That is, function o first calls function v, and then ...
18
votes
2answers
899 views
Is it a good idea to provide different function signatures that do the same thing?
Here is a C++ class that gets constructed with three values.
class Foo{
//Constructor
Foo(std::string, int, char);
private:
std::string foo;
char bar;
int baz;
};
All of ...
3
votes
5answers
477 views
Functions with side-effects in Delphi/Pascal
What is the proper approach to functions that have side-effects in Delphi/Pascal?
For example, I could have a boolean function DeleteFile that returns True if the file was deleted and False ...