This website supplements the book The Java Developers Almanac 1.4. All the code examples from the book are made available here for you to copy and paste into your programs.
This is just one of many examples of online resources for programmers. So far as I know there is no .NET equivalent of this. I think this is the sort of thing that gives open source and competitive edge on proprietary systems.