Hiccdown Development Notes

Showing only those parts of the discussion which lead to #327 and its comments.

See full discussion·See most recent related ideas
  Log in or sign up to participate in this discussion.
With an account, you can revise, criticize, and comment on ideas.

Discussions can branch out indefinitely. Zoom out for the bird’s-eye view.
Dennis Hackethal’s avatar
Dennis HackethalOP revised about 1 year ago·#325
Only version leading to #327 (5 total)

Hiccdown methods should live in their own, separate modules. How about they are called ‘displays’?

module ProductsDisplay
  def self.index vc, # …
    vc.some_helper_method
  end
end

A benefit of this approach is that, when people start a new Rails app, they may end up putting whatever they’d otherwise put in a helper in a display, since displays have the benefit of having unambiguously resolvable method names.

Criticized1oustanding criticism
Dennis Hackethal’s avatar
Dennis HackethalOP, about 1 year ago·#327

Instance variables are not available inside the methods.

Criticism of #325
Dennis Hackethal’s avatar
Dennis HackethalOP, about 1 year ago·#328

They are: vc.instance_variable_get(:@foo)

Criticism of #327Criticized1oustanding criticism
Dennis Hackethal’s avatar
Dennis HackethalOP, about 1 year ago·#329

That’s way too verbose.

Criticism of #328