Search

Words match in any order. "many worlds" matches the phrase exactly; -gravity excludes ideas with “gravity”.

Ideas that are…

Search Ideas


2884 ideas match your query.:

Fixed as of 99b6280, to be released in version 1.6.0.

#5846·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismArchived

On Rails 8.1, Hiccdown's capture hands keyword arguments to the block as key-value pairs rather than as keywords. capture(text: 'foo') { |text:| text } raises ArgumentError: missing keyword: :text instead of returning 'foo', and a block that takes them as a hash, { |options| … }, gets [:text, 'foo'] instead of {text: 'foo'}.

Earlier versions of Rails pass keywords on to the block as a hash, which Hiccdown leaves alone.

#5845·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismCriticized1Archived

Mostly, intercepting capture already took care of it: helpers of your own that pass a block on to Rails' helpers, or return Hiccdown, worked. Hiccdown given to Rails' helpers as content didn't, as in content_tag(:div, yield), tag.div([:span, 'foo']) or link_to([:span, 'foo'], path). As of 134deb9, to be released in version 1.6.0, it does.

#5844·​Dennis HackethalOP, 14 days ago·​AI-assisted·​Archived

Yes. As of 4fd7a0e, to be released in version 1.6.0, the layout named X lives in XHelper#layout, just as it would in layouts/X.html.erb, so the application layout lives in ApplicationHelper#layout. yield and yield(:title) work as in an ERB layout, and layout files keep working for a gradual migration.

#5843·​Dennis HackethalOP, 14 days ago·​AI-assisted·​Archived

Fixed as of 31cf174, to be released in version 1.6.0.

#5842·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismArchived

Fixed as of 9c46c61, to be released in version 1.6.0.

#5841·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismArchived

Hiccdown finds an action's helper method through params[:action] rather than the controller's action_name. When a controller runs without the router, as in ProductsController.action(:show).call(env), params[:action] is nil and rendering raises NoMethodError: undefined method 'to_sym' for nil instead of calling ProductsHelper#show.

#5840·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismCriticized1Archived

Calling render with options only, such as render status: :not_found or render layout: 'admin', skips the action's helper method and looks for an ERB template instead. Without one, it raises ActionView::MissingTemplate:

ruby
class ProductsController < ApplicationController
def show
render status: :not_found # MissingTemplate, though ProductsHelper#show exists
end
end

Naming the action works around it: render :show, status: :not_found.

#5839·​Dennis HackethalOP, 14 days ago·​AI-assisted·​CriticismCriticized1Archived

Fixed as of c36fa5c, version 1.5.2.

#5838·​Dennis HackethalOP, 14 days ago·​CriticismArchived

Fixed as of ed8868b, version 1.3.1.

#5837·​Dennis HackethalOP, 15 days ago·​CriticismArchived

Rational Decision-Making

It’s rational to adopt only those ideas which, as written, don’t have pending criticisms, and to reject ideas that do.

If an idea, as written, has no pending criticisms, it’s rational to adopt it and irrational to reject it. What reason could you have to reject it? If it has no pending criticisms, then either no reasons to reject it (ie, criticisms) have been suggested or all suggested reasons have been addressed already.

If an idea, as written, does have pending criticisms, it’s irrational to adopt it and rational to reject it – by reference to those criticisms. What reason could you have to ignore the pending criticisms and adopt it anyway? After all, the previous paragraph applies to pending criticisms, too.

See also:

#5748·​Dennis HackethalOP revised 19 days ago·​Original #2117·​ Battle-tested

Rational Decision-Making

It is rational to adopt only those ideas which, as written, don’t have pending criticisms, and to reject ideas that do.

If an idea, as written, has no pending criticisms, it’s rational to adopt it and irrational to reject it. What reason could you have to reject it? If it has no pending criticisms, then either 1) no reasons to reject it (ie, criticisms) have been suggested or 2) all suggested reasons have been addressed already.

If an idea, as written, does have pending criticisms, it’s irrational to adopt it and rational to reject it – by reference to those criticisms. What reason could you have to ignore the pending criticisms and adopt it anyway? After all, the previous paragraph applies to pending criticisms.

See also:

#5746·​Dennis HackethalOP revised 19 days ago·​Original #2117·​Criticized1

A sticky button can't work here: the main content area has to be a horizontal scroll container so deeply nested trees can grow sideways, and that stops position: sticky from sticking. The workarounds (reworking the global layout, or JavaScript positioning that jitters on mobile) are too risky for such a small benefit.

#5731·​Dennis HackethalOP revised 21 days ago·​AI-assisted·​Original #5700·​CriticismArchived

Tyler suggested (#3904) we use the chart type from Kialo:

Kialo chart

Could be a useful visualization in addition to trees.

Each top-level idea would be the center node. Then red segments around it for pending criticisms. Gray for non-pending criticisms and neutral comments.

Unlike Kialo, though, each segment would have the same size as the other segments on its circle.

#5730·​Dennis HackethalOP, 21 days ago

Offer easy way to link to latest version of an idea. The ability already exists – an idea link + /latest will always go to the latest version – but isn’t directly exposed in the form of a link or button yet.

#5729·​Dennis HackethalOP, 21 days ago·​CriticismCriticized1Archived

Done as of c00ed18.

#5728·​Dennis HackethalOP, 21 days ago·​CriticismArchived

Reiterating/refining #3904: There should be a graphical indication for pending criticisms. The dropdown line should be red if the comment it leads to is a pending criticism. The yellow pills can be turned gray to be easier on the eyes.

#5726·​Dennis HackethalOP revised 21 days ago·​Original #4827·​CriticismCriticized1Archived

This says nothing about the yellow color of the criticisms pills, which I think Tyler is saying are too harsh on the eyes.

#5725·​Dennis HackethalOP, 21 days ago·​CriticismArchived

That doesn’t mean the pill has to stay yellow. Too harsh.

#5723·​Dennis HackethalOP revised 21 days ago·​Original #5722·​CriticismArchived

That doesn’t mean the pill has to say yellow. Too harsh.

#5722·​Dennis HackethalOP, 21 days ago·​CriticismCriticized1Archived

And dimmer red for refuted criticisms, brighter red for pending ones! Default gray for comments.

Would get alternating dim and bright depending on insertion order. Confusing!

#5721·​Dennis HackethalOP, 21 days ago·​CriticismArchived

Reiterating/refining #3904: There should be a graphical indication for pending criticisms. The dropdown line should be red if the comment it leads to is a pending criticism.

#5719·​Dennis HackethalOP revised 21 days ago·​Original #4827·​CriticismCriticized2Archived

Reiterating/refining #3904: I think the yellow "Criticism of" bubbles can and should be replaced by a graphical indication that is much easier on the eyes. The dropdown line can be made red if the comment it leads to is a criticism, and the bubble on the criticism can be eliminated. Reading the yellow bubble to get the idea # it is referring to, then searching the ideas above for the matching # is inelegant (even if it is usually the one right above).

#5717·​Dennis HackethalOP revised 21 days ago·​Original #4827·​CriticismCriticized1Archived

And dimmer red for refuted criticisms, brighter red for pending ones! Default gray for comments.

It’s more in line with refute.us if non-pending criticisms are neutralized, ie gray as well.

#5716·​Dennis HackethalOP, 21 days ago·​CriticismArchived