3 Replies - 8933 Views - Last Post: 10 January 2013 - 07:39 PM Rate Topic: -----

#1 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10558
  • View blog
  • Posts: 39,064
  • Joined: 27-December 08

[Link] Ditch YAML And Embrace Ruby's Lisp Heritage

Posted 09 January 2013 - 10:58 PM

Quote

The time has come for Rubyists in general and Rails in particular to embrace Rubyís Lisp heritage and ditch YAML as a configuration default for database. Code is Data/Data is Code. There are a host of reasons why Ruby is great for configuration and only a few in favor of YAML. Letís look at why we use YAML in the Ruby community:

-You donít have to quote Strings sometimes
-It is better than XML.
-Rails does it in the database configuration.


http://blog.mojotech...ll-the-way-down

Is This A Good Question/Topic? 0
  • +

Replies To: [Link] Ditch YAML And Embrace Ruby's Lisp Heritage

#2 Lemur  Icon User is offline

  • Pragmatism over Dogma
  • member icon


Reputation: 1359
  • View blog
  • Posts: 3,425
  • Joined: 28-November 09

Re: [Link] Ditch YAML And Embrace Ruby's Lisp Heritage

Posted 10 January 2013 - 04:08 PM

Much further and you might as well just take the plunge and learn LISP itself. Most people comment and say the odd syntax is the key point to not learning it, but it's that very syntax (or lack thereof) that gives it its real power.

Ruby approaches it, and is in quite a few ways a clear ancestor of LISP. I do agree though that the DC&CD is a huge step in efficiency and needs to be capitalized one more. In other news, Ruby is renamed RLISP.

Jokes aside, check into Paul Graham's check list for what makes a LISP and you'll be fairly shocked at some of it: http://paulgraham.com/diff.html

Ruby is quickly approaching, with the exception of absolutes in 6, 8, and 9.
Was This Post Helpful? 2
  • +
  • -

#3 sepp2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2112
  • View blog
  • Posts: 3,230
  • Joined: 21-June 11

Re: [Link] Ditch YAML And Embrace Ruby's Lisp Heritage

Posted 10 January 2013 - 05:45 PM

Quote

The time has come for Rubyists in general and Rails in particular to embrace Rubyís Lisp heritage and ditch YAML as a configuration default for database. Code is Data/Data is Code.


I don't see how what's proposed in that blog has anything to do with "code is data". All he does is write code that uses data structures.
Was This Post Helpful? 0
  • +
  • -

#4 Lemur  Icon User is offline

  • Pragmatism over Dogma
  • member icon


Reputation: 1359
  • View blog
  • Posts: 3,425
  • Joined: 28-November 09

Re: [Link] Ditch YAML And Embrace Ruby's Lisp Heritage

Posted 10 January 2013 - 07:39 PM

Probably primarily using eval, instance_eval, and other such dynamic code loading.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1