>Assume that the fast path is a single expression, and the slow path
> is at least tens of lines of code. Why would you pick one style over
> the other?
I wouldn't use either of the above.
Style A has multiple returns from the function. That's one of those things
that's just fine right up un
Hi
When looking at this I thought in terms of C and how it would code in
assembly. I also considered how easy and quick it would be to do jmp
instructions. On a slow Z80 it may make a difference on a superfast modern
machine would the difference be noticeable?
Considering this Style B is fa
Hi
Try smplayer. This remembers the position you stopped and will will restart
from that position.
John Eayrs
On Sunday 07 June 2009 15:11:50 Sean Gibbins wrote:
> Hi Folks,
>
> Well OT I know, but I am always astounded by the depth and breadth of
> knowledge on the list, so you are my first p
On Sunday 07 June 2009 21:39:44 James Courtier-Dutton wrote:
> I would aim for a function to have a single entry point and a single
> exit point with goto's used on the error paths. I.e. the Linux kernel
> style.
I tend to aim for a single exit point as well, with the caveat that
readability trump
2009/6/7 Hugo Mills :
> If you were writing a function with a fast path and a slow path,
> which style would you use to write the function?
>
>
> Style A:
>
> if can_use_fast_path:
> return "fast path result"
> # do slow stuff
> return "slow path result"
>
>
> Style B:
>
> result = "fast p
2009/6/7 The Holy ettlz :
> On Sun, 2009-06-07 at 20:34 +0100, Hugo Mills wrote:
>> >
>> > Hmm. I'd choose Style A since with Style B there's a chance I'd have to
>> > discard one result and evaluate three things. Unless there's some
>> > parallel funny-stuff... what's the probability of can_use_fa
To me, Style A is much clearer and more logical. Style B is favoured by
those who prefer obfuscated code. Just my opinion, of course...
Perhaps more importantly, there is presumably a reason why, in some cases,
the fast path result cannot be used. Therefore the first line in Style B
will result in
Hi,
I'm not sure of the Bournemouth train comes this way but my experience with
Vodafone from Farnborough to Clapham Junction has been pretty poor.
I've asked a couple of people on different networks (Three and O2) on the train
how those work for them as I'm interested in a dongle. Both replie
On Sun, 2009-06-07 at 20:34 +0100, Hugo Mills wrote:
> >
> > Hmm. I'd choose Style A since with Style B there's a chance I'd have to
> > discard one result and evaluate three things. Unless there's some
> > parallel funny-stuff... what's the probability of can_use_fast_path?
>
>*shrug* Who kn
On Sun, Jun 07, 2009 at 08:30:23PM +0100, The Holy ettlz wrote:
> > > > Style A:
> > > >
> > > > if can_use_fast_path:
> > > > return "fast path result"
> > > > # do slow stuff
> > > > return "slow path result"
> > > >
> > > >
> > > > Style B:
> > > >
> > > > result = "fast path result"
> > > Style A:
> > >
> > > if can_use_fast_path:
> > > return "fast path result"
> > > # do slow stuff
> > > return "slow path result"
> > >
> > >
> > > Style B:
> > >
> > > result = "fast path result"
> > > if !can_use_fast_path:
> > > # do slow stuff
> > > result = "slow path result"
>
On Sun, Jun 07, 2009 at 08:16:34PM +0100, The Holy ettlz wrote:
> On Sun, 2009-06-07 at 20:01 +0100, Hugo Mills wrote:
> > If you were writing a function with a fast path and a slow path,
> > which style would you use to write the function?
> >
> >
> > Style A:
> >
> > if can_use_fast_path:
> >
On Sun, 2009-06-07 at 20:01 +0100, Hugo Mills wrote:
> If you were writing a function with a fast path and a slow path,
> which style would you use to write the function?
>
>
> Style A:
>
> if can_use_fast_path:
> return "fast path result"
> # do slow stuff
> return "slow path result"
>
>
If you were writing a function with a fast path and a slow path,
which style would you use to write the function?
Style A:
if can_use_fast_path:
return "fast path result"
# do slow stuff
return "slow path result"
Style B:
result = "fast path result"
if !can_use_fast_path:
#
On Mon, 1 Jun 2009, Victor Churchill wrote:
> That's putting it very mildly... the 3connect gadget or whatever it is that
> does the Windows connection is ghastly (that's when my wife uses it on her
> laptop, you understand).
Personally I've not had any issues with it, seems to work fine for me
2009/6/6 Hugo Mills :
> On Sat, Jun 06, 2009 at 10:47:31PM +, Nick Chalk wrote:
>> Hugo Mills wrote:
>> > Only in this case, it isn't. It's showing the
>> > maximum protocol speed, not the (likely) data
>> > rate between the modem and the exchange,
>> > which is generally the limiting factor.
Rob Malpass wrote:
> 2) Is there a way I can scroll around my own desktop if this sort of thing
> happens again? To be clear, what has happened here is that, running in the
> 14 point font which I must observe with my eyes, the window is bigger than
> the desktop. Desktop is 1024x768 so what
- Original Message -
From: "Sean Gibbins"
To: "Hampshire LUG Discussion List"
Sent: Sunday, June 07, 2009 4:47 PM
Subject: Re: [Hampshire] Legal DVD ripping
> Rob Malpass wrote:
>> Hi all
>>
>> I'm trying to rip some DVDs I've burned myself so no worries about
>> legality or indeed co
Rob Malpass wrote:
> Hi all
>
> I'm trying to rip some DVDs I've burned myself so no worries about
> legality or indeed copy protection but having all sorts of trouble.
>
> All the googling I've done suggests k3b is best (on Hardy 64-bit).
> Trouble is - k3b just doesn't respond to the rip vi
Will Davies wrote:
> gully gaoler wrote:
>
>> portable looks good. i had a brief look at the RNIB site. they list a
>> portable player in their shop that has easy-to-use buttons and a
>> resume feature.
>>
>> http://onlineshop.rnib.org.uk
>>
>>
>> jack
>>
>>
> on the RNIB site they have
Hi all
I'm trying to rip some DVDs I've burned myself so no worries about legality or
indeed copy protection but having all sorts of trouble.
All the googling I've done suggests k3b is best (on Hardy 64-bit). Trouble is
- k3b just doesn't respond to the rip video dvd option. More googling t
gully gaoler wrote:
>
> portable looks good. i had a brief look at the RNIB site. they list a
> portable player in their shop that has easy-to-use buttons and a
> resume feature.
>
> http://onlineshop.rnib.org.uk
>
>
> jack
>
on the RNIB site they have a document that you can download for more
On Sun, Jun 7, 2009 at 3:34 PM, Anton Piatek wrote:
> 2009/6/7 Sean Gibbins :
>> Hi Folks,
>>
>> Well OT I know, but I am always astounded by the depth and breadth of
>> knowledge on the list, so you are my first port of call on this one.
>>
>> Essentially my father is totally blind and regularly r
2009/6/7 Sean Gibbins :
> Hi Folks,
>
> Well OT I know, but I am always astounded by the depth and breadth of
> knowledge on the list, so you are my first port of call on this one.
>
> Essentially my father is totally blind and regularly reads audio books.
> He prefers cassettes because of the ease
Hi Folks,
Well OT I know, but I am always astounded by the depth and breadth of
knowledge on the list, so you are my first port of call on this one.
Essentially my father is totally blind and regularly reads audio books.
He prefers cassettes because of the ease of operation of cassette decks
and
Chris. Aubrey-Smith wrote:
> I haven't used W*nd*ws for years, but I'm obliged to set up a machine for a
> friend who steadfastly refuses to use anything else.
I have learned to say that I now do not know that much about Windows,
because I have not used it now for years.
I found that Windows prob
26 matches
Mail list logo