Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion JavaDoc and Comments

Received: by 10.216.84.129 with SMTP id s1mr1089106wee.2.1345583629221;
        Tue, 21 Aug 2012 14:13:49 -0700 (PDT)
X-BeenThere: javaposse@googlegroups.com
Received: by 10.216.212.2 with SMTP id x2ls1017871weo.2.gmail; Tue, 21 Aug
 2012 14:13:43 -0700 (PDT)
Received: by 10.181.11.234 with SMTP id el10mr1448wid.2.1345583623786;
        Tue, 21 Aug 2012 14:13:43 -0700 (PDT)
Received: by 10.181.11.234 with SMTP id el10mr1446wid.2.1345583623766;
        Tue, 21 Aug 2012 14:13:43 -0700 (PDT)
Return-Path: <ricky.clark...@gmail.com>
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173])
        by gmr-mx.google.com with ESMTPS id cx9si558829wib.0.2012.08.21.14.13.43
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 21 Aug 2012 14:13:43 -0700 (PDT)
Received-SPF: pass (google.com: domain of ricky.clark...@gmail.com designates 74.125.82.173 as permitted sender) client-ip=74.125.82.173;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ricky.clark...@gmail.com designates 74.125.82.173 as permitted sender) smtp.mail=ricky.clark...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-we0-f173.google.com with SMTP id z53so156704wey.4
        for <javaposse@googlegroups.com>; Tue, 21 Aug 2012 14:13:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=UdDGh51cJoPSFtitH02dr1yWG3qaUmBx9kl3WAXwbPs=;
        b=Uu4cDjF2tKKt9DR1mOX/qNpitve96LeUAx/xhdTk4geV+cpGVUQ/3GlAla0ovFISyc
         oUVaKhdsHt7wdfZdWSeUfF/nO5rmMBBylMxXg7ntr9J24rn4mSEZbhMqT5ZOOcxO5KjM
         Hm911hmOIIsdXA7vRG8ivNsHkUU2w5NJ0aPYyqL59bYwciLhFoNrerCzrWzTO4PNwkuc
         XyJvg54jVa8JUgBtzH/YOdxEuSXL7DCwnrEoSy1muEZhx5OO9ErU2huyemlOFhxRyo4v
         xEinApxmpWARFKgdQaMvy1gaQJY36znkDaM38cwDlL6IzaceMAOs1f2YcKXi78UgTRKX
         3zkw==
Received: by 10.180.84.104 with SMTP id x8mr39352945wiy.20.1345583623522; Tue,
 21 Aug 2012 14:13:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.162.149 with HTTP; Tue, 21 Aug 2012 14:13:23 -0700 (PDT)
In-Reply-To: <CAJ8m59AQRasSV6EhrM8JrVdC6CsiRp0bhwpT-7Mw-pbkYyW...@mail.gmail.com>
References: <180e8d3c-487b-4a12-9562-e5e8d665dbce@googlegroups.com>
 <4653a828-414c-4418-8153-13d7ef477b5d@googlegroups.com> <CAOBi2H-xFNfj1Uvh7Gj3PAVR3VRss=FD0kLCMwH-vR0XB1F...@mail.gmail.com>
 <CANhxj0VHSYAbhjXfNUH1WAJbATOPnSrgZLoiuaSA_mPg8aY...@mail.gmail.com>
 <CAOBi2H-OaoMnL27=k6An6_YQZvAd0-9Rj-2cTL=hB=4vOv3...@mail.gmail.com> <CAJ8m59AQRasSV6EhrM8JrVdC6CsiRp0bhwpT-7Mw-pbkYyW...@mail.gmail.com>
From: Ricky Clarkson <ricky.clark...@gmail.com>
Date: Tue, 21 Aug 2012 18:13:23 -0300
Message-ID: <CAOBi2H-Jmra9grVY3x+3gwcXFV959jN-u5dUbmSFN3iTwfF...@mail.gmail.com>
Subject: Re: [The Java Posse] JavaDoc and Comments
To: javaposse@googlegroups.com
Content-Type: text/plain; charset=UTF-8

In real world projects as opposed to toy ones(*), you do get
mismatching code and javadoc, and you can't assume that deleting and
rewriting the code is the right approach as you're not privvy to all
the decisions that went into it.  Your best bet is to assume the code
works and is correct until you find out the opposite, as chances are
it does work and is correct unless it's in an unused part of the
codebase or you're working on something that flat out doesn't work at
all.

(*) I'm not sure whether you're willy-waving there but it can
certainly be read as such.  /Your company must be tiny if you need to
willy-wave on newsgroups/ :)

On Tue, Aug 21, 2012 at 5:34 PM, Jon Kiparsky <jon.kipar...@gmail.com> wrote:
> I would generally assume that if the javadoc is incorrect, then the code if
> either too buggy or too unstable to use in anything but a toy project.
> Just my way off looking at it, your mileage may vary.
>
>
> On Tuesday, August 21, 2012, Ricky Clarkson <ricky.clark...@gmail.com>
> wrote:
>> I'd rather make a bold than a timid claim.
>>
>> I have better tools for navigating code than I do Javadoc, and if I'm
>> reading code I see the Javadoc too; code is the superset of
>> information.  When I want to investigate an API I tend to just open
>> the code in IDEA.  I might not happen to read any of it, just use
>> Ctrl-F12 and Ctrl-Q to see the information I need, but if I do need to
>> drill down I'm already in the right place.
>>
>> On Tue, Aug 21, 2012 at 3:44 PM, Jeb Beich <jebbe...@gmail.com> wrote:
>>>>>"And as a user of an api, would you rather read the code or the javadoc
>>>>> ?
>>>>> "
>>>
>>>>The code, in general.  It's more likely to be correct.  If the code looks
>>>> bad then the javadoc *might* clarify the intent but commit messages are
>>>> more
>>>> likely to be accurate assuming you don't have a 'Latest changes' guy on
>>>> the
>>>> team.
>>>
>>> That seems like a pretty bold claim to make in general. javadoc can be
>>> pretty useful for getting a bird's eye view of the big api, then zooming
>>> in
>>> to what you need. That's nice for a variety of reasons, such as comparing
>>> two similar libraries.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Java Posse" group.
>>> To post to this group, send email to javaposse@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> javaposse+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/javaposse?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Java Posse" group.
>> To post to this group, send email to javaposse@googlegroups.com.
>> To unsubscribe from this group, send email to
>> javaposse+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/javaposse?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To post to this group, send email to javaposse@googlegroups.com.
> To unsubscribe from this group, send email to
> javaposse+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.