开发者

porting from .net to java or vice versa, how long for the rewrite?

开发者 https://www.devze.com 2022-12-15 03:57 出处:网络
Say you have an application in either .net or java (web application). How long did it take you to port the application to the other platform? (I am assuming they general design was the same, just a s

Say you have an application in either .net or java (web application).

How long did it take you to port the application to the other platform? (I am assuming they general design was the same, just a straig开发者_运维知识库ht port i.e. not changing the general design pattern radically).

What I am interested in:

It took me 4 months to code it in .net, and the port took 2 months.

What I am after is, is it realistic to think it will take longer, or shorter?


If you code something once, I'd always guess that the second time around would either be shorter or take about the same time, as long as you knew both languages equally well. I'm assuming that you've learned all the necessary lessons when coding it the first time, and you weren't learning a new language the second time around.


Often the longest part of developing an app is getting the requirements exactly right, the next longest is architecting the solution to be efficient and maintainable (often this is not done corectly anyway ;-) )

Sometimes a language provides libraries that save a lot of work that would otherwise need to be done in your own code think Linq for example (or Boost libraries if using C++)

As general rule of thumb porting from very similar languages, I would assume a shorter time, along the lines of a full re-factor. If going to a very different language (say Ruby or F#) probably not much shorter.


One thing to add to the equation (or to avoid if possible) is that most ports tend to also include new features in addition to the ported features. It's almost impossible to avoid the temptation so keep this in mind.

0

精彩评论

暂无评论...
验证码 换一张
取 消