--- On Wed, 7/22/09, Raul Miller <[email protected]> wrote:

> From: Raul Miller <[email protected]>
> Subject: Re: [Jprogramming] Reimplementing J
> To: "Programming forum" <[email protected]>
> Date: Wednesday, July 22, 2009, 2:07 PM
> On Wed, Jul 22, 2009 at 1:35 PM, Ed
> Keith<[email protected]>
> wrote:
> > C is just too much work, why not just write
> assembler?
> 
> Which assembler?

Unless you are working on embedded systems, the Pentium seems to be the 
standard.

> >> Meanwhile, C++ is a lot harder to read, and
> finding the
> >> relevant definitions can be very time consuming.
> >>
> >> For example:
> >>    x++<<y();
> >>
> >> In C, this would be invalid code.  In C++ it can
> be
> >> valid code
> >
> > I'm sorry but coming from a J programmer, this strikes
> me as
> > comical. I do not see how a fan of J can accuse any
> other language
> > of being hard to read. I like J, but it is not easy to
> read.
> 
> I have problems reading J when I can not visualize its
> data
> (relevant data in the domain of the code I am working
> with).
> I also have problems reading J when I lack the math
> background
> to understand the algorithm.
> 
> I can also have these problems in C++ but I also run into
> cases where I can not tell if the definition I am reading
> is relevant to the code in the context where it is used.
> I imagine I could achieve similar problems in J, but in
> practice I do not see people using J in this fashion.
> 

I have not had these problems in C++ for many years (but I can remember wasting 
over ten hours studying the wrong code about 15 years ago). 

> >>    x++<<y();

Is an excellent example of bad code, I would never let it through a code review 
without at least adding parenthesis. Without knowing the types of x & y I can 
not even guess what it does. Yes, operator overloading can, and frequently is, 
abused. The choice to overload the shift operator as the  I/O operator was an 
extremely bad mistake and set the president for all kinds of operator abuse in 
C++ code. But bad code can be written in any language. 

   -EdK

Ed Keith
[email protected]

Blog: edkeith.blogspot.com



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to