Great work, very impressed with the library. Can see it being very
useful for us.
There's just one thing I think that's missing:
@DoNotTouch(
withoutConsulting = "er...@example.com",
onPainOf = TORTURE)
public void adjustEndOfMonthBalances(
...
with the corresponding
public enum TamperingConsequences {
DEATH,
TORTURE,
SPANKING,
PAY_CUT,
SILENT_TREATMENT,
DIRTY_LOOK,
SWABBING_THE_POOP_DECK
}
I think we can all agree how valuable this could be for those really
delicate parts of the code which need to be protected at all costs.
Cheers, and keep up the good work,
Paul
On Apr 1, 12:23 pm, Paul Cowan <p...@mailcow.com> wrote:
> G'day all,
>
> Great work, very impressed with the library. Can see it being very
> useful for us.
>
> There's just one thing I think that's missing:
>
> @DoNotTouch(
> withoutConsulting = "e...@example.com",
--
To unsubscribe, reply using "remove me" as the subject.
I'd love you to. I hereby assign all copyright, my soul, and my
firstborn to Google Inc etc etc, whatever you need.
Another possibility, for those particularly brilliant bits of code:
@FlashOfInspiration(location=TRAFFIC_JAM)
public int perfectHash(Object o) {
....
public enum InspirationLocation {
BED,
BORING_MEETING,
TRAFFIC_JAM,
GYM_WORKOUT,
SHOWER,
BATH,
TOILET
}
(Maybe this doesn't need a separate annotation; it could also work just
as an 'inspirationLocation' attribute on, say, @Magic).
Cheers,
Paul
Paul
That's been supported by javadoc tags since before there even were
code annotations
@see <a href="data:image/jpeg;base64,abcd...">camera-phone snap of napkin</a>
@see napkin in left pocket of the jacket that has the widgy collar
that won't stay down
> Cheers,
Yeah, I like it. I was actually toying with 'HandsOff' initially. Just
wasn't sure it worked as well with the attributes (withoutConsulting
and onPainOf).
But yeah, I agree it's a bit more snappy.
Paul
Paul
Thanks for the suggestions, good stuff. Let me know if mods are
warranted.
On Apr 3, 7:50 am, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:
> I like it!
>
> Jörn
>
>
>
> On Fri, Apr 2, 2010 at 6:17 PM, Leo Deegan <leodee...@google.com> wrote:
> > Brilliant. I think what would be funny is if the enum had only one value
> > (HAMMERTIME) and @CantTouchThis required that enum with no default.
>
> > On Fri, Apr 2, 2010 at 6:30 AM, Jörn Zaefferer <
> > joern.zaeffe...@googlemail.com> wrote:
>
> >> How about @CantTouchThis(HAMMERTIME)
>
> >> On Fri, Apr 2, 2010 at 12:00 AM, Leo Deegan <leodee...@google.com> wrote:
> >> > @Cowan - Cool, I'll take a stab at it and see if I can make the
> >> attributes
> >> > as cohesive as possible with the annotation.
> >> > @Mike - was that tongue-in-cheek or was that really the original intent
> >> of
> >> > @see :P
>