Search

Ideas that are…

Search Ideas


1473 ideas match your query.:

Having explored three different ideas, I believe #302 – having regular helper methods to render Hiccdown structures – is the best.

The idea is not without its flaws, but having to qualify a method name by, say, calling it idea_form instead of form is still better than manually having to pass the view context around all the time and not being able to trivially access instance variables.

So I’ll stick with #302 for now, which is the status quo already.

#333·Dennis HackethalOP, over 1 year ago

#327 applies here, too: no access to instance variables inside helper class methods.

#332·Dennis HackethalOP, over 1 year ago·Criticism

That’s way too verbose.

#329·Dennis HackethalOP, over 1 year ago·Criticism

Instance variables are not available inside the methods.

#327·Dennis HackethalOP, over 1 year ago·Criticism

I’m trying this now. Having to prepend every invocation of a helper method with vc. is getting really old really fast.

#326·Dennis HackethalOP, over 1 year ago·Criticism

Tested, it works. self does indeed point to the view_context in the helper. Verified by printing object_ids.

#323·Dennis HackethalOP revised over 1 year ago·Original #322·Criticism

Maybe ‘Display’. ProductsDisplay

#320·Dennis HackethalOP, over 1 year ago

I don’t like the term ‘renderer’ yet. It’s too loaded with meaning, what with Rails already having a render method in controllers and another render method in views…

#319·Dennis HackethalOP, over 1 year ago·Criticism

I don’t think that’s something people would do a lot, but they still easily could: ProductsRenderer.index(self)

#315·Dennis HackethalOP, over 1 year ago·Criticism

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

module ProductsRenderer
  def self.index vc, # …
    vc.some_helper_method
  end
end
#313·Dennis HackethalOP, over 1 year agoArchived

That would be mixing class methods an instance methods in Rails helper modules, which typically only contain instance methods. Not idiomatic Rails usage.

#312·Dennis HackethalOP, over 1 year ago·Criticism

If so, there might be a way to bind them to the view_context. Or I could definitely pass the view_context explicitly as the first parameter:

So instead of

@helper_module.instance_method(@action_name).bind_call(view_context)

I would do

@helper_module.send(@action_name, view_context)

And the parameter list of each Hiccdown method would start accordingly:

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

  def some_helper_method
    # …
  end
end
#310·Dennis HackethalOP revised over 1 year ago·Original #307·Criticism

That isn’t a good idea because Hiccdown methods often share the same conventional names (index, show, etc), which can and does lead to conflict.

#301·Dennis HackethalOP, over 1 year ago·Criticism

I’m pro abortion but I have some pro life in me.

Banning the abortion of a zygote seems ridiculous. So does aborting a seven-month-old fetus.

Why not go with: you can abort until the nervous system develops.

Clearly, an embryo without a nervous system can’t be sentient and thus can’t be a person, right? And as long as it’s not a person, it doesn’t have any rights.

According to https://www.neurosciencefoundation.org/post/brain-development-in-fetus, “an embryo’s brain and nervous system begin to develop at around the 6-week mark.” And: “At as early as 8 weeks (about 2 months), you can see physical evidence of the brain working (the electric impulses) as ultrasounds show the embryo moving.”

This idea is for viable pregnancies only. Other considerations may apply for non-viable ones.

#299·Dennis HackethalOP revised over 1 year ago·Original #104· Battle tested

Clearly, a fetus without a nervous system can’t be sentient and thus can’t be a person, right?

It’s not considered a fetus until week 9, at which point the nervous system has already begun building.

The correct word to use here is ‘embryo’.

#298·Dennis HackethalOP, over 1 year ago·Criticism

If an already-born person is deadly ill, that doesn’t mean you can kill them. Why should that be any different for an unborn person?

#279·Dennis HackethalOP revised over 1 year ago·Original #278·Criticism

What happens if only one of two twins is non-viable but abortion would kill both?

#277·Dennis HackethalOP, over 1 year ago·Criticism

I have addressed this issue separately – it’s a separate idea. #274

#275·Dennis HackethalOP, over 1 year ago·Criticism

Appeal to the supernatural

#272·Dennis HackethalOP, over 1 year ago·Criticism

The heartbeat has no particular epistemological or moral relevance.

#270·Dennis HackethalOP, over 1 year ago·Criticism

Defensive force and security services are productive endeavors.

Retaliatory force is only part thereof, and defense involves the employment of scarce resources, thus economic principles apply. (Logan Chipkin)

If the government tries to step outside the free market, that’s tantamount to pretending there’s magically no scarcity for the government. But in reality, the government still has to attract talent to fill government jobs, pay that talent, and use scarce resources. If it tries this without the error-correction mechanisms the free market provides, it will do anything poorly.

#267·Dennis HackethalOP revised over 1 year ago·Original #11·Criticism

Two people out in international waters, or in space, or anywhere else with no government, can still have consensual interactions. For example, they can decide to share a sandwich. That’s still consensual if neither party has a preference that arbitrarily steamrolls over the other.

#266·Dennis HackethalOP, over 1 year ago·Criticism

There are already consensual interactions between people that are nonetheless unregulated. Sex, for instance.

#265·Dennis HackethalOP, over 1 year ago·Criticism
#242·Dennis HackethalOP, over 1 year ago·Criticism

This seems like a response to another idea (presumably #230 and/or #232), rather than a top-level idea itself. I suggest you move this idea and break it up if necessary. Mark it as a criticism to whatever ideas you end up criticizing.

But first, familiarize yourself with the current state of the discussion. Ensure that you’re making new points. These sound like points others have made before you. Read the entire discussion before you continue. If these points are indeed duplicates, either think of new criticisms or address existing criticisms. Don’t repeat the same ideas if you can’t address preexisting issues with them.

#240·Dennis HackethalOP revised over 1 year ago·Original #235·Criticism