doug1001
Joined 14 years ago
Joined 14 years ago
>I’m not from the South and don’t talk as if I were. Most telling, and the other guys can sense this somehow, I do not for a moment think I’m a symbol of some bygone ideal of Wild West American freedom or any other half-mythic, half-menacing nugget of folk nonsense.
"Some Dart users really dig a functional style and appear to be playing a game where whoever crams the most work before a single semicolon wins."
sort of the Dave Eggers of software engineering
i am
fire up the redis server--you'll see some ascii art there
i suspect that, to capture the full value of J, one needs to already know the array-oriented paradigm (or at least have a strong motivation to learn the two in parallel)
knowing the AOP paradigm also helps understand the programming patterns as well as the syntax
still, the dense syntax has extraordinary power
for instance, n-queens in J (from Rosetta Code) is just 4 short lines:
perm =: ! A.&i. ]
comb2 =: (, #: I.@,@(</)&i.)~
mask =: [ */@:~:&(|@-/) {
queenst=: comb2 (] #"1~ mask)&.|: perm
a fundamental AOP patterns is evidenced here:line 1: create the 2D array (n x n chessboard)
line 2: populate the array with candidate solutions
line 3: eliminate invalid solutions ('mask' them)