Best Practices |
|
|
| Listings |
| There are 3 listings in this category. Add your listing here |
|
Agile Asset Management with Ruby DSLs
A domain specific language is a language-oriented tool designed to solve a specific set of programming tasks. Common traits are very close to the problem domain within which the language is intended to work, and operating at a very high level of abstraction. In his article about DSLs, Martin Fowler classifies DSLs as either external or internal (see link). An external DSL is a programming language that is either compiledor interpreted. An internal DSL is built within a general- ...
(Hits: 284 | Votes: 0 | Visited: 110 | Added: 2006-07-16 00:23:55)
|
|
The Amazing Rails Pluralizer One of the features of Rails that confuses people learning the framework is the automatic pluralization of Model and table names. Because Rails emphasizes convention over configuration, it’s important that you use the right terms. The Rails generators do not enforce these configurations, so you must learn and follow them. For example, the convention is to use singular model names, but the generator will let you use a plural. Don’t do it! Use the singular for you ...
(Hits: 329 | Votes: 0 | Visited: 93 | Added: 2006-05-22 12:38:54)
|
|
Rails Best Practices, Tips and Tricks
Because Rails is a young framework, I thought it would be helpful to write up what I consider best practices when coding with it both for my new coworkers and the web at large. Here’s my current draft. Feel free to critique and comment. I’m very open to suggestions...
(Hits: 330 | Votes: 0 | Visited: 135 | Added: 2006-05-22 13:46:31)
|