Hacker News new | ask | show | jobs
by kentnl 5633 days ago
You haven't really started using Ruby till you start trying to JAPH and golf it. Fortunately, that phase will pass and you'll return to writing maintainable code =).

>> "The idea of making tools that are joyful to use to the programmers ... basically due to it's syntax."

Thats pretty much entirely "who is working in this language" based imo. As for syntax being a limitation, its interesting you complain that, because others have complained that the syntax is too dynamic, too augmentable, and too unpredictable, hence people talking stuff about it being impossible to write a parser for it =).

Granted, often when this feature is used, its often abused, and there are various 'source filters' in Acme:: you'd get shot if you tried using them in production ( Switch.pm is one such shootable offsense ... with great power comes ... extra unwanted side effects ).

But an example of a Good use of the source filter/metaprogramming nature intrinsic to Perl is MooseX::Declare ( its only part source filter, but its "Sane" because its smart enough to not cause too many unwanted side effects ) to provide alternative class declaration syntax, that some would claim, even looks readable!.

   use 5.010;
   use MooseX::Declare; 
   
 
   class Foo { 
         method hello( $what ){ 
             say "Hello $what";
         }
   }

   Foo->new()->hello("World");  # Hellow World\n