throwaway

Good strategies for developing throwaway code?

I frequently write throwaway code (in a research environment) - for example to explore an algorithm or a model for a scientific property or process. Many of these "experiments" are one-off but sometimes I find that I need to use a few later. For example I have just unearthed code for string matching I wrote 7 years ago (stopped because o...

When do you throw a prototype away and start over?

When you're prototyping a new system, what guideline(s) do you use to mark a stop-and-start-over point? ...

Should I fully declare throw-away objects?

If I need to do something like this: var connection = new Connection(host); connection.Execute(Commands.Delete); Is there anything wrong in doing this: (new Connection(host)).Execute(Commands.Delete); The first example may be more readable, but the second works better if I need to do this multiple times: (new Connection(anotherHos...