How important is it, I wonder, is the precise structure of the whitespace?

Consider, for example:
   ~.":(1+i.9) (];'X';[;'=';*)&.>/2+i.4[9!:7' '#~11

Thanks,

-- 
Raul



On Sat, Apr 26, 2014 at 10:08 AM, June Kim (김창준) <[email protected]> wrote:

> There is a famous Korean drama, where the main character is a genius
> programmer leading a successful startup company. In one of the episodes:
>
> http://www.youtube.com/watch?v=clHOuZmqaZA
>
> The genius, while quickly typing at the keyboard, says,
>
> "Who wrote this code in ten lines? It could be enough with one line. It'll
> be hard to find errors. The program got heavier because the code is long.
> This is why our service isn't working well."
>
> Someone captured the moment when the code was shown.
>
> http://www.deculture.co.kr/wp-content/uploads/2014/04/1117287319_7addbe36.jpg
>
> It was a code for printing a multiplication table from table 2 to 5,
> horizontally placed. That was a kind of humor code from someone working at
> the TV channel.
>
> Result of the code should look like :
> http://www.deculture.co.kr/wp-content/uploads/2014/04/10line.jpg
>
> Someone wrote an article: http://www.deculture.co.kr/archives/1522
>
> And people gathered to suggest their own one-liners.
>
> So far the shortest seems to be in Ruby : (1..9).each{|d|(2..5).each{|i|
> print “%d * %d = %2d\t”%[i,d,d*i]}; puts}
>
> My version in J :
>
> >(,.&.>)/('%d X %d = %2d     ')&sprintf&.><"2(2+i.4)(,. ,. *)"0
> _(>:i.9)[load'format/printf'
>
> As you see it, it's longer than Ruby's. :(
>
> Anyone wants to challenge?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to