implement idea firstly in script language?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

implement idea firstly in script language?

From: 徐迪 <hidden>
Date: 2016-06-15 22:50:57

Hi,
i'm wondering to implement one idea during SOC, should i take time to
implement it firstly in script language(just to see whether it works
well)? And then rewrite it in C later?
Cheer
Di

Re: implement idea firstly in script language?

From: Jeff King <hidden>
Date: 2016-06-15 22:50:57

On Thu, Mar 31, 2011 at 08:27:38PM +0800, 徐迪 wrote:
i'm wondering to implement one idea during SOC, should i take time to
implement it firstly in script language(just to see whether it works
well)? And then rewrite it in C later?
It depends on what the idea is.

The reason to implement something in a higher-level language first is to
verify that the approach is sensible. So you are making a tradeoff: you
put less time/effort into the prototype (which has a high chance of
failure), and pay for it later by having to port a successful result
into its final form.

So knowing whether it's worth it depends on:

  1. How much time is saved by prototyping in a different language?

  2. What is the probability of the approach failing?

  3. What is the cost (in time) of porting the end result?

Estimating any of those is very specific to the problem at hand. It may
even be for some ideas that the ultimate implementation could stay in
the scripting language, which would make point (3) free.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help