Slashdot Mirror


C# for Java Developers

joefrench writes: "It might seem strange to review a C# book on Slashdot, especially one published by Microsoft, but I felt that there must be a lot of readers like me -- programmers who know Java, but want/need to learn something about C# and .NET. C# for Java Developers aims to teach experienced Java programmers how to write in C#." Joe outlines what he considers the book's good points (many) and weak points (few) in the rest of his review, below. C# for Java Developers author Allen Jones, Adam Freeman pages 548 publisher Microsoft Press rating 9 reviewer Joe French ISBN 0735617791 summary A comprehensive C# from Java tutorial

First things first First of all, let's deal with the Microsoft issue. I was surprised to find that this book even existed given the problems MS has had in the courts recently. I was even more surprised to find that C# for Java Developers is very balanced and does not hype up C# at the expense of Java -- throughout the book there are places where the authors say that "Java is better at this" or "We have no idea what the C# designers were thinking." A refreshing attitude from a company that is not known to be an admirer of Java.

I was reluctant to pay for a Microsoft book, but I have to admit that I am impressed. This is the first MS book I have ever purchased, and it is clearly written, well thought-out and very, very comprehensive. One of the best features for me is that all of the instructions for compiling and managing code assume that you are using the command-line tools, rather than Visual Studio. For someone on a tight budget, this was a real bonus.

The Scoop

The first part of the book is an overview of .NET, and contains the boiler-plate description that you get from the .NET web site. Not that useful, but pretty short. There is a chapter that compares .NET to Java (J2SE and J2EE), but again, there is nothing new or important there.

The second part of the book covers the C# language, using Java as a starting point. The coverage seems comprehensive, and explains where the two languages are the same (quite often), where they are different (now and then) and when they appear to be the same, but you are likely to spend a couple of hours tracking down something weird (more often than I would like). I had started playing around with C# before buying this book, and all of the problems that I had in the early days were detailed here with clear explanations.

Part three delves into the .NET class library, covering basic topics such as collections, IO and handling XML. Once again, I was impressed with the depth of coverage and the way in which the authors use Java classes to explain the workings of .NET. It was while I was reading through this section that I realized just how different C#/.NET and Java can be.

The last part of the book covers "advanced" topics. There seems to be little reason for the division between basic and advanced topics, but chapters cover areas such as threading, security and networking. The one thing that is consistent in this part of the book is that there is less of a parallel between Java and C#. For example, "Windows Forms" is used to build client UI applications, but is very different toolkit from Swing/AWT.

The appendix list is a little dull, covering topics like GC and configuration files. There are some interesting snippets, but I got the impression that these were topics that the authors thought were important, but didn't know where else they should go. The exception is the "Java to .NET API Reference" which, for me at least, sets this book apart from the competition. Every class from the J2SE class library is mapped to an equivalent .NET class and a reference to where the topic is covered in the book -- having something like this has saved me hours of searching.

What's to Consider?

This book uses a lot of C# fragments to demonstrate how classes are used, but contains very few full "working" examples. I found this to be great once I knew the basics of C# (because I could focus on the topic), but difficult at first (because I could not play with complete code).

C# for Java Developers covers much more of the .NET Framework than the other books in my local bookstore, but because of this the text can be dense at times, as the authors try and pack in a bit too much detail.

I can't find major fault with this book, and a (small) part of me admires Microsoft for publishing such an unbiased book.

Summary

If you are a Java programmer who wants or needs to learn about C# and .NET, then this is a great book. Don't be put off by the Microsoft logo, and bear in mind that you don't need a copy of Visual Studio to follow the examples.

The book effectively uses Java as a tool to teach C# and explain the workings of .NET. If you are like me, then you will find this book invaluable and will likely keep it close at hand for quick reference.

Table of Contents

  1. Introducing .NET
    1. Introduction to Microsoft .NET
    2. Comparing Java and .NET Technologies
  2. The C# Language
    1. Creating Assemblies
    2. Language and Syntax Features
    3. Data Types
    4. Advanced Language Features
  3. Programming .NET with C#
    1. Strings and Regular Expressions
    2. Numbers and Dates
    3. Collections
    4. Streams, Files, and I/O
    5. XML Processing
  4. Advanced Topics
    1. Reflection
    2. Threading and Synchronization
    3. Networking
    4. Remoting
    5. Database Connectivity
    6. Security and Cryptography
    7. Graphics and UI
    8. Introduction to XML Web Services
  5. Appendices
    1. Platform Integration
    2. Shared Assemblies
    3. Configuring Applications
    4. Garbage Collection
    5. Cross-Language Code Interoperability
    6. Java to .NET API Reference

You can purchase C# for Java Developers from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

114 of 382 comments (clear)

  1. C# may not stand for long... by FortKnox · · Score: 4, Insightful

    Now, C# is a pretty language. MS looked at Java and started on their list... "This is good in Java, lets include it. This isn't, lets either not include it or make a nicer alternative." They made quite a nice, competitive language.

    But I think C# will be used to convert the C, C++, and Java crowd into the .NET framework. Now, once you are in the framework, you'll see that VB.NET is easier to use, has the OO that Java/C++ people desire, and can make the deadlines easier to make.

    Yeah, I think C# is MS's way to convert everyone to VB.NET.

    Luckily, .NET isn't as platform independent as Java atm, so I'll stick with my cup-of-joe.

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
    1. Re:C# may not stand for long... by km790816 · · Score: 5, Informative

      Slow down, turbo.

      No one at Microsoft likes VB.NET. It was meant as a crutch to get old VB developers into the new programming model.

      All of the .NET class libraries were written in C#. I don't think they are planning no changing that in the near future.

    2. Re:C# may not stand for long... by El+Neepo · · Score: 2, Insightful

      "Now, C# is a pretty language. MS looked at Java and started on their list... "This is good in Java, lets include it. This isn't, lets either not include it or make a nicer alternative." They made quite a nice, competitive language."

      You're right, I think it is a much nicer alternative to Java for client side apps.

      "But I think C# will be used to convert the C, C++, and Java crowd into the .NET framework. Now, once you are in the framework, you'll see that VB.NET is easier to use, has the OO that Java/C++ people desire, and can make the deadlines easier to make."

      C# is far from just a tool to convert people to the .NET framework. C/C++ people will probably still use C++ .NET if they want .NET development. C# directly targets Java developers, but it can easily be decoupled from the .NET framework (look at Mono). Personally I'd rather not use the .NET Framework for C#, but until Mono becomes more mature I'm stuck using the .NET Class Library unless I want to rewrite all that stuff myself. VB.NET is simply C# with the VB words. VB.NET is nothing like VB6 and earlier. I can't say that 100% but from the VB.NET examples in the class library that sit along side the C# ones, they're so similar.

      "Yeah, I think C# is MS's way to convert everyone to VB.NET."

      I think its other way around.

      "Luckily, .NET isn't as platform independent as Java atm, so I'll stick with my cup-of-joe."

      True. I refuse to use ASP.NET on IIS since IIS is such a crock. I hope Mono keeps going strong for client side however.

    3. Re:C# may not stand for long... by Pfhreakaz0id · · Score: 2

      exactly. That was gonna be my point. I can tell you, most of the ASP+/.NET examples are in C#, not VB

    4. Re:C# may not stand for long... by Wakkow · · Score: 2

      Is is now safe to say that Microsoft's goal is to convert people from using C, C++, Java and VB to .NET?

      Seems reasonable: get the competition using product.

    5. Re:C# may not stand for long... by Jugalator · · Score: 2

      Yeah, I think C# is MS's way to convert everyone to VB.NET.

      I think the opposite.

      C# is made easier than C++. VB.NET is *very* rewritten in .NET to be much more object oriented *and* easy to move from to C#.

      But, of course, due to the nature of .NET, it's equally easy to move from C# to VB.NET.

      However, C# wasn't written to match VB.NET. VB.NET, on the other hand, went throught one of its greatest rewrites so far to match C#. Make up what you want from that.

      --
      Beware: In C++, your friends can see your privates!
    6. Re:C# may not stand for long... by Graspee_Leemoor · · Score: 2, Interesting

      " can any single one of you actually describe, in under 200 words, exactly what the .NET Framework is, what its comprised of, and why I should find it so exciting? "

      The .net framework is a collection of command-line compilers for various languages which produce bytecode. It also includes the compiler from bytecode to native-code, a disassembler and the .net classes. Basically the .net framework is everything you need to compile and run .net code. It is free as in beer.

      There you go. Pipe that to wc -w and I think you'll find I win.

      graspee

    7. Re:C# may not stand for long... by Jugalator · · Score: 2

      MS is probably not trying to get people to use VB specifically, but, yes, *that* is safe to assume.

      --
      Beware: In C++, your friends can see your privates!
    8. Re:C# may not stand for long... by cscx · · Score: 2

      Another interesting note is that all of Microsoft's .ASP scripts on microsoft.com are written in JScript. Odd that they stay away from VB as much as possible but promote it so much!

    9. Re:C# may not stand for long... by AJWM · · Score: 2

      And since it only runs on Windows, hence x86, I need to produce bytecode why?

      --
      -- Alastair
    10. Re:C# may not stand for long... by zapfie · · Score: 2

      You can put security measures into bytecode you couldn't put into machine code. Also, it allows Windows to optimize for different processors on the fly.

      --
      slashdot!=valid HTML
    11. Re:C# may not stand for long... by Tablizer · · Score: 2

      (* As for all these Frameworks; can any single one of you actually describe, in under 200 words, exactly what the .NET Framework is *)

      An attempt at a multi-linguange Java clone because MS is afraid of Java, and they copy what scares them (regardless of the merit of the monster).

    12. Re:C# may not stand for long... by JamesOfTheDesert · · Score: 3, Interesting

      And since it only runs on Windows, hence x86, I need to produce bytecode why?

      So you can run it on FreeDSD or Linux using Rotor or Mono.

      --

      Java is the blue pill
      Choose the red pill
    13. Re:C# may not stand for long... by leviramsey · · Score: 2
      And since it only runs on Windows, hence x86, I need to produce bytecode why?

      Really?

    14. Re:C# may not stand for long... by bmajik · · Score: 2

      I can quite honestly say that you are wrong.

      I love VB.NET. On the scale of most flexible to least flexible, you've got managed c++, C#, and VB.NET, however, the difference in capabilities between C# and VB.NET is so miniscule that i suspect that if i were in a situation that vb.net didn't address, i'd do it in MC++ and expose it to VB.NET anyhow.

      So for me C# is the niche language - its for people that are too snobby to use VB, and does't really have any day-to-day benefits over C#.

      I happen to love the case-insensitivity, and the code-block autocompletion. Finally, the background IDE-mode compiler is fantastic.

      VB.NET is easily the most productive development tool i've ever used. For grins, I loaded up one of my old unix C++ apps in xemacs and hacked around on it. c++ on solaris with xemacs and ddd is nowhere CLOSE to the ease of use and quick turnaround from idea to debugged code, for me anyway :)

      --
      My opinions are my own, and do not necessarily represent those of my employer.
    15. Re:C# may not stand for long... by AJWM · · Score: 2

      That certainly isn't what Microsoft had in mind as its raison d'etre, was it?

      Rotor and Mono are merely opportunistic parasites in the .Net ecosystem (as Microsoft no doubt would put it), they don't justify .Net of itself.

      --
      -- Alastair
    16. Re:C# may not stand for long... by alext · · Score: 2

      But not today of course, and probably not for a long time, if ever, assuming MS hold on to their patents.

      There's a huge difference between cloning the CLR and the Dotnet Framework, that's why most serious cross-(hardware)-platform apps on Linux use Java, Python or Perl.

    17. Re:C# may not stand for long... by EvanED · · Score: 2

      But like many instances of companies copying others, MS has improved on Java. I've been doing research lately on languages and their strengths and disadvantages to decide what I should do my next pet project in. I got interested in C#, and started to look into it.

      In the process, I discovered a couple articles (no obvious bias from MS) comparing C# and Java. More than convince me of C#'s merits though, I discovered 4 things lacking in Java that utterly turn me off of the language: no passing by reference, no preprocessor directives (and hence no conditional compilation), no enums, and no overloaded operators. Sure, in each of those cases it's possible to work around the problem, but in each of the cases it would make the code less readable. Also, having done C++ for a while, I feel that I shouldn't have to work around them. C# includes support for all four of these features, while still fixing most of the problems that I suspect led Java's developers to not include them.

      Now, whether the benefits I see in the language of C# outweigh the drawbacks of it being MS (if you see it that way) is a matter of opinion. For me, I'm going with C# for stuff I write for Windows, but will stick with C++ for things I want to be cross-platform.

    18. Re:C# may not stand for long... by broody · · Score: 2, Informative

      As for all these Frameworks; can any single one of you actually describe, in under 200 words, exactly what the .NET Framework is, what its comprised of, and why I should find it so exciting? ...

      Will anyone take the challenge, I wonder?


      Don't confuse this with advocacy, .Net is a a know they enemy technology. Below you will find my 188 word summary. Comments and corrections are welcomed. I think Passport.NET has been canned but I am not certain.

      Microsoft.NET is a product, note not a standard, intended to develop enterprise class web services. Microsoft.NET is comprised of ASP.NET, .NET managed components, and Host Integration Server, with additional hooks for SQL Server, Passport.NET, Exchange, Commerce Server, Application Center, etc. ASP.NET can render interfaces in HTML, XHTML, XML or using Windows forms.

      Microsoft.NET is mostly a rewrite of Windows DNA with enhanced language support and web services. The primary 'benefit' is language independence and inter-operability. The .NET framework includes the Common Language Runtime (CLR) which operating as an intermediary layer providing automatic garbage collection, cross-language inheritance, and concurrent execution of different versions of a .NET component. It also provides SOAP, WSDL, UDDI support for web services and will soon support ebXML.

      There are several pluses for the Mircosoft.NET framework and a great deal of draws with J2EE. The programming model is simpler than J2EE. The .NET framework provides language neutrality rather than forcing you to treat other languages as separate applications. Both .NET and J2EE require training, can create enterprise web services today, offer scalable enterprise solutions, and are available on the low end.

      --
      ~~ What's stopping you?
    19. Re:C# may not stand for long... by km790816 · · Score: 2

      I'm glad you enjoy it.

      I wasn't saying that VB will die. I was saying that C# will not.

      You make excellent points, but I like curly braces. :-)

    20. Re:C# may not stand for long... by Zeinfeld · · Score: 2
      You can have my C compiler when you pry it from my cold, dead, fingers.

      Well I said that when I looked at C++. I mean bleeuurgh!

      If you have a good set of macros to deal with memory management, string allocation etc then C is still pretty good. The noce thing about C# is that you get all that without having to lose any of the traditional C ways of doing things.

      Thing about Java was that I always got the feeling I was somehow being preached at and told the 'right' way to do things, and if it was not 100% pure then you get cast into the pit of hell etc. If the Christian Coalition wrote a language it would be like Java.

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
  2. Re:C# by RevDobbs · · Score: 2
    I think it will prove important in the future, if only beacuse it helps people make their complexity quota,

    Funny, I thought that C# was supposed to reduce complexity.

    Although pronouncing it "C-sharp" is a little counter intuitive; my first thoughts are always "C-pound". The maybe the first `Obfuscated C#' contests can center on it's name.

  3. Terrarium by killthiskid · · Score: 3, Interesting

    The thing that finally got me to play with C# was Terrarium. Players create 'creatures' which then compete in a peer-to-peer set of virtual terrariums. You can create plants, herbivores, or carnivores. It was quite fun (in a super geek way) and VERY challenging.

  4. Refreshing indeed by Anonymous Coward · · Score: 2, Interesting

    "... very balanced and does not hype up C# at the expense of Java -- throughout the book there are places where the authors say that "Java is better at this" or "We have no idea what the C# designers were thinking."

    Try finding that balance in a Java book, most of which devote all of Chapter 1 to a buzzword parade and list of Java perks (prevents bugs, write once run anywhere, cures baldness, etc).

  5. Wow- C# review on Slashdot? by glh · · Score: 3, Insightful

    I'm really suprised by this (especially with the book being from MS) but I think it is a nice to see on Slashdot.

    C# really is a nice language. It is more powerful than other .NET languages (such as VB.NET) because it allows you to write unsafe code (ie, code that doesn't have to go through the garbage collector). Not that most MS programmers will need this capability, but its nice to have if you need the extra performance over maintainability/safety.

    C# also gives you the ability to write XML comments in your code that can be parsed by the compiler to generate documentation. There is also an open source project called "NDOC" (hosted on Source Forge) that lets you generate really cool and helpful docs.

    However, the majority of Slashdot readers probably don't care how C# is better than other .NET languages. The real question is- how does it compare with Java. Honestly, I believe there are some differences in syntax and power, but I don't know the details (as I am not that experienced with Java) but it would seem this book could help answer that question. I plan on taking a look at this book. Thanks for the review, and again- nice to see this kind of thing on Slashdot!

    1. Re:Wow- C# review on Slashdot? by Jugalator · · Score: 2

      In a one sentence summary of the difference between Java and C#: C# is like Java with convenient C++ extensions such as structs, enumerations, multiple inheritance, but also with some of the problems of C++ like unsafe code.

      There's of course much, much more to it like the .NET framework's focus on web services, XML and other things.

      What I personally like most with C# is this:

      - Isn't a "layer" above another language, like C++. Clean.
      - The ease of use of Java with much of the power of C++.
      - Many annoying shortcomings in Java are fixed while preserving invaluable support for things like garbage collection.

      I'm not advertising VS.NET by this in any way. Always remember that *nix (and Windows!) users can go with the Mono project to get the C# language with platform independence, while still not supporting Microsoft if that's a concern. ;-) Unless they get tempted by the devil so to speak and switch to VS.NET of course. :)

      --
      Beware: In C++, your friends can see your privates!
    2. Re:Wow- C# review on Slashdot? by glh · · Score: 2

      I'm not advertising VS.NET by this in any way. Always remember that *nix (and Windows!) users can go with the Mono project [go-mono.com] to get the C# language with platform independence, while still not supporting Microsoft if that's a concern. ;-) Unless they get tempted by the devil so to speak and switch to VS.NET of course. :)

      I'm excited about the mono project. I hope it comes to fruition and can keep up. It would be nice to see what kind of development tool (if any) will be available on the linux platform. VI just doesn't do justice. Emacs might do the trick, but I like intellisense like VS.NET has (but I hate a lot of the nuances that come with it)

      I'd like to see some open source editors come out that could be used on different platforms. I wonder if anyone is working on that? I've used WebMatrix, not sure if that is open source, but it is free. There is also a free one called "Sharp Edit" but no auto complete, at least not the last time I checked.

    3. Re:Wow- C# review on Slashdot? by glh · · Score: 3, Interesting


      No, C# doesn't allow you to write unsafe code, you have to use C++ for that. What's new about C++ in the .NET framework is that it allows you to mix safe ("managed") code with unsafe code. In managed mode, it's a rather castrated C++ (particularly the lack of templates), but with the niceties of GC.


      You can write UNSAFE CODE with C#. Yes, it is mixed in, but it is still unsafe code. See this article for reference.

      I never said it runs outside the CLR, just the GC.

    4. Re:Wow- C# review on Slashdot? by iabervon · · Score: 2

      It's more powerful than other .NET languages because the CLR is designed for C#, which means that all of C# is supported. Other .NET languages are the part of the original language that is possible with the CLR; that is to say, .NET languages are like real languages, except without the features which would make them better than C# for some uses.

    5. Re:Wow- C# review on Slashdot? by spiro_killglance · · Score: 2

      also gives you the ability to write XML comments in your code that can be parsed by the compiler to generate documentation.

      Thats not exactly new, that the same feature
      as Javadoc did for java since version 1.0

    6. Re:Wow- C# review on Slashdot? by iabervon · · Score: 2

      And MSIL has exactly the features that C# uses, and lacks the features needed for complete implementations of other languages. Whether the issue is the CLR or the bytecode it uses is splitting hairs.

  6. C# the only real choice by Anonymous Coward · · Score: 2, Funny

    The thing that makes C# so much better than Java is that there are so many free Java VMs and development tools. If you want a VM for Java, all you have to do is go out to blackdown.org and download one. Well, what does that say about the quality of the language? Back when I was a wee pup we had a phrase, "you get what you pay for." Well, at least C# development tools cost a fair amount, to me that suggests that it is a much better language. After all if Java was so good they wouldn't be giving it away for free.

    Also with the upcoming war on Iraq it's best if we're all patriotic and support our country's companies with our hard-earned dollars. Why, if you use Java, you might as well hang an Iraqi flag in your yard and wear a Republican Guard uniform to work every day. That's how important this is. Don't you Java developers feel ashamed of yourselves? I would.

  7. The Canonical C# for Java Developers Article by Carnage4Life · · Score: 5, Informative
  8. What was wrong with J# for Java users? by SadatChowdhury · · Score: 3, Informative

    If anyone wants to port Java application to .Net platform, wouldn't it make more sense to use J#? With .Net's language insensitive nature, C# vs J# should not matter, and so J# would naturally make more sense to someone wanting to attempt to port a Java application into the .Net platform.

    1. Re:What was wrong with J# for Java users? by Jugalator · · Score: 2

      It would make more sense, but the majority of work would remain due to the differences in the Java Framework vs the .NET Framework.

      But, yes, it would probably help a bit. ;)

      --
      Beware: In C++, your friends can see your privates!
  9. Good starting point online by km790816 · · Score: 3, Interesting

    A Comparative Overview of C#

    This is a great site. If anyone wants to learn C# coming from a C/C++ or Java background I send them here. Shows source in all three languages (where applicable). Good place to start.

    I must say I was a hard-core Java fan until I found C#. I must qualify that statement since I develop exclusively for Windows.

    If you write code that will only live in the Windows world, you owe it to yourself to check out C#/.NET.

    1. Re:Good starting point online by Kynde · · Score: 4, Insightful

      This is a great site.

      After a first glance I saw :

      This is typical code you might write in Java or C++:

      foo.setSize (getSize () + 1);
      label.getFont().setBold (true);

      The same code you would write like this in C#:

      foo.size++;
      label.font.bold = true;


      Now, if that isn't biased crap then I must be the guy bending over at goatse.cx. The rest of the article goes on in much the same way.

      I just knew it. For C/C++ coders C# is what Windows is to a proper OS users. It may be easier if you're a numwit, but I'm quite sure that the design is rigid and quite quickly you'll wind face to face with some illogicality or utter impracticality. And there you are... not happy as a clam, but happy as a lion with a hedgehog rammed up in it's butt.

      If you're now thinking "well, C++ is flawed, too" the you've missed the point or you only think you know C/C++. There's a big difference in knowing and mastering and my guess is that that in particular will be the problem with C#, as with all other Mickeyware.

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
    2. Re:Good starting point online by scotch · · Score: 2
      If you write code that will only live in the Windows world, you owe it to yourself to check out C#/.NET.

      If you write code that you think will only live in a windows world, you should always consider carefully using cross-platform or portable solutions. I've seen the windows-only assumption fail many times: the developers were stuck with the difficult and tedious task of gettin their built-for-ms code to be cross-platform.

      It's just one consideration. If vendor lock in doesn't bother you or your clients, or you will never need to reach other platforms or scale your solution, .MicroSoft might be right for you.

      --
      XML causes global warming.
    3. Re:Good starting point online by Kynde · · Score: 3, Interesting

      Your visceral hatred of Microsoft has you defending Java's disgustingly verbose syntactic conventions for properties where yep, they got that wonderful beans model, then proceeded to do absolutely NOTHING with the language syntax to support it.

      Couldn't agree more, but the same won't hold for C/C++ which they referred to.

      I bet you thought those were direct property accesses, right? I wouldn't expect such a staunch defender of The One True Faith to actually look up the mechanisms of property declarations...

      Doh, it being methodized was obvious enough. It just kinda bugged the hell out of me seing :
      foo.setSize (getSize () + 1);
      label.getFont().setBold (true);


      Labeled as "typical code" in C++.

      And the part which you were obviously referring to as it cannot be done in C++ (because one can't overload .):

      label.font.bold = true

      Well, I for one am quite doubtfull wether that is better than what C++ has now :
      label.font().bold = true

      The article goes on and argues that the .font. syntax won't be mistaken for a field by "However, almost all classes with any real complexity designed in Java (and certainly in C#) do not have public fields anyway.".

      Well, I sure don't see the "extra" parentheses harmfull, moreover I'm worried about the complexities of the scoping rules for similarily named fields.

      Having read the cursive (italic) parts of the article, I have to say that I don't agree with most of it. And just as my comments here are biased, so is the article. Rants like these don't make good articles. That's why I post my crap here, which would've been a fair idea for that author aswell.

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
    4. Re:Good starting point online by coltrane99 · · Score: 2

      Heh, no kidding.. You can achieve this same effect in java if you just declare your object's private variables to be public instead of using getters and setters. We all know this is the wrong approach, since it makes for crusty unmaintainable code down the road, right??? Right???

    5. Re:Good starting point online by coltrane99 · · Score: 2

      Heh, no kidding. You can achieve this same effect in java if you just declare your object's private variables to be public. But this breaks encapsulation, leading to crummy, hard to explain, understand, and maintain code. Everybody understands this, right?

    6. Re:Good starting point online by the+eric+conspiracy · · Score: 3, Informative

      After I read that I article I also came away with the impression it was highly biased. Nowhere does it describe some of the significant advantages that Java has over C# such as checked exceptions, inner classes, class granularity reflection, a far better collections implementation and so on.

    7. Re:Good starting point online by thomas.galvin · · Score: 2, Informative

      This is typical code you might write in Java or C++:

      foo.setSize (getSize () + 1);
      label.getFont().setBold (true);

      The same code you would write like this in C#:

      foo.size++;
      label.font.bold = true;


      Now, if that isn't biased crap then I must be the guy bending over at goatse.cx. The rest of the article goes on in much the same way.


      Actually, IIRC, C# supports some syntactic sugar called "accessors;" basically, label.font.bold = true maps to a call to label.getFont().setBold(true). They didn't make the member data publically acessible, they just lowered the keystrokes to call simple mutator methods.

    8. Re:Good starting point online by HiThere · · Score: 2

      The problem is...
      It *should* be mistakable for a field. The user of a class should not need to know how an item is implemented, whether it's via a field or a method should be opaque. That way the implementor can change the implementation without breaking code.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    9. Re:Good starting point online by scotch · · Score: 2

      That's a pretty narrow definition of scalable.

      --
      XML causes global warming.
    10. Re:Good starting point online by sql*kitten · · Score: 2

      This is a great site. If anyone wants to learn C# coming from a C/C++ or Java background I send them here.

      Much better comparisons here.

  10. Windows.Forms by zephc · · Score: 2

    While not part of the language but rather somewhere in the .NET APIs, Windows.Forms is a really cool set of classes and methods that let you do GUI building with relatively little pain. Now I'm no Microsoft apologist, but what they did with Windows.Forms is a LOT nicer than AWT and Swing, and as far as I can tell, the backend was written in native code.
    There are some articles about it too.

    --
    "I would say that 99 per cent of what my father has written about his own life is false." - L. Ron Hubbard Jr.
    1. Re:Windows.Forms by SkewlD00d · · Score: 2
      In about two seconds, you can make a XML gui maker with java... then take your JFrame,
      XMLEncoder xe = new XMLEncoder( new FileOutputStream( "gui.xml" ));
      xe.writeObject(yourJFrameObjectHere);
      and then here's the code to read it back:
      XMLDecoder xd = new XMLDecoder( new FileInputStream("gui.xml"));
      JFrame jf = (JFrame)xd.readObject();
      jf.show();
      Hopefully, the java FUD of the 1990s is laid to rest, as java HotSpot and native binary compilers have really improved alot since the first-generation slow-ass JVMs. Then M$FT comes along and copies Java, calling it J++ then going to some panacea java-replacement platform called .NET to get away from a perceived foot-hold gained by sun. java might be dead on the wintel platform, but it sure-as-shit isn't anywhere near dead in ISV/IT/IS/IM/I* world. Enterprise JavaBeans and JSPs are the best thing to happen application servers. Too bad M$FT doesn't like open standards that everyone else is using. Sux to their as-mar.
      --
      The biggest trick the devil pulled was letting lawyers become politicians so they can write the laws.
    2. Re:Windows.Forms by nchip · · Score: 2

      Hopefully, the java FUD of the 1990s is laid to rest, as java HotSpot and native binary compilers have really improved alot since the first-generation slow-ass JVMs.

      This attitude wont help java anywhere. Even with hotspot, java is slow, especially the GUI stuff on Linux/Unix. Array handling sucks big time too. Tomcat jsp:s get wiped down with hacks like php. Setting up J2EE is a real pain in ass. Etc, Etc. Never done .net, but I am looking elswhere from the java world. Probably c++/QT.

      If java want's to survive, sun needs to make it easier and faster, and show studies PROVING it. The "Pet shop is not a benchmark" cry needs to replaced by "Hey, this version beats .net version in both speed and implementation time".

      --
      signatures pending - ansa@kos.to - (dont mail there)
  11. Re:Good Stuff! by pmz · · Score: 2

    C# is obviously the future of .NET programming

    Perhaps.

    .NET is the future of the internet

    Absolutely not.

    .NET is an acronym for "Proprietary Lock-In". Keep this in mind as you learn C# and immerse yourself into the .NET "experience".

  12. Re:C# by Idarubicin · · Score: 2
    Although pronouncing it "C-sharp" is a little counter intuitive; my first thoughts are always "C-pound". The maybe the first `Obfuscated C#' contests can center on it's name.

    I believe it was The Register which approached this topic in some detail. For me, I've found that the best cross-cultural pronunciation is "C-hash". "C-octothorpe", though perhaps the most precise and technically correct, doesn't roll off the tongue nearly as fluidly.

    --
    ~Idarubicin
  13. Re:Good Stuff! by thedarkstorm · · Score: 2, Interesting

    There is a somewhat free version available for Linux. It's called Project Mono I believe. Here is the URL:
    http://www.ximian.com/devzone/projects/mono. html

    Small SUmmary from page, "The Mono Project is a community initiative to develop an open source, Linux-based version of the Microsoft.NET development platform. Incorporating key .NET compliant components, including a C# compiler, a Common Language Runtime just-in-time compiler, and a full suite of class libraries, the Mono Project will enable developers to create .NET applications and run them on Windows or any Mono-supported platform, including Linux and Unix. Besides greatly improving the efficiency of development in the open source world, the Mono Project will allow the creation of operating-system-independent programs. "

    --
    ... hey ... I had a .sig, bu then MicroSo$$ embraced it...
  14. Ignorance, or cluelessnes? by Quarters · · Score: 2
    "First of all, let's deal with the Microsoft issue. I was surprised to find that this book even existed given the problems MS has had in the courts recently."


    Where in any of the court documentation for any of the court proceedings that MS is invloved with does it say, "You have to divest yourself of your publishing brand?"

  15. Wow.. review sounds pretty good! by Quixote · · Score: 3, Flamebait
    Too good, in fact. Am I the only one who was reminded of the recenty story about 'stealth advertising', with paid "actors" using cool gadgets as if they were normal users, to create a buzz? This review, with its liberal dosage of "I was skeptical of ... but was pleasantly surprised to find ... " reminds of just such marketing efforts.

    1. Re:Wow.. review sounds pretty good! by tshak · · Score: 3, Insightful

      Of course, when the next Java review comes out no one will by crying conspiracy.

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    2. Re:Wow.. review sounds pretty good! by Lord+Omlette · · Score: 2
      Am I the only one who was reminded of the recenty story about

      The Cappuchino PC pt. 3?
      --
      [o]_O
    3. Re:Wow.. review sounds pretty good! by Yankovic · · Score: 3, Funny

      This coming from a guy with a Java contest sponsored by Sun as his sig...

  16. Why should it seem strange to mention C#? by Tattva · · Score: 5, Insightful
    It might seem strange to review a C# book on Slashdot

    There is absolutely nothing strange with not keeping your head buried in the sand. Just because some folks seem to have a knee-jerk reaction to all things Microsoft doesn't mean Slashdot should be expected to ignore relevant and widespread programming practices.

    --
    personal attacks hurt, especially when deserved
    1. Re: Why should it seem strange to mention C#? by Tattva · · Score: 2
      Just because some folks seem to have a knee-jerk reaction to all things Microsoft doesn't mean Slashdot should be expected to ignore relevant and widespread programming practices.
      Looks like their marketing works just fine.

      It's true I have only anecdotal evidence to back up my assertion that C# and .NET are gaining widespread adoption. The division of the company I work for is heavily involved in .NET development, and we are in an industry that is traditionally behind the curve in software practices. I think only common sense will tell you of the general interest in .NET. I attended the kick-off in Denver and the place was packed.

      I don't know why I'm responding to you, it is easy to close your eyes and say "show me the statistics or I believe nothing." Not to mention you're posting as an AC.

      --
      personal attacks hurt, especially when deserved
  17. Re:C# by cbowland · · Score: 2, Funny

    As a java developer, I prefer to call it D flat.

    --

    Give a man a fish and he will eat for a day.
    Teach him to eat and he will fish forever.

  18. C# vs. Java comparison by prostoalex · · Score: 2

    This article is a bit old, in fact, the folks at ExtremeTech probably celebrated its birthday just recently, but nevertheless, it turned out to have a lot of useful information for me when it was just published.
    ExtremeTech: Java vs. C#, a Code-for-Code Comparison

  19. Microsoft press has some good titles. by Zapman · · Score: 3, Informative

    They're not Oreilly, but they do have a good reputation for quality books. Code Complete and Rapid Development are amazingly good books by Steve C McConnell, put out by MS press.

    --
    Zapman
    1. Re:Microsoft press has some good titles. by spongman · · Score: 2

      yup, and pretty much anything by J.Richter.

  20. WOW by Lxy · · Score: 2

    I'm impressed that MS Press wrote a content packed book. Most of their publications were light on the tech details and more like FUD, it's nice to see they're actually writing some useful material.

    And no, there's nothing wrong with posting books about C# or .NET to Slashdot. It's new technology that will affect us in a few years. While I don't like MS, I don't understand C# or .NET, and I know that in 2 years I'll wish I did.

    --

    There is no reasonable defense against an idiot with an agenda
    :wq
  21. Re:It's pronounced *SEE-SHARP* by the way. by slickwillie · · Score: 2

    Gee, I always pronounced it "see-hack".

  22. Wow... by ebbomega · · Score: 2

    Once again someone misses the point in its entirety of high-level languages.

    If you decide that you're going to stick only to assembly and nothing else, you're going to find little love in the computer industry.

    High-level languages are designed so that you don't have to go through a couple billion lines of extraneous code to do something. Sure, if you program in assembler, your code will be cleaner, faster and has a greater potential for looking brilliant to other hackers, but I dare you to try coding around in assembler making a couple of graphics engines and tell me how simple it is in x86 against C++.

    I mean, christ, I love assembler. You can do whatever you want with the memory, write self-modifying code, know at all times what is going on with the processor and everything else in the system, but fer crying out loud, if I want to make something as simple as a function call in Motorola HC11 that requires about 6 lines of code per call. A simple 4-line if block can result in a 20-line assembly instruction that would just be bloody easier to do if you just let a compiler automagically run it for you.

    While Assembly is pretty, and I encourage that if you want to be a programmer, learn it and use it well, but for crying out loud, don't stop there.

    --
    Karma: Non-Heinous
    1. Re:Wow... by AndroidCat · · Score: 2
      if I want to make something as simple as a function call in Motorola HC11 that requires about 6 lines of code per call. A simple 4-line if block can result in a 20-line assembly instruction that would just be bloody easier to do if you just let a compiler automagically run it for you.

      Hey, that's what macro assemblers are for! (Of course, you're just basically [npi] creating your own mini language.)

      Okay, I'll bite, what are the free options for trying out C# and .NET? I don't want to buy Visual C#.NET just to take it for a test drive. (Someone should write a Tiny Basic.NET :^) With the job listings more frequently asking for a few years experience (Argh, idiots!), I'd better keep sharpening [pi] my skill set.

      --
      One line blog. I hear that they're called Twitters now.
  23. Review of this review by gabbarsingh · · Score: 3, Insightful

    While I am a Java developer and I am interested in C# from a knowledge-about-languages perspective, this review is far from getting me there. At exactly one point the reviewer mentions threads and Swing. But then what about it? At more than four places Microsoft press is mentioned and it is advised to give them a fair chance. Well, after reading this review I still don't have a clue what the book is about. The ToC is interesting but not helpful. I bet that a 'Python for Perl Programmers' book would get an objective review with less focus on publishers and book contents/excerpts that would do the topic some justice. What I am trying to say is that there is no 'java angle'

    I propose slashdot community lay down some guidelines about reviewing a technical book. I applaud the reviewer's efforts and for keeping an open mind towards the source ;-)

  24. Maligned? by p00ya · · Score: 2, Interesting
    It's disappointing to see so many developers give c# a rough time. I really do not see how c# is any more maligned than other languages.

    It really is just scared developers concerned that anything redmond can cough up is too mainstream and below them...

    Take a look at the ecma standards, download mono, and crawl out of your shell.

    1. Re:Maligned? by Wavicle · · Score: 3, Interesting

      It really is just scared developers concerned that anything redmond can cough up is too mainstream and below them...

      I'm pretty sure most of us developers are just a frightful bunch. Ada is an infamously derided language ("oh the government made it, so it's basically a beauracracy of a language") - yet it has more built in support for requirements validation and maintainability. If you look carefully at Ada, it is a pain to work with, but the result can be readily and meticulously examined by people other than the original developers.

      If you were a sailor and an exocet was screaming towards your vessel 500 yards out and skimming the waves and the only thing between walking the deck and treading the waves is your Phalanx close-in weapon system, you're probably hoping the software which controls the Phalanx was developed with Ada. Now would not be the time to file a support request because your C++ caused a general protection fault.

      So whether it's C# or anything else... I think way too many are afraid of having to re-stock their toolset from scratch. There's comfort in working with what you've always worked with. Insert cliche dinosaur analogy here.

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
  25. Comment removed by account_deleted · · Score: 2

    Comment removed based on user account deletion

  26. Re:Assembly by cscx · · Score: 2

    I would like to see more assembly being taught at all levels: high schools and collegiate.

    FYI, there are kids taking high school level Visual Basic that can't fathom the concept of a loop... Let alone assembly.

    I think "anal-retentive programmer" doesn't fit your average (probably not even above-average) high school student.

  27. Re:Java developers should use J#, no? by Jugalator · · Score: 3, Interesting

    Yep, that's also the #1 reason to use it according to MS.

    However, syntax is often the easiest thing to relearn when switching language. Often much easier than to relearn an entire API. And since J# use the .NET Framework (and only the .NET Framework - it doesn't even run a VM) you could just as well go for C#. It's not *that* hard of a transition to relearn at all. For me, it was enough with some tutorial browsing on the internet to get into C# with a couple of years of Java experience since earlier.

    --
    Beware: In C++, your friends can see your privates!
  28. curious? download the SDK. by MORTAR_COMBAT! · · Score: 4, Informative

    No registration required: download the Microsoft .NET Framework SDK. Includes command line utilities, documentation, etc.

    The sound you here is a dozen moderators clicking 'Troll'.

    --
    MORTAR COMBAT!
  29. Re:It's pronounced *SEE-SHARP* by the way. by Soko · · Score: 2

    Naw. It's *SEE-SHARP" for sure, as in

    "Ouch!! That hurt! Fuck, now I'm bleeding cash! ;-)

    /MS Bash mode off

    Soko

    --
    "Depression is merely anger without enthusiasm." - Anonymous
  30. Re:C# not so bad folks by e2d2 · · Score: 2

    Isn't it sad that you have to qualify any statement that might make it seem like you actually like something Microsoft has created? I find myself qualifying anything related to MS that might seem positive with the same type of qualifier: "I'm not a MS drone" etc...

    Sad really

  31. Re:C# ~= Java by Jugalator · · Score: 2

    Wow - this one earns modding up. :)

    I only knew about Bruce Eckel's wonderful online books earlier (and lookie there - a C# book over there too!)

    But I agree with you, I only needed a few web tutorials to get started. The online IDE help in VS.NET did the rest. What I found hardest in learning C# wasn't the syntax that's almost identical to Java or C++, but learning where to find everything in the huge Framework and how the classes were all organized.

    --
    Beware: In C++, your friends can see your privates!
  32. Re:Java developers should use J#, no? by Jugalator · · Score: 2

    Ah - didn't know that.. But you're right about it's pretty useless support in many cases. Or as useful as IE's "VM" in any case.

    --
    Beware: In C++, your friends can see your privates!
  33. mono for windows by MORTAR_COMBAT! · · Score: 4, Informative

    Just downloaded the excellent 4 MB mono 4 windows as mentioned in an earlier thread, and as a C# hobbyist, let me tell you, it is a pretty nice way to get acquainted with the language without having to download the 150 MB or so of the full .NET SDK.

    And as is said elsewhere, every language has its place. C# is pretty nice for building Windows native applications. If you don't want to do that, then use a different language.

    More on-topic, I'll definitely be checking this book out of the company library.

    --
    MORTAR COMBAT!
  34. Re:Assembly: Why It Will Replace C++/Java by Zico · · Score: 2

    Couldn't have been Steve Gibson, UNLESS! Unless someone has DEVIOUSLY edited his post and STOLE all his capitalized words. The REAL Steve Gibson would NEVER have made such an unexciting post. HUZZAH!

  35. Re: C# by Black+Parrot · · Score: 4, Funny


    > This is a maligned language.

    Is it byte maligned, or word maligned?

    --
    Sheesh, evil *and* a jerk. -- Jade
  36. Re:Good Stuff! by pmz · · Score: 3, Interesting

    Hey! If that's true, can't sun sue them for use of a trademarked acronym?

    Not quite, since Java is widely implemented. Sun doesn't expend time and money trying to make these implementations incompatible; instead, Sun wants them to be compatible and has test suites available for that purpose. Conversely, Microsoft has a history of prefering their implementation over any others and works hard to drive other implementations into obscurity. Only time will tell if history will repeat itself with respect to efforts such as Mono.

    ...do you REALLY expect to get EVERYTHING for free?

    No, but I do consider the amount of risk associated with a technology. .NET provides a one-way ticket to the Microsoft Village; if you are comfortable with that, then, by all means, use C# and be happy. Those people looking for multiple-vendor technologies (i.e., lower risk technologies) should look elsewhere.

  37. Re:C# by plugger · · Score: 2, Funny

    Showing my age here, but I remember UK computer magazines printing BASIC listings, often with a footnote which said 'our daisywheel printer only prints £ signs, please substitute # for £ in the program'.

  38. Versa Vise by Tablizer · · Score: 2


    You know that .NET is a failure when you start to see a lot of books titled, "Java for C# Developers".

  39. Example please by Shimmer · · Score: 2

    We have no idea what the C# designers were thinking

    Can you provide an example?

    -- Brian

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
  40. C# for Java programmer? by Daimaou · · Score: 2

    Why would anyone write a book about that?

    All you have to do is add "MS" to the front of all the standard Java classes, methods, and member variables, and run your code through a C# compiler isn't it?

    1. Re:C# for Java programmer? by Daimaou · · Score: 2

      You idiot!!! It was like a joke and stuff.

  41. generating documentation by NFW · · Score: 2

    FWIW, C++ and other languages have long has this ability thanks to Doxygen and similar tools. It's cool stuff. Doxygen doesn't use XML, but the syntax is pretty straightforward.

    --
    Build stuff. Stuff that walks, stuff that rolls, whatever.
  42. I didn't have a problem making pure Java apps by JohnDenver · · Score: 2

    You mean you didn't get a platform indpendent app when you used the form designer and tried to add an ActiveX control?

    What was so hard about developing a platform independant app with J++? It seemed pretty clear to me what was Win32 and what was Java.

    --
    "Communism is like having one [local] phone company " - Lenny Bruce
  43. Cash (C + Hash) == nice Idea, .Net == teh suxxo0rz by Qbertino · · Score: 2

    Cash deals with some syntax odities of simular languages in a nice way. It's a languageconcept worth while implementing. .Net on the other hand sux. It's buggy as hell, runs only on Mickeysoft (so much for "platformindependent") and gains as the singular plus the choice between VB .Net, Cash .Net and some other proprietary M$ Coding lingua. Big fat hairy deal.
    Did anyone in the Industrie notice yet that near to zilch people are actually using .Net in a way that their offering products made with it?
    Either I wanna go M$, then I go native. Or I want go independent, then I go Java. Is that so hard to get across?
    No, folks, .Net is gonna fail - or it's gonna cost M$ another few billion and a change in market policy.

    --
    We suffer more in our imagination than in reality. - Seneca
  44. It's MUCH cleaner than Java by KlomDark · · Score: 2

    As much as I hate Microsoft stuff, and am against closed source, C# is a very nice language. The whole time I've used Java, I've felt like "I wish something better would come out that wasn't so quirky".

    We need an open source language similar to C#. Java's not open source, either. But I'd rather see a C#-type language than a Java-type language.

    I hate to say it, but C# is definitely the better language. It's main drawback for me is that it doesn't (currently anyway) run on anything but the shitty Windows platform. C# on Linux and I'd be in heaven.

    1. Re:It's MUCH cleaner than Java by KlomDark · · Score: 2

      Is it finished, or at least usable? I haven't checked myself, but everything I've heard here says that it's really incomplete. Maybe that's not true and should do my own homework?

  45. Multiple inheritance by NFW · · Score: 2
    No multiple-inheritance ( before you cry: having 20 level inheritance trees from 3 different objects SUCKS in any language, but occasionally deriving from more than one object comes handy once in a while)

    Oh quit your bitching. Want to reuse the same few functions across a set of classes? That's what the clipboard is for. You know, copy and paste. Just paste that useful code into every class that needs it.

    Want to change, extend, or trim back that code that cut-pasted code that should have been a base class? That's what search-and-replace is for. You've got a lovely IDE, learn to use it.

    Me? Bitter?

    Seriously though, I've been thinking about creating a language called D. D is a half-step above C#. D will look just like C#, but it will add a new keyword: derivesfrom. Then you can write code like this:

    public class BaseClass
    {
    // implementation and stuff goes here
    }

    public class Widget derivesfrom BaseClass, OtherBaseClass : IWhatever, ISomethingElse
    {
    // you know
    }

    The D "compiler" will read such things and emit perfectly compilable C# code, sparing you the cut-paste madness known as "code reuse" in the C# world. The only question is whether D should be implemented as a perl script (because I have a sense of humor) or as a D application (because geeks (like me) are fond of self-reference).

    As a friendly gesture to those who oppose MI, the D compiler will spit out an error message if you attempt to derive from two classes that share a common base class. This one pathological example seems to have scared the bejeezus out of language designers everywhere. Other abuses of MI might be handled with stern warnings.

    I submitted the project to the good people at SourceForge a few minutes ago. In the meantime, contact me directly if you're interested in bringing D to fruition.

    --
    Build stuff. Stuff that walks, stuff that rolls, whatever.
  46. Bytecode has its place by Fafhrd · · Score: 2

    And since it only runs on Windows, hence x86, I need to produce bytecode why?

    We've already heard about Windows CE.NET, which runs on ARM. MS has released a "preview" of a 64-bit version of Windows for Itanium, and it is making noises about a new version optimzed for the AMD Opteron.

    I believe MS intends to eventually produce one deliverable (the CLR bytecode assembly) which will be compiled into native code on the ARM, x86, Itanium and Opteron, with different optimizations for each.

    Also, one of the concepts I like about the CLR is the possibility of optimizing for your platform at the last possible moment. Imagine having different JIT compilers for Pentium III, Pentium IV and the Athlon, producing a different executable depending on your machine. I doubt it will happen, though.

    1. Re:Bytecode has its place by Steveftoth · · Score: 2

      Java already does what you are asking for. Today it happens when you run a program in most modern jvms. Even the IE JVM compiles your class file to native code (JIT from symantec).

      ARM has an extension for their chips that allows them to run many (not all) java bytecodes as native instructions.

      The future is now!

    2. Re:Bytecode has its place by Fafhrd · · Score: 2

      Java already does what you are asking for. Today it happens when you run a program in most modern jvms. Even the IE JVM compiles your class file to native code (JIT from symantec).

      I know Java does that. I've run gcj, Supercede (an old Asymetrix IDE) and the experimental native compiler from IBM (later rolled up into Visual Age Enterprise), and they all produce native executables.

      My point is that Microsoft seems to want that flexibility in deployment for their products... So they can (for example) do one release of Money.NET (or whatever, just an example) without having to place multiple executables on the CD for Pentium, Itanium and Opteron. They did it before with NT 3.x... I remember 3.5.1 having i386, ppc, mips and alpha directories on the install CD.

      ARM has an extension for their chips that allows them to run many (not all) java bytecodes as native instructions.

      Really? That's very cool! I didn't know that... There must be some really good JVMs using these shortcuts.

      The future is now!
      Agreed.

  47. Re:compare web architectures by steve_l · · Score: 2

    well, ASP.net is *nominally* better than jsp; at least with the design UI that VS.net gives you; asp.net are roughly equivalent in functionality to taglibs.

    But jsp pages are nasty for complex code, so are asp.net pages. And the execution of some of the ASP.net controls take up a lot of bandwidth; the calendar control is an example.

    ASP.NET's web service model is good; it is very easy to export methods from a class as SOAP actions against a URL. But to build and deploy a production quality, high availablity web service is always a management and config nightmare, and there java still has the edge over IIS+WinNT.

  48. Re:another new language? technology churn by pmz · · Score: 2

    Market full of suckers.

    I agree with this. Programming matured quite a while ago, and most recent contributions have added only unneccessary complexity to what should be a tractable situation.

    The last five years have introduced more acronyms, buzzwords, and brand names into my vocabulary than my brain can handle. Yet, what am I using on a daily basis? 20-year-old technology: vi, sh, sccs, make, etc. Relatively few new software technologies have really pushed beyond where we were in 1982, and many of those technologies are simply eye candy-enabled versions of what was around 10, 20, and even 30 years ago.

    It seems we could be better off not reinventing the platform on which everything is built every five years. FORTRAN, C, C++, Java, C# all touted revolutionizing our lives. FORTRAN and C really did revolutionize things; they broke us free of assembly code. But what about the rest? Why is software quality about the same now as it always has been? It's because none of these newer platforms have changed the fundamental complexity of making good software. Writing software today still requires the same amount of "brains" as it did decades ago.

  49. Re:Cash (C + Hash) == nice Idea, .Net == teh suxxo by e2d2 · · Score: 2

    Either I wanna go M$, then I go native

    The .Net API is the replacement for the native Win32 API. This is a fact you ignore at your own peril.

    No, folks, .Net is gonna fail - or it's gonna cost M$ another few billion and a change in market policy.

    Thanks for the prophecy nostradumbass. Can you back any of what you said up with facts and not FUD? Are you a developer or do you just play one on TV? Go write more than a hello world before you blab about how .Net "suxx0rz" noobmaster flex.

  50. Re:Wow.. conspiracy theory sounds pretty good! by Tokerat · · Score: 2

    I got an idea.

    If you all really care SO MUCH, go to your local Barnes & Noble and RTFB.

    If you want to know if something if bullshit, there's really nothing like seeing for yourself.

    --
    CAn'T CompreHend SARcaSm?
  51. Funny, I saw the opposite by GCP · · Score: 3, Insightful

    What I noticed was just how uncomfortable the author seemed, to be seen saying anything positive about something from MS to this crowd.

    Pretty sad when the political orthodoxy is so overwhelming that every sentence has to start with the equivalent of "please don't hate me for saying it, but this wasn't as bad as I naturally assumed..." when discussing a book on programming.

    C# is what you get if you take several years of Java real-world experience and ask "if we could do it over again from scratch, with no backward compatibility requirements with existing Java, what would we do?"

    C# is what you get if, instead of taking Sun's attitude of "please, you're a programmer, not a language designer -- if what you're asking for were a good idea, we would have done it", you take MS's "mercenary" attitude of "what changes would you make to Java if you could?".

    --
    "Those who have never entered upon scientific pursuits know not a tithe of the poetry by which they are surrounded."
  52. Of course not by Pac · · Score: 2

    We all know the vast secret conspiracy against poor Microsoft does not tolerate these kind of behaviour. Anyone speaking against Java, Linux, Apache and other fine technologies will be as good as dead for the mainstream media and the general public as is anyone who speaks for Microsoft. They all go down the same wall of silence we dump Chomsky and Moore on.

  53. Re:Java developers should use J#, no? by tshak · · Score: 2

    I agree with you. I think that J# was probably a huge waste of time and money for MS.

    --

    There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
  54. Re:C# for non-java developers? by EvanED · · Score: 2

    The "Programming C#", as well as the "Professional C#" by Wrox mentioned in another post seem to be the two forerunners. Both have very good Amazon reviews, and both have several people who reccomend the other (while for the most part still conceding both are very good). Which you get seems to be more a matter of taste than anything else. If you're wondering, I just got the Wrox press one a couple weeks ago. I picked it because it has a bunch more pages. (Hey; I needed a tie-breaker, and that's a little better than a coin flip.)

    I do reccomend the Petzold though. (I got that in the same shipment.) If you're not familiar with Windows Forms and want to do client programming for Windows, you'll almost need it. The Wrox Press book gives an intro on WinFoms (the O'Reilley appears to as well from a listing of topics on Amazon), but if you do any serious development you'll want a dedicated book. (It's expensive though; order it online for a lot less; it's $60 retail, but I paid $42 on Amazon. I believe other OL places have similar deals.)

  55. Can't figure it out? Try it out by GCP · · Score: 2

    Download the SDK from MS. It's just like downloading the Java SDK (JDK) from Sun.

    It's free. You'll get a C# compiler, a bunch of class libraries, and a runtime, plus other goodies (e.g. other languages, but stick with C# if you're starting new.)

    Get a beginning C# book and go to work. It's no different from learning what Java was about in Java's early days.

    If your complaint is then, "but I'm not a Windows user", I can relate. One of the main reasons I became a Windows user was because I was having such a hard time learning the "cross-platform" Java language on my Mac back in the early days.

    If you're not a Windows user, you should be used to waiting by now, so wait for (or go help) Mono. Since I'm not a Windows user on the server side, I have to wait with you for some things, but I think that there will eventually be an excellent .Net for non-Windows platforms.

    --
    "Those who have never entered upon scientific pursuits know not a tithe of the poetry by which they are surrounded."
  56. VB.NET by Bodrius · · Score: 3, Informative

    Well, I don't know about Microsoft, and I do know a lot of VB developers that hate VB.NET with all their guts, but I have to say I find it impressive for the same reasons they hate it: it's a language that forces OO design, uses modern libraries, and in the end it's all source code.

    I'm not a big fan of VBisms such as "MustOverride", "MustInherit", "NotInheritable" etc, which can easily become unreadably verbose for my taste as you combine them, but after trying it out for a couple of simple apps as an experiment I find it an outstanding improvement over the original VB.

    I think it's perfectly feasible to build a relatively big project in VB.NET without destroying some hardware and going on Prozac, as I would expect with any other VB.

    Not that I would, but it has become a matter of taste or distaste for the VB-like syntax, not a major disfunctionality of the language itself.

    VB.NET is a crutch. But it's a crutch that manages to fix VB as a language. I consider that an achievement, to say the least.

    --
    Freedom is the freedom to say 2+2=4, everything else follows...
  57. This is SO not insightful by GauteL · · Score: 2

    The above poster have gotten a 4 insightful, but rather should have a "-1 Dreadfully biased troll", for being way more biased than what he is bashing for being biased.

    What the f*** is so insightful about bashing language on the basis of it being high-level and created by Microsoft?

    C, C++, Java and C# all looks like nice languages, and even if you are sceptical you should base languages on its merits, and not who created it.

    I'm really paranoid about Microsoft, I run a small norwegian Linux site, and I'm a Linux user, but this is just BS.

    Besides, reasonable C-coders might prefer to code in C, but won't dismiss C# or Java as some sort of "Mickey Mouse"-language just because it is high-level. Some times you need the power of C, sometimes you just want rapid development without the hassle.

    There are at least enough C-coders that think C# is great, to create Mono.

  58. EvanED has it wrong I think. by sweetjonnie · · Score: 2, Interesting

    Dear EvanED,

    For someone who has done a good deal of research on languages, I find it odd that you should point to four of THE most superficial differences.

    Had you pointed to differences between the CLR and the JVM, you might have had an audience.

    Instead, you rehashed the oulde argument between C++ and Java. Who won that debate? The people who realized that it was a waste of time to argue THESE points.

    EvanED, I wish you well in your research. I would like to point out to you that there is not a junior college on Earth that will give you any extra credit for your penetrating analysis.

    Sincerely,
    sweet jonnie

  59. VB.NET is exactly the same as C# by Baki · · Score: 2

    Look in VS.NET, all documentation and sample code for C# and VB.NET comes from the same source.

    C++ samples are completely different (it is a really different language, with templates, MI etc).

    In the VS.NET sample code there is a toggle that switches between VS.NET and C#. Really, the two are 100% equivalent, only the syntax differs.

    I think that most traditional VB programmers shall stumble with VB.NET. Superficially they may think it is still the same language, but in reality it is totally different from what they knew. Only few of those can grasp VB/C#.NET.

    The survivors come mainly from C++ background; for those, the C# syntax shall have more appeal.

    Thus, VB shall die.

  60. Re:Wow.. conspiracy theory sounds pretty good! by joto · · Score: 2

    I didn't know Barnes & Nobles sold binaries...

  61. C# 'Mickeyware' ? by Otis_INF · · Score: 2

    Since when is a language which fixes a couple of serious flaws in Java 'mickeyware' ?

    Oh, I see... It's not C++, so it must be stuff for kids or 'loonies' who think they are real programmers, right?

    Grow up, kid. C# brings real type safety to the table + GC, which virtually eliminates the crap which bugs (pun intended) C++ code up till today and tomorrow. C++ is nice, but for most projects, it's just a language which requires too much overhead, too much typing (on the keyboard that is) and results in too complex code. Gee, Java and C# do a much better job in those areas. Limit yourself by choosing a language which holds you back in productivity, I don't care, nor do your competitors.

    --
    Never underestimate the relief of true separation of Religion and State.
  62. free by GCP · · Score: 2

    I said it was free, and it is. It costs no more than the JDK, which is to say: nothing. That "if you already paid for Windows" stuff is silly. I already said that when Java was at this stage, I had to buy a whole PC to use it because the Mac version was hopelessly behind Windows (and the Linux version nonexistent.)

    And what's this about source? Go ahead. Take that Java source, fork Java and see what happens to you. And where is the source for that darned javac? I can't seem to find it. I need it because I'd like to create a new dialect of the Java language to sell to scientific developers. Hmm.

    If you want to customize a Java-like language without getting sued, start with ECMA C#.

    --
    "Those who have never entered upon scientific pursuits know not a tithe of the poetry by which they are surrounded."
  63. Microsoft Press books are generally good by strobert · · Score: 2

    The review seems surprised that the book was very honest about C#. back in previous times of my career (when I did win16 and then later win32 C++ programming) all of the Microsoft Press books I bought and read were of good quality. And they included healthy criticisms of parts of the technologies that weren't so great.

    In spite of Microsoft Press sharing the name with the company they have generally published books that are fair in their dealings with Microsoft technologies.

  64. Much better review by Martin+Spamer · · Score: 2


    A Comparative Overview of C# [genamics.com] is blatant astroturfing from C# book author. The genamics.com review is riddled with problems, the author has ignored constructive feedback on the article, has a poor appreciation of OO and is inconsistency in his comparison. He also has a history of Atroturfing the forums.java.sun.com in support of C#.

    IMHO this is a much higher quality comparative review.