Which (if any) extreme-programming techniques would be appropriate to use in a research environment - where the goal is to produce prototypes, patentable, and/or publishable work?
-
1What type of research? – rwong Dec 03 '10 at 08:30
2 Answers
Speaking from a background of algorithm research:
- Keep a long backlog of ideas
- Re-prioritize aggressively and frequently (e.g. every day)
- Mark down backlog items that are no longer viable
- Maintain an up-to-date picture of inter-dependencies between backlog items
- Unlike regular software development, there is a lot more dependencies in research work.
- Always measure, visualize and track algorithm performance (accuracy, etc)
- Don't work alone.
- Discuss, collaborate and share frequently.
- Keep a wiki, and spend lots of effort to extract "wisdom" from your work.
- Use version control. However, keep good algorithm candidates in the current system, even if they are not actively used.
- It allows you to tinker with an older algorithm at the spur of the moment.
- Stale performance data could be error-prone.
- For example, the old data may be based on a less accurate metric
- To get fresh performance data, re-run the algorithm(s).
- Prefer dynamic typing and flexibility.
- Use the right language.
- If almost all successful researchers in the field use one particular language, then use it. Don't fight the wisdom of the crowd.
- Instead, find ways to integrate smaller components into that language, if the smaller components can be developed in a language suitable for computation such as C/C++, or if existing open source code is available.
- If almost all successful researchers in the field use one particular language, then use it. Don't fight the wisdom of the crowd.
- Ask fellow researchers for their source code.
- Many researcher are actually quite friendly to such requests with proper credits and data sharing.
- This will save a lot of trouble because their published papers will only cover the high level picture, yet the devil is in the details.
- Always push yourself, but don't timebox.
- Timebox don't work because of unpredictability in research work.
An example of how to use backlog in research: Suppose in the beginning there are items A, B, C, ..., X, Y, Z.
- A
- B
- C
- ...
Over time, you worked on a number of items, and you have a sense of how promising each item is, not just the items you have worked but also those you don't. The updated backlog becomes:
- A (promising: 90, progress: 70% done)
- B (promising: 70, progress: 60% done)
- Z (promising: 65, not started)
- ...
- C (seems it won't work, don't bother)
Notice how item C sinked to the bottom because of research insights gained from working on A and B. Also notice how Z floats to the top. Learning about what other researchers are doing will also help floating items to the top.
At the end of one semester, do a backlog cleanup.
- A (done, working)
- B (done, working)
- Z (done, some bugs)
- -----
- Y (50% coded, kept in the system, not actively used)
- X (10% coded, removed from the system in revision 123)
- -----
- C (dropped)
The ones that are working will be the result you publish.

- 16,695
- 3
- 33
- 81
You have to be Agile to do research programming.
You have to be willing to throw away a lot of prototypes.
You have to be willing to think outside the box, so software patterns are not going to help you that much.
I think you have to be willing to learn new languages, and even create some new ones.
Other than that, research programming is basically the same as any other. :) You still have to write unit tests. You still have to write documentation. And you still have a boss.
Your deadlines may be a bit more fluid.

- 198,589
- 55
- 464
- 673
-
I disagree on the software patterns, imho they do not limit your ability to think outside the box (you are never forced to use a specific pattern), but help you keep your mind free for the important things. For example, MVC makes it easy to to collect your research data without having to think about it's presentation, or present it, without having to think how its collected. – keppla Jul 18 '11 at 15:18
-
-
what makes the difference for you? i provided an example why i think it's no problem, could you provide one? – keppla Jul 19 '11 at 06:16
-
@keppla: Software patterns are *already* researched. Certainly, if you're working on a problem that's already been solved, by all means use software patterns. If you are trying to solve a research problem using a large number of lightweight objects, then perhaps the Flyweight pattern might be of some use, and yes MVC will help you display your data, but I don't consider that software research proper. You can display data with Excel. Sure, you still need pencil and paper; I'm not saying any of those tools are not valuable, they're just not core research. – Robert Harvey Jul 19 '11 at 14:34
-
He did not state that would research software, as i understand, but in a research environment (which, for example, would include writing software for a biolab). – keppla Jul 19 '11 at 14:41
-
@keppla: I would consider the use of the usual tools for the usual cases to be axiomatic. – Robert Harvey Jul 19 '11 at 14:42
-
@keppla: `the goal is to produce prototypes, patentable, and/or publishable work` - this pretty much says the software breakthrough *is* the deliverable. – rwong Sep 08 '12 at 20:37
-
@RobertHarvey: I have seen many times a software research team started off with a conventional programming language (C++, Java, etc), and then move on to a functional programming language to further their progress. See http://habanero.rice.edu/Habanero_Home.html and http://www.spiral.net/ – rwong Sep 08 '12 at 20:39
-
@rwong: software is not the only topic where something is patentable, publishable or prototypable. In fact, the extend of patentability of software is in many countries highly disputed. – keppla Sep 10 '12 at 08:45