Rails, CRUD, REST and the importance of adjectives
Consider a web request:
The personal website of Piers Cawley
(they/him)
—
FolkSinger, photographer, carer and occasional programmer.
Consider a web request:
An argument for peace and love is always an argument for self-preservation.
So, in my quest to get Rails routes to accept routes like:
I sometimes think that one of the reasons that CPAN is such a huge advantage for Perl is the ease with which you can contribute to it. It’s all very well having a tool for installing libraries from the archive, any fool can do that, but CPAN has tools for getting started with a new library too.
If you’re reading this on the website rather than through a feedreader and you look to the left you’ll see either a bunch of links to cited books or an Amazon ‘self optimizing links’ banner (though, if it keeps ‘optimizing’ like it has being I’ll be changing it to something else). This is implemented using a mildly hacked version of the standard typo amazon_sidebar
plugin.
In case anyone’s interested, I’ve written a list of some of the things I’m currently mulling doing with Typo below the fold.
Rails routing is making my head hurt. It’s starting to remind me of the guts of perl’s regular expression engine, which was said to be understood by three people, plus or minus five.
You may have noticed I’ve been tweaking. The new layout is based on Scribbish with a few CSS tweaks and some low cunning to get the three column layout working.
REST is easy, it’s just smart clients using HTTP to the full.
bq.
If you haven’t yet read Ovid’s post about the ‘AuthenticationFairy, you should. Go on, you can rejoin me below the fold for discussion of some scary Perl…
You know I said I was going to do some work with the Rails routing system And paint my office? And sort out all the crap in Gill’s office so she’s got a nice place to work?
Some months ago, I ordered a pizza from Papa John’s using their web interface (I’m not proud, I’ll admit to the occasional need for junk food). The pizza was terrible (since then I’ve only ever used them for a satsifying late night cravings for Ben and Jerry’s when I can’t be arsed to go to the all night Tesco’s).
So, I’m not a fan of static typing. It’s okay in the likes of Haskell which does type inferencing and generally goes out of its way to reduce programmer pain, but Java? C#? No ta. It’s awfully tempting to conclude that anyone who chooses to use those languages deserves to be pointed out and laughed at.
Mmm… Rails routes, don’t you love them?