Re: [Jprogramming] Feedback on beginner's code

2016-03-21 Thread Alex Shroyer
Fellow newbie here. If you're not already, I recommend using Voc and NuVoc at the same time. NuVoc provides a nice overview or reminder, while Voc has more depth. I find it useful to acquire a few new

Re: [Jprogramming] Feedback on beginner's code

2016-03-14 Thread Henry Rich
Again, smaller sub-units help to avoid such accidents: sort =: /:~ de_space =: -.&' ' normalize =: de_space@sort@tolower isAnagramOf =: -: Almost every time, these tiny sub-units provide something useful even beyond of the current context ("anagrams"). They are

Re: [Jprogramming] Feedback on beginner's code

2016-03-14 Thread neitzel
> As a fellow beginner (learning for well over a year, on and off), I'll > show a way I would do it: > isAnagramOf =: -:&:(-.&' '@:/:~@:tolower) I'd like to add some advice for J newbies: During the first two months (perhaps even two years, or two decades), resist any urge to put

Re: [Jprogramming] Feedback on beginner's code

2016-03-14 Thread Jose Mario Quintana
the "Brief J Reference" really helpful: > > http://www.jsoftware.com/books/pdf/brief.pdf > > Especially pages 17 and 18, which give a great overview (in diagram form) > of J's conjunctions, forks and hooks, without discussing rank, which of > course is importa

Re: [Jprogramming] Feedback on beginner's code

2016-03-14 Thread R.E. Boss
> -Original Message- > From: Programming [mailto:programming-boun...@forums.jsoftware.com] > On Behalf Of 'Jon Hough' via Programming (...) > On top of JForC and Roger Stokes' book, and of course the Dictionary and > Nuvoc, I found the "Brief J Reference" really helpful: > >

Re: [Jprogramming] Feedback on beginner's code

2016-03-14 Thread Adam Tornhill
Mon, 3/14/16, Adam Tornhill <a...@adamtornhill.com> wrote: Subject: [Jprogramming] Feedback on beginner's code To: "programm...@jsoftware.com" <programm...@jsoftware.com> Date: Monday, March 14, 2016, 12:21 AM Hi all, I finally decided to try to understand this fascinating

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread 'Jon Hough' via Programming
click. Regards, Jon On Mon, 3/14/16, Adam Tornhill <a...@adamtornhill.com> wrote: Subject: [Jprogramming] Feedback on beginner's code To: "programm...@jsoftware.com" <programm...@jsoftware.com> Date: Monday, March 14, 2016, 12:21 AM Hi

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread Louis de Forcrand
Nice first program. I'm afraid pretty much all that there was to say about it has been said already, so all I'll add is my personal preferences for documentation. I skimmed through several of the included books, before settling on the actual Dictionary introduction. This is probably just

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread Marshall Lochbaum
Although it's perhaps not as important early on as Henry's excellent advice, I would like to advocate for good use of whitespace and grouping in J programming. Putting less space around parts which are evaluated first (generally adverbs) and more around those which are evaluated last makes it a

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread Henry Rich
I agree with what Raul says (and I know it works, too, because he was my main teacher as I was learning J). The J Dictionary is brief and brilliant; if you're committed to learning all of J you might want to start there; but some readers are reminded of what Macaulay said about Seneca, that

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread Raul Miller
My tip would be: dip into the language each day - try to find something fun and interesting, of course, but a half hour a day over the course of a week will often do more for you than an intense 4 hour session. (Those intense 4 hour sessions, or longer, can be fun, but I would let them happen

Re: [Jprogramming] Feedback on beginner's code

2016-03-13 Thread Henry Rich
Wow, that's amazing for a first program. You'll go far with this language. There are easier ways to do what you did: (' ' & i.#]) removes spaces. Easier is -.&' ' (*/)@(=&(...)) will cause trouble if the left and right arguments have different length, which is why you had to discard that

[Jprogramming] Feedback on beginner's code

2016-03-13 Thread Adam Tornhill
Hi all, I finally decided to try to understand this fascinating language. So far I've spent some evenings reading and experimenting with the language. J is fun. Real fun. I also like how J forces me to re-consider how I view programming. Of course, that also means I'm still at a complete