I did not miss much [. However, I do find the old train (conjunction adverb) and the facility/bug that allows passing directly an adverb to an adverb as an argument useful.
Now that the source is available one can, with some help if necessary, open some doors that were closed before. One mightnot be fully compatible with the rest but it is similar to having blood type AB; you might not be able to give but you could take. ________________________________________ From: programming-boun...@jsoftware.com [programming-boun...@jsoftware.com] on behalf of Dan Bron [j...@bron.us] Sent: Wednesday, February 22, 2012 10:27 AM To: 'Programming forum' Subject: Re: [Jprogramming] Challenge 7 March Bad Mess Personally, [. was removed during my "J lifetime", but before I'd developed the skills needed to take advantage of it. More generally, I think one of the reasons it was removed is it hadn't see wide adoption. So I imagine its excision was less painful than the disinflection of argument names. But if [. were reinstated, along with the (parts of the) trains table needed to make it useful, you can be sure I'd be first in line to buy one. This is one of the many things I'd play with in the J source, if I had the time. -Dan -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller Sent: Wednesday, February 22, 2012 10:08 AM To: Programming forum Subject: Re: [Jprogramming] Challenge 7 March Bad Mess Or [. -- Raul On Wed, Feb 22, 2012 at 9:56 AM, Dan Bron <j...@bron.us> wrote: > The Wiki has a long memory: http://www.jsoftware.com/jwiki/Scripts/Fixargs . > > (Fortunately for we tacit weirdos, this has never been an issue. Now, if we > changed the spelling of @ .... ) > > -Dan > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller > Sent: Wednesday, February 22, 2012 9:45 AM > To: Programming forum > Subject: Re: [Jprogramming] Challenge 7 March Bad Mess > > Unfortunately, I do not have any such scripts. > > If they mattered to me, I have fixed them so long ago that I do not > remember the event. > > Perhaps it matters that I view programming as an activity rather like > inhaling. Inhaling is an important part of breathing, but if you > never exhale you will not do so well. > > Put differently, I think there is an activity related to programming > which involves discarding code that's not useful. Code is easy to > generate... > > Finally, one of the things I most value about J is that it's concise > enough that I can do useful transformations on bodies of code with > relatively low amounts of keyboarding. I can think of all sorts of > automated transforms, but ultimately it's my understanding that's the > valuable thing for me. > > -- > Raul > > > On Wed, Feb 22, 2012 at 4:54 AM, Linda Alvord <lindaalv...@verizon.net> wrote: >> For This Challenge Only! This is for Raul, Ric and others. You may respond >> immediately. The embargo is lifted. Work together, ask questions, compare >> strategies, ask for advice and share your code at will. >> >> Use whatever will work most efficiently. No holds barred. Do not hold back >> if you are a very experienced programmer, rather join in the fun. >> >> >> >> Here's the problem: design a function pw for powerwash. Apply pw to any >> legacy script which is a mess and made you mad when two changes were made. >> It is a script that you miss but you moved on without it because it took too >> much effort and you abandoned it. The errors all came from a small change of >> arguments x. becoming x and y. becoming y >> >> >> >> So here is what is needed. Apply powerwash to the offending .ijs >> >> >> >> pw 'legacymessedup.ijs' >> >> >> >> The function or several functions taken together will powerwash your code >> in four ways. >> >> >> >> 1. It will find all instances of x and replace them with xx >> >> 2. It will find all instances of y and replace them with yy >> >> 3. It will find all instances of x. and replace them with x >> >> 4. It will find all instances of y. and replace them with y >> >> >> >> This will not insure that your legacymessedup script will work. But it >> will prevent the madness of having to do it yourself every time. >> >> >> >> This one is for my own use and is beyond my skill or energy to tackle. I >> imagine there will be others out there who might appreciate it too. We >> thank you in advance. Also this may have been done since 2001 and I never >> saw it in which case we will move on to Challenge 8. >> >> >> >> Linda >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm [BEST LLC] Bayesian Efficient Strategic Trading LLC The information in this communication and any attachment is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of BEAM Bayesian Efficient Asset Management, LLC (BEAM), Bayesian Efficient Strategic Trading, LLC (BEST) and/or their affiliates unless otherwise specifically stated. All information and opinions expressed herein are subject to change without notice. This communication is not to be construed as an offer to sell or the solicitation of an offer to buy any security. Any reliance one may place on the accuracy or validity of this information is at their own risk. Past performance is not necessarily indicative of the future results of an investment. If you are not the intended recipient, or a person responsible for delivering this to the intended recipient, you are not authorized to and must not disclose, copy, distribute, or retain this message or any part of it. If you are not the intended recipient, please permanently delete all copies of this communication and any attachments from your computer system, destroy any hard copies, and immediately notify the sender or BEAM/BEST at either i...@2bestsystems.com, i...@beamstrategy.com or (201) 792-1002. No waiver of confidentiality or privilege is made by mistransmission. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm