Relative Content

Tag Archive for language-agnostic

String patterns that can be used to filter and group files

One of our application filters files in certain directory, extract some data from it and export a document from the extracted data. The algorithm for extracting the data depends on the file, and so far we use regex to select the algorithm to be used, for example .*.txt will be processed by algorithm A, foo[0-5].xml will be processed by algo B, etc.

Why should one use a single-use temporary variable?

Let’s say we have a class called ‘Automobile’ and we have an instance of that class called ‘myCar’. I would like to ask why do we need to put the values that our methods return in a variable? Why don’t we just call the method?

Is Reading the Spec Enough? [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago. This question is centered around Scheme but really […]