A Cycling & bikes forum. CycleBanter.com

Go Back   Home » CycleBanter.com forum » rec.bicycles » General
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Trying to give up computer



 
 
Thread Tools Display Modes
  #21  
Old September 4th 03, 02:13 AM
Mike Kruger
external usenet poster
 
Posts: n/a
Default Trying to give up computer

"Dan Cosley" wrote in message
...

How many of you have ridden with a computer and then decided to
get rid of it? Do you miss it?

Do people use computers in nontraditional ways? For example,
taping over the display or mounting upside down so it's way
inconvenient to read while riding but you can get cumulative
stats, etc?

On my last tour, the way I folded the map into the map case usually obscured
the computer.

I found that it was more fun not to have the temptation to see how fast
(i.e. slowly) I was going up a hill, or how far I'd gone since the last time
I looked. I purposely left the map case there on the day when I was coming
home and knew the route very well.

Still, it was nice to be able to see how far I'd gone at the end of the day,
and nice to know how far I've gone in a year. The computer is also nice if
you are doing some exercise, and want to average at least X speed over Y
time.


Ads
  #22  
Old September 4th 03, 03:26 AM
bb
external usenet poster
 
Posts: n/a
Default Trying to give up computer


Me too!
I dumped the numbers and ride like I did 45 years ago...for transportation
and for fun.
bb

"Scott" wrote in message
...
Now that I am used to not having the computer, it is nice. I no longer
train; I simply enjoy the rides.


  #23  
Old September 4th 03, 08:02 PM
David Reuteler
external usenet poster
 
Posts: n/a
Default Trying to give up computer

Michael wrote:
: Yup. However, "*tested* lines of code" is a good measure. It's one I
: used in a former life.

yea, that's exactly why i switched from k&r style braces. each one of those
adds up, ya know.

and each & every one tests just great!

ahh, metrics.
--
david reuteler

  #24  
Old September 5th 03, 12:29 PM
Rick Onanian
external usenet poster
 
Posts: n/a
Default OT: Programming was: Trying to give up computer

On 04 Sep 2003 19:02:01 GMT, David Reuteler wrote:
: Yup. However, "*tested* lines of code" is a good measure. It's one I

yea, that's exactly why i switched from k&r style braces. each one of


I'm a relatively new C programmer. Care to elaborate?
What can you switch to, and why?

those adds up, ya know.


Each brace set adds up? Okay, I'll beleive that.

and each & every one tests just great!

ahh, metrics.


Huh?

Huh?

G

FWIW, I've programmed bash scripts for longer than C,
and I must say...the C++ course I've been taking has
been relatively easy for me.

--
Rick Onanian
  #25  
Old September 5th 03, 05:52 PM
David Reuteler
external usenet poster
 
Posts: n/a
Default OT: Programming was: Trying to give up computer

Rick Onanian wrote:
: I'm a relatively new C programmer. Care to elaborate?
: What can you switch to, and why?

: FWIW, I've programmed bash scripts for longer than C,
: and I must say...the C++ course I've been taking has
: been relatively easy for me.

k&r (as in kernighan & ritchie who helped invent C) ..

ahh, this is all gonna seem so banal. it's one of those religious wars (emacs
vs vi, linux vs bsd, etc) but they originally supported a coding style wrt
braces (for all time refered to as k&r style braces) of ..

if (condition) {
statement;
statement;
}

ahhh, very nice. but if some bureaucrat is sitting over your shoulder doing
metrics (all sorts of nice programs that measure not just code length but
especially complexity) on your code and using it to calculcate your quarterly
bonus (this was in the old days. naturally no one gets bonuses now except
for a paycheck) you might (as i did) wonder why you're throwing away all
those extra lines *ESPECIALLY* when there's a compellingly snooty logic behind
switching over to .. BSD style braces

if (condition)
{
statement;
statement;
}

miss it? pulled the first brace down and bought you an extra line. works
especially well on if then elses where 8 lines for BSD style ..

if (condition)
{
foo;
}
else
{
bar;
}

compresses to 5 lines ..

if (condition) {
foo;
} else {
bar;
}

i'm a convert anyhow, i believe the BSD style is a lot more readable (that's
the compelling snooty reason).

trinaries (as in perl) are deadly .. why do:

$foo = $condition ? 1 : 2;

when you can do ..

if($condition)
{
$foo = 1;
}
else
{
$bar = 2;
}

C is a great language. she's the bitch goddess. all things UNIX come from
her. i really love to write in C but don't get to do it nearly as much
anymore.

as a further aside, line counters were a great boon for perl readability.
previously most perl programmers were really into compressing their 500 line
scripts into 20 lines of unreadable regex. furthermore if you use
"use strict" and declare all your variables who knows how many lines that'll
add PLUS it'll actually be better coding to do so.

$_ and not having "use strict" be a default are enough reasons to draw and
quarter larry wall.

but i digress.
--
david reuteler

  #26  
Old September 5th 03, 11:14 PM
Rick Onanian
external usenet poster
 
Posts: n/a
Default OT: Programming was: Trying to give up computer

On 05 Sep 2003 16:52:32 GMT, David Reuteler wrote:
k&r (as in kernighan & ritchie who helped invent C) ..


Yup, familiar with that term anyway, have the book, etc.

ahh, this is all gonna seem so banal. it's one of those religious wars
vs vi, linux vs bsd, etc) but they originally supported a coding style
wrt braces (for all time refered to as k&r style braces) of ..


if (condition) {
}


if (condition)
{
}


The second way, with the brace on a new line, is how
it is taught in the class I'm taking. I went in with
the habit of cramming everything possible on one line,
but have since gotten a feel for the reasons to put
everything on seperate lines.

With the braces, I especially like having the opening
and closing brace line up vertically with each other,
something that you can't efficiently do if the opening
brace comes in at character 40...

trinaries (as in perl) are deadly .. why do:
$foo = $condition ? 1 : 2;

when you can do ..

if($condition)
{
$foo = 1;
}
else
{
$bar = 2;
}


I like the ?: operator; it makes things simpler
and more readable *in_some_situations*. It's not
a good replacement for if-else at all, but it's
great for output statements and such.

Of course, both issues, {} and ?:, I would see
differently if I was paid by the line...

C is a great language. she's the bitch goddess. all things UNIX come
her. i really love to write in C but don't get to do it nearly as much
anymore.


My Linux and BSD experience has really helped me
learn C. I suppose if I had learned C first, I'd
have had an easier time in *nix.

as a further aside, line counters were a great boon for perl readability.


I should learn perl soon. That would be a good idea.

previously most perl programmers were really into compressing their 500
line
scripts into 20 lines of unreadable regex. furthermore if you use


Ever see the Obfuscated C code contest?

but i digress.


No!@ We must fill the group with off-topic stuff!

Bicyclists should be in comp.programmers.c or some such!

--
Rick Onanian
  #27  
Old September 5th 03, 11:22 PM
David Reuteler
external usenet poster
 
Posts: n/a
Default OT: Programming was: Trying to give up computer

Rick Onanian wrote:
: My Linux and BSD experience has really helped me
: learn C. I suppose if I had learned C first, I'd
: have had an easier time in *nix.

probably not. but you'd appreciate it a lot more. my god, how they wrote
an entire OS with it!

: Ever see the Obfuscated C code contest?

you'd like perl. it's an awful lot like obfuscated C.
--
david reuteler

  #28  
Old September 6th 03, 11:08 PM
Michael
external usenet poster
 
Posts: n/a
Default Trying to give up computer



David Reuteler wrote:

Michael wrote:
: Yup. However, "*tested* lines of code" is a good measure. It's one I
: used in a former life.

yea, that's exactly why i switched from k&r style braces. each one of those
adds up, ya know.

and each & every one tests just great!

ahh, metrics.
--
david reuteler




(sigh) ... Yet another reason to avoid C that I hadn't considered.
Added it to my list. Tnx. :-)
  #29  
Old September 8th 03, 10:24 PM
external usenet poster
 
Posts: n/a
Default OT: Programming

David Reuteler wrote:
: Rick Onanian wrote:
: : My Linux and BSD experience has really helped me
: : learn C. I suppose if I had learned C first, I'd
: : have had an easier time in *nix.

: probably not. but you'd appreciate it a lot more.

Second that. C since about '89, unix only from '93...

Historically, C and Unix go hand in hand...

: my god, how they wrote
: an entire OS with it!

Try writing it in some other language than C? =)

Back to on-topic: anybody wrote cycling software in C?

--
Risto Varanka | http://www.helsinki.fi/~rvaranka/hpv/hpv.html
varis at no spam please iki fi
  #30  
Old September 8th 03, 10:30 PM
Bill Davidson
external usenet poster
 
Posts: n/a
Default OT: Programming was: Trying to give up computer

David Reuteler wrote:
k&r (as in kernighan & ritchie who helped invent C) ..


Dennis Ritchie invented C. He helped invent UNIX with Ken Thompson.
C was invented for the purpose of writing operating systems; specifically
UNIX.

--Bill Davidson
--
Please remove ".nospam" from my address for email replies.

I'm a 17 year veteran of usenet -- you'd think I'd be over it by now

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti-cycling House bill Laura Bush General 117 July 31st 03 02:18 AM
Survey : Weight vs. battery life for bike computer? Doug General 7 July 14th 03 04:28 PM


All times are GMT +1. The time now is 07:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 CycleBanter.com.
The comments are property of their posters.