It’s based on a separation between views and templates.
A view is an object that encapsulates the presentation logic of a page. A template is a file that defines the semantic and visual elements of a page. In order to show a result to an user, a template must be rendered by a view.
No more inscrutable magic in Rails view handling! Thank you!
If you have something like
…thinking some people might wonder if I’m nibbling on the punctuation.
Rails is a fantastic solution to a well-understood class of problem: the CRUD-oriented (or REST-oriented) query/report/update Web application, circa 2004-2006. Its philosophy of curation over configuration, despite having been likened to the report-producing languages of old (such as IBM RPG II, means that you really only have two things to worry about: your domain business logic and page transitions (which is another way of saying “your domain business logic, as it applies to presentation”).
The thing about programming is that if somebody can’t format their code neatly and consistently, it’s hard to trust their logic, even though it has no real technical bearing.
True. Another thing that keeps me from taking code seriously is rampant bad grammar and misspelling. Of course, with the utter destruction of the American public-education system (in particular) some 40 years ago, this is now pandemic.
Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing.
Weinberg’s Second Law: *”If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.”*
I think it’s truly terrifying to think how many everyday things are dependent on code. Your finances. Your computer. Your car. Your phone. Good code that is able to be well maintained perhaps is a true rarity.
It’s not a bug…it’s a feature.
And a Bug has never been a bug!
Quick! In a Script source file for Ruby on Rails, what’s the difference between
Good question. (And I hope the answer isn’t “Because I’m shamelessly narcissistic and…”; I write for a living. Shouldn’t I enjoy it as a hobby, as well?)