Re: D gets it right

From: David Turner (david_at_firepro.co.za)
Date: 02/13/04

  • Next message: David Turner: "Re: D gets it right"
    Date: Fri, 13 Feb 2004 09:01:25 +0200
    
    

    Hi

    > There's no way to enforce good behavior in any language. A determined
    > asshat can produce bad code regardless of the language's "defenses".

    I agree that it is possible, in principle, to violate any constraint place
    upon you by a language/system. However, the more difficult this is, the
    less likely it is to occur. I humbly suggest that it's far more difficult
    to leak a resource that can only be accessed through a scoped sentry object
    (which guarantees cleanup), than it is to forget a "finally {
    resource.release(); }" block.

    > But your point was that Java is incapable of managing resources, and to
    > "prove" that point you used broken examples in .NET and Java that would

    Careful. I never said it was "incapable" of managing resources. I said it
    provided fewer tools to do so than C++. This is a statement of fact, not an
    opinion.

    > The technique works reliably, is well documented, and makes the flow
    > of control obvious. It's not a problem, except to people with an agenda
    > and a weak grasp of the facts.

    Au contraire. It IS a problem, and a very serious one. I myself have taken
    financial damage from resource leaks in the Java-based internet banking site
    that I use. Perhaps that means I have an agenda - fair enough. But I think
    the accusation that I have a weak grasp of the facts is unfounded.

    Regards
    David Turner


  • Next message: David Turner: "Re: D gets it right"

    Relevant Pages

    • Re: D gets it right
      ... >> and a weak grasp of the facts. ... releasing memory properly using good old free, ... except to people with an agenda and a weak ...
      (comp.programming)
    • Re: Kilimanjaro ice cap disappearing
      ... was based on science and facts. ... funded by the oil industry. ... Global Green Agenda. ... experienced a major shift in the priorities of both governments and ...
      (rec.gambling.poker)
    • Re: EXXONMOBIL CONTINUES TO FUND GLOBAL WARMING DENIERS
      ... You never give a goddamn about the facts. ... it's silly to accuse him of trying to advance an agenda. ... That's because you're a shithead. ... community, stuff that convinces people qualified to evaluate it, I am MORE ...
      (rec.gambling.poker)
    • Re: Yknow what I wish about RGP?
      ... You have no idea what the facts are. ... Pepe. ... will ever change you "unbiased" mind. ... you cling to your political agenda, or religious agenda, or socio-economic ...
      (rec.gambling.poker)
    • Re: Runaway Global Warming Possible!
      ... and the power of the entire intelligence community 'just got it wrong'. ... administration agenda, rather than provide objective facts. ... For any evidence of Bush having told the truth as he knew it rather than ...
      (sci.geo.geology)