Is C# really better in this respect?

Yes

C# can be blazingly fast and the garbage-collector functions in a well-documented, predictable manner. Coming from Perl it worked (almost) as I would expect it to. When an object goes out of scope or has no more dangling references, it is elligible for garbage-collection.

No

This is WINDOWS we're talking about. If it were a car you purchased from Microsoft, it would come without locks on the doors, and the nice Michelin tires would only be yours for the first 60 days. Locks would cost extra and cause your car to be incapable of driving faster than 45 miles per hour. The same company that produces the locks would also be paying car thieves to break into cars while you're not looking.

Memory management is just not something I could consider Windows to be particularly good at. However, from my experience running BEA WebLogic (Java) instances on Windows and running fairly complex ASP.Net applications on Windows, I can say with confidence that the Java apps took about 5x more RAM and CPU than the .Net ones, and were more difficult to deploy, update, code and debug. The ASP.Net ones were fairly easy to manage and code, and ran much faster than the Java apps.

The ASP.Net apps became extremely slow when the ViewState contained too much stuff. Using ASP.Net MVC instead of the bizarre "event-based" ASP.Net (the default thing where you assign actions to the buttons that users click, etc) sped things up considerably.

.Net is definitely not my favorite thing in the world, but given the choice between doing the job in .Net and not doing it at all, I will choose .Net every time.


In reply to Re^4: Perl and C# - how I use both by jdrago_999
in thread Perl and C# - how I use both by jdrago_999

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.