Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #2667
| From | "BartC" <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.programming |
| References | <150e1c64-726a-43cc-82f9-a52c81a2e8ce@googlegroups.com> <o0omd8184k13mdl5j9d2pn0eta2a112hik@4ax.com> <N5KCs.693987$nB6.448936@fx21.am4> <cdcqd8htmmdm7l81imb6c3mn8cl33jcbj0@4ax.com> |
| Subject | Re: programmer's keyboard |
| Message-ID | <EphDs.952759$W63.92055@fx05.am4> (permalink) |
| Organization | virginmedia.com |
| Date | 2012-12-28 13:46 +0000 |
"Robert Wessel" <robertwessel2@yahoo.com> wrote in message
news:cdcqd8htmmdm7l81imb6c3mn8cl33jcbj0@4ax.com...
> On Wed, 26 Dec 2012 21:36:36 -0000, "BartC" <bc@freeuk.com> wrote:
>>If your programming style is by trial and error, eg. with a rapid
>>development language, then languages that need a lot of fussy punctuation
>>can really slow you down.
> I think many people would question such a programming style. Trying
> things randomly until something works is usually not a good way to
> write reliable code.
Do you never write experimental code? Or have code which doesn't work as
expected and you have to try several different approaches? Or have an
elusive bug and have to put in temporary debug code in lots of different
places?
(And I also like writing temporary code such as that in capitals. You can't
do that in a case-sensitive language (without creating duplicate upper-case
versions of keywords and identifiers).)
>>You shouldn't need to cross all the Ts and dot all the Is for a piece of
>>code that might be replaced by something else a few minutes later.
>
>
> Some attention to detail is expected in this profession.
Well, it reduces productivity. If I'm writing in C, and want to quickly
print out some data structure I've just filled in to make sure it's worked
properly, I might have to write something like this:
int i;
for (i=0; i<sizeof(A)/sizeof(A[0]); ++i)
printf("%d: (%s %f %i)\n",i,A[i].s,A[i].f,A[i].i);
with a dozen things that have to be 'just so'. In another language, I might
just write:
println A
Once the data is verified, there is no longer any need for those 10
parentheses, 8 square brackets, 4 percentage sizes, commas, etc or having to
write 'i' 7 times, etc. It's all wasted effort.
(OK, if you do need to write at the level of C, you might expect to have to
spell things out more. But I have a language that *is* at the same level as
C, and that same code would use less than half the number of punctuation
characters to express the same thing. Some languages are just too 'busy'
with their syntax.)
--
Bartc
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
programmer's keyboard bob <bob@coolfone.comze.com> - 2012-12-26 11:45 -0800
Re: programmer's keyboard Robert Wessel <robertwessel2@yahoo.com> - 2012-12-26 15:01 -0600
Re: programmer's keyboard "BartC" <bc@freeuk.com> - 2012-12-26 21:36 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-26 21:12 -0600
Re: programmer's keyboard Robert Wessel <robertwessel2@yahoo.com> - 2012-12-27 23:45 -0600
Re: programmer's keyboard "BartC" <bc@freeuk.com> - 2012-12-28 13:46 +0000
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2012-12-29 11:42 +1300
Re: programmer's keyboard "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-12-29 15:15 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-29 14:41 -0600
Re: programmer's keyboard "BartC" <bc@freeuk.com> - 2012-12-29 21:10 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-29 15:26 -0600
Re: programmer's keyboard "BartC" <bc@freeuk.com> - 2012-12-29 22:41 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 02:12 -0600
Re: programmer's keyboard "BartC" <bc@freeuk.com> - 2012-12-30 11:20 +0000
Re: programmer's keyboard malcolm.mclean5@btinternet.com - 2012-12-30 10:19 -0800
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 14:51 -0600
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2012-12-30 10:43 +1300
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 01:55 -0600
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2012-12-30 21:06 +1300
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 02:35 -0600
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2012-12-30 18:12 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 13:30 -0600
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2012-12-31 09:36 +1300
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 17:27 -0600
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2012-12-31 13:00 +1300
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-31 03:13 -0600
version control (was: Re: programmer's keyboard) rugxulo@gmail.com - 2012-12-31 10:36 -0800
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2013-01-01 09:05 +1300
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-31 16:58 -0600
Re: programmer's keyboard Ian Collins <ian-news@hotmail.com> - 2013-01-01 13:24 +1300
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2013-01-02 12:23 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2013-01-02 14:34 -0600
Re: programmer's keyboard Robert Wessel <robertwessel2@yahoo.com> - 2013-01-02 15:35 -0600
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2013-01-03 13:19 -0600
Re: programmer's keyboard Willem <willem@turtle.stack.nl> - 2013-01-03 08:35 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2013-01-03 13:46 -0600
Re: programmer's keyboard rugxulo@gmail.com - 2013-01-03 00:52 -0800
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2013-01-03 15:00 +0000
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2013-01-02 11:58 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2013-01-02 15:03 -0600
Re: programmer's keyboard rugxulo@gmail.com - 2013-01-03 00:54 -0800
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2013-01-03 13:06 -0600
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2012-12-30 18:04 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-30 14:24 -0600
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2013-01-02 11:34 +0000
Writing Experimental Code "Aaron W. Hsu" <arcfide@sacrideo.us> - 2013-01-02 15:08 -0600
Re: programmer's keyboard Rui Maciel <rui.maciel@gmail.com> - 2012-12-28 11:45 +0000
Re: programmer's keyboard BGB <cr88192@hotmail.com> - 2012-12-28 12:29 -0600
csiph-web