[Jprogramming] tacit programming
Sherlock, Ric
R.G.Sherlock at massey.ac.nz
Tue Nov 16 02:41:30 HKT 2010
It isn't hard to parse, but I can't say I find it easy to read. I think that is because it has several irrelevant steps that make me wonder what it is trying to do. I think the following are equivalent and easier to read (for me)
[: +/ (({.&.":)&>@p:@i.
or
+/@(({.&.":)&>@p:@i.)
Please excuse typos; composed on a handheld device.
-----Original Message-----
From: Björn Helgason <gosinn at gmail.com>
Sent: Tuesday, 16 November 2010 04:39
To: Programming forum <programming at jsoftware.com>
Subject: [Jprogramming] tacit programming
It would be interesting to know how many J ers can easily read tacit
programs.
A line like
[: +/ [: > [: ".&.> [: [ [: {.&.> [: [ [: ":&.>@p: i.
This is something I am not too comfortable to read nor write just like that
even if I do know what it is supposed to do.
Question is if people see it as a better way to program like this tacitly
than just do it in more lines and easily understood steps?
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: gosinn at gmail.com
gsm: +3546985532
sími: +3544781286
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list