andy.glew | 1 Aug 2003 01:13
Picon
Favicon

RE: Anyone heard about this study?

> I also listen to them [MP3s] on my 2 hours a day 
> commuting...

When I do my 20 minute car commute, I obviously
don't compute. Me, I listen to NPR or the BBC.

When I take the bus, as I did today
(1 hour on bus, + 40 minutes walking, plus wait time)
I use my tablet PC and, mainly, read and delete email,
although occasionally I compose email and/or write code.
Hard too write code on the bus when I am pairing strictly.

> I catch up on my sleep on weekends. Studies have show you 
> live longer if you do that.

Partly so... but the version I have heard (I believe on
NPR pop sci radio) is that it doesn't work out like that. 
You cannot make up for a sleep deficit through the weekend.
Some of the damage is irreversible.

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Asim Jalis | 1 Aug 2003 01:58
Favicon

Re: Anyone heard about this study?

On Thu, Jul 31, 2003 at 04:13:00PM -0700, andy.glew <at> amd.com
wrote:
> > I catch up on my sleep on weekends. Studies have show you
> > live longer if you do that.
> 
> Partly so... but the version I have heard (I believe on NPR pop
> sci radio) is that it doesn't work out like that. You cannot
> make up for a sleep deficit through the weekend. Some of the
> damage is irreversible.

Even if you don't live longer it might feel that way; your net
wakeful life might still be longer: hours awake per day * days
alive.

Asim

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Phlip | 1 Aug 2003 02:13
Favicon

Re: Anyone heard about this study?

> > > I catch up on my sleep on weekends. Studies have show you
> > > live longer if you do that.
> >
> > Partly so... but the version I have heard (I believe on NPR pop
> > sci radio) is that it doesn't work out like that. You cannot
> > make up for a sleep deficit through the weekend. Some of the
> > damage is irreversible.
>
> Even if you don't live longer it might feel that way; your net
> wakeful life might still be longer: hours awake per day * days
> alive.

Y'all are missing a detail: I don't do all-nighters, either, and I don't set
an alarm clock without a reason.

Sleep is SUCH a totally effective debugging and bug-preventing technique!

--
  Phlip
               http://www.c2.com/cgi/wiki?PhlIp
  --  Please state the nature of the programming emergency  --

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Kiel Hodges | 1 Aug 2003 03:05
Picon

Re: What's a another name for...?

--- In extremeprogramming <at> yahoogroups.com, Ron Jeffries 
<ronjeffries <at> X...> wrote:
> On Thursday, July 31, 2003, at 9:00:48 AM, Ron Jeffries wrote:
> 
> > In the second case, I use a language that permits me a better 
deal, as does
> > Ilja. However, if I had to use iterators, I would behave as 
if they were
> > mostly irrelevant, and would give them trivial names, still 
giving the
> > other objects application or usage-explaining names, perhaps 
like this:
> 
> >   Collection transactionsOverLimit;
> >   Iterator iter = transactionsOverLimit.iterator();
> >   while (iter.hasNext()) {
> >     Transaction overLimitTrans = (Transaction) iter.next();
> >     overLimitTrans.processLimitAction();
> >   }
> 

I have this pattern. The whole Iterator thing is noise. Using the 
same trivial name -- iter is a common choice -- makes it just a 
bit easier to ignore allowing you to focus on what's important.

> One addendum. If the same method had more than one iteration, 
especially
> nested, then I might give the iterators more meaningful names, 
such as
> accountIter and overLimitIter.
(Continue reading)

Kiel Hodges | 1 Aug 2003 03:18
Picon

Re: What's a another name for...?

--- In extremeprogramming <at> yahoogroups.com, Colin Putney 
<cputney <at> w...> wrote:
> 
> On Thursday, July 31, 2003, at 01:12  PM, Andrew Wall wrote:
> 
> > VB is slightly easier:
> >
> > Dim stuffs as Collection
> > ' lots of stuff
> > Dim stuf as Stuff
> > for each stuf in stuffs
> > 	stuf.doYourStuff
> > next
> 
> Sorry, but I just can't resist plugging languages with block 
closures.
> 
> Ruby:
> 
> # lots of stuff
> stuffs.each { | stuff | stuff.doYourStuff }
> 
> 
> Smalltalk:
> 
> "lots of stuff"
> stuffs do: [:stuff | stuff doYourStuff]
> 
> 
> I think for the Java case in the original post that I'd want to 
(Continue reading)

shinobu | 1 Aug 2003 05:41
Picon

Re: What's a another name for...?


Hi,

> > Collection accounts;
> > Iterator accountsIterator = accounts.iterator();
> > while (accountsIterator.hasNext()) {
> >     Account account = (Account) accountsIterator.next();
> >     account.adjust(); 
> > }
> 
> An interesting take on this by Ward Cunningham is to just give up
> on collections and iterators and use Lispish car/cdr instead.
> See:
> 
> http://fit.c2.com/wiki.cgi?ParsingTables
Hmm, I'm not any familiar with Lisp, but it this something like a list
structure?

Thanks a lot, all!

--

-- 
Shinobu Kawai <shinobu <at> ieee.org>

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
(Continue reading)

shinobu | 1 Aug 2003 05:41
Picon

Re: What's a another name for...?


Hi,

> Generally speaking I think that most often better encapsulation solves
> the naming problem (that is, the naming problem is in fact a smell
> indicating another design neglect).
Ooh, I think I see some refactoring coming...

> For the first example, the problem wouldn't exist if your design would
> allow you to write:
> 
> stuffs.forEach(new Block() {
>   public void do(Object each) {
>     ((Stuff)each).doYourStuff();
>   }
> }
Sorry, but it looks a bit messy to me.

> (In Smalltalk that looks much more pleasing...)
I hope it does. :)

> Or probably even better:
> 
> stuffs.doAllYourStuffs();
I like this one better, too.

> What do you think?
Java provides the Collection Framework, which I certainly don't want to
re-invent. 
I think this problem is going to turn into "when to introduce a new type".
(Continue reading)

shinobu | 1 Aug 2003 05:41
Picon

Re: What's a another name for...?


Hi,

> Well, first of all, examples like these work better if all the variables
> are given names that make sense to the application, or the immediate usage,
> not just names that reflect type. The declarations already tell us type:
> our variable names need to communicate purpose.
Oops... Concrete first, how could I forget?

> And in the second example, the phrase "String number" is just about enough
> to crack my brain as early in the morning as I first read it.
I hope at least it solved a "drowsy morning" problem. :)

>                                                               I might do
> something like this:
> 
>   String accountBalanceInput;
>   // set accountBalanceInput somehow;
>   int accountBalance = Integer.parseInt(accountBalanceInput);
This is nice. I like it.

> In the second case, I use a language that permits me a better deal, as does
> Ilja.
I guess it was only a Java issue...

>       However, if I had to use iterators, I would behave as if they were
> mostly irrelevant, and would give them trivial names, still giving the
> other objects application or usage-explaining names, perhaps like this:
> 
>   Collection transactionsOverLimit;
(Continue reading)

Chris Dollin | 1 Aug 2003 09:24
Picon

Re: Anyone heard about this study?

On Friday 01 August 2003 01:13, Phlip wrote:

> Y'all are missing a detail: I don't do all-nighters, either, and I don't
> set an alarm clock without a reason.
>
> Sleep is SUCH a totally effective debugging and bug-preventing technique!

And non-sleep such an effective bug-introduction and time-wasting tactic.
The referred-to-book says that one of the effects of sleep deprivation is
loss of judgement (experience says: oh yes) and, drat, forgot the term,
fixing/monomania/locking: you get stuck in a particular pattern and can't
get out (experience says: oh YES).

At home we're making a deliberate effort to take sufficient sleep. This
morning, for the first working day in quite a while, I woke before my
alarm. [Perhaps because Mr Cat didn't wake us at 4am "Purr! Purr! I
love you! Purr! Listen to me scratch the carpet! I'd like to go hunt now!
Purr!"]

--

-- 
Chris "electric hedgehog\\\\\\\\cat-victim" Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.c.html
C welcome: http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

(Continue reading)

Chris Dollin | 1 Aug 2003 09:26
Picon

Re: Re: What's a another name for...?

On Friday 01 August 2003 04:41, shinobu <at> ieee.org wrote:
> Hi,
>
> > > Collection accounts;
> > > Iterator accountsIterator = accounts.iterator();
> > > while (accountsIterator.hasNext()) {
> > >     Account account = (Account) accountsIterator.next();
> > >     account.adjust();
> > > }
> >
> > An interesting take on this by Ward Cunningham is to just give up
> > on collections and iterators and use Lispish car/cdr instead.
> > See:
> >
> > http://fit.c2.com/wiki.cgi?ParsingTables
>
> Hmm, I'm not any familiar with Lisp, but it this something like a list
> structure?

No - it's *exactly* like a list structure.

[Everyone should learn one of the Lispy languages. It's not the syntax:
it's the *semantics*.]

--

-- 
Chris "Pop11" Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.c.html
C welcome: http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html

To Post a message, send it to:   extremeprogramming <at> eGroups.com
(Continue reading)


Gmane