Results tagged “code” from dead prophet

"I'll create a GUI interface using Visual Basic"

Thanks Yan

One Final Note on Mesh08

I recently attended the mesh conference in toronto (and meshU).  I tend to take non-linear notes, not so much as a way to revisit the words, but as a way to keep my mind focused on the lecture or panel discussion and to make myself feel a little more apart of the conversation.

Mesh 08 Notes

Anyway, I posted my notes up to flickr and I just noticed Michael O'Connor Clarke used them in a recent blog post.

To add my feedback to the quote in controversy ("The Customer is not that Smart" by Dave Jones). I don't think it's something you want to tell your customers to their face (or behind their backs), but as it relates to what they hired you to do, it's probably true, or they wouldn't have hired you to do it. It also doesn't mean that they're dumb.

Thanks Michael.

RubyOnRails_HomePage.png

I have a question regarding link_to helpers.  When do you use them and when do you not use them.

Example.
Use basic HTML:

<a href="/foobar/10">FooBar</a>                                               
or instead use a helper:

<%= link_to "FooBar", { :action => "foobar", id => 10 } %>                    
Both return the same result.  Is it strictly a preference?  I find the syntax of these helpers so forgettable and non-intuitive.  I'm not the smartest kid in the class, but every time I need to add a class name to the link so that the CSS style takes affect, I find myself googling "How do I add class names to link_to calls".  It's a pain.  It's my pain, but it's a pain.

Also, what about link_to_remote?  What if I have a loop in my view and I'm outputting 10 or 20 list items that each have the link_to_remote call?  Do I really want the JS function created 20 times?  1 for each call?  

Obviously DHH and his crew of merry men have a reason and a purpose for these helpers, otherwise they wouldn't be there, or at least they wouldn't be called helpers, they'd be called annoyers, but somewhere in our web apps we're going to have to write some HTML code.  Or is there a create_linebreak_here helper that inserts a <br /> for you?

What is the best practice when it comes to these little do-dads?

Resource Links:

Tags

Find recent content on the main index or look in the archives to find all content.