Re: Why doesn't C# allow incremental compilation like Java?



On Apr 26, 12:58 pm, Jon Skeet [C# MVP] <s...@xxxxxxxxx> wrote:
tjmadden1...@xxxxxxxxx <tjmadden1...@xxxxxxxxx> wrote:
On Apr 24, 10:49 am, Jon Skeet [C# MVP] <s...@xxxxxxxxx> wrote:
I think you're in a minority then. Personally, I'm not compiling
after every single change I make to a single file. I work in multiple
files to get a unit of work done, and compile that. Even still, my
library assemblies don't take anywhere near 15 seconds, although my UI
assembly with lots of forms takes about that long..

I suspect I'm in the minority because most people don't practise TDD,
and most people don't realise how lovely it is not to have to wait for
a compiler.
Well, you're not a minority of one, anyway. I have come to enjoy
automatic compile.
We don't practice TDD where I work, unfortunately, but I like being
able to launch the GUI, test, and make changes, and test without having
to relaunch the GUI (and login again, go to the proper spot, find the
correct data, ad nausem). I was rebuilding
the project when I first started, then a coworker pointed out I didn't
need to.

That's a slightly different feature - edit and continue - which I'm
actually *not* so keen on. (I believe it encourages a "tinker until it
looks like it works" approach, which doesn't prove that it would have
worked if you'd started from scratch. Unit testing gives a better
solution to this IMO. Edit and continue is useful for getting UIs to
look right though, I'll readily admit that.)

Edit and continue is a very different feature to incremental
compilation - it's perfectly possible to have incremental compilation
without E&C, although I guess the other way round is pretty tricky.

--
Jon Skeet - <s...@xxxxxxxxx>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Right, it's not quite the same, but the concept of changing something
and running a test without building and deploying is the same. I
didn't use it much because it would pop up a dialog telling me the
replacement failed.

Can you elaborate on 'slightly different' in the first paragraph, and
'very different' in the second? The underlying workings are not even
close, but the concept seems similar to me.

Tim

.



Relevant Pages

  • Re: Why doesnt C# allow incremental compilation like Java?
    ... after every single change I make to a single file. ... files to get a unit of work done, and compile that. ... the GUI, test, and make changes, and test without having to relaunch ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why doesnt C# allow incremental compilation like Java?
    ... after every single change I make to a single file. ... files to get a unit of work done, and compile that. ... That's a slightly different feature - edit and continue - which I'm ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Multiple c files
    ... > combined code of multiple C files. ... The single file should include the ... file a.c THEN file b.c. Compile, save the object file. ...
    (comp.lang.c)
  • Compile spoiler
    ... compile it yet even after hours of effort, research, and more effort. ... Compiling Nethack from source is a somewhat annoying thing because it uses manual makefile. ... Here's my recipe, which I use to compile Nethack on my PS2 Linux kit, the main difference between my recipe and "normal" x86 Linux is that I add -lc to LIBS ... have to edit /include/config.h ...
    (rec.games.roguelike.nethack)
  • Re: Dependency analysis
    ... >I needed some help in figuring out how to approach the following ... > then import all its dependencies and check for their dependencies and ... jars them into a single file? ... compile that one class you use. ...
    (comp.lang.java.programmer)