A non negative binary integer value x is a power of 2 iff (x & (x-1)) is 0 using 2's complement arithmetic. -- [fact]
You have to write for your audience. I would never write (1..5).map &'*2' in Java when I could write ListFactoryFactory.getListFactoryFromResource( new ResourceName('com.javax.magnitudes.integers'). setLowerBound(1).setUpperBound(5).setStep(1).applyFunctor( new Functor () { public void eval (x) { return x * 2; } })) I'm simplifying, of course, I've left out the security and logging wrappers. -- Reginald Braithwait
Functional programming is to algorithms as the ubiquitous little black dress is to women's fashion. -- Mark Tarver (of "The bipolar Lisp programmer" fame)
Any sufficiently complicated C or Fortran program contains an ad hoc, informally specified, bug-ridden, slow implementation of half of Common Lisp. -- Philip Greenspun (Greenspun's Tenth Rule)
You have to write for your audience. I would never write (1..5).map &'*2' in Java when I could write ListFactoryFactory.getListFactoryFromResource( new ResourceName('com.javax.magnitudes.integers'). setLowerBound(1).setUpperBound(5).setStep(1).applyFunctor( new Functor () { public void eval (x) { return x * 2; } })) I'm simplifying, of course, I've left out the security and logging wrappers. -- Reginald Braithwait
Controlling complexity is the essence of computer programming. -- Brian Kernigan
Whatever the mind of man can conceive and believe, it can achieve. –Napoleon Hill
When I stand before God at the end of my life, I would hope that I would not have a single bit of talent left and could say, I used everything you gave me. –Erma Bombeck
Don’t be afraid to give up the good to go for the great. ~John D. Rockefeller
Eighty percent of success is showing up. –Woody Allen