Veritula – Meta

Showing only those parts of the discussion that lead to #3957.

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

Code blocks need syntax highlighting.

Veritula used to have this feature but I removed it when diffing changed.

CriticismCriticized1*
Dennis Hackethal’s avatar

Done as of cc1ab95.

Ruby example:

ruby
def criticized? idea
pending_criticisms(idea).any?
end
def pending_criticisms idea
criticisms(idea).filter { |c| pending_criticisms(c).none? }
end
def criticisms idea
children(idea).filter(&:criticism?)
end

JS example (h/t ChatGPT):

javascript
function criticized(idea) {
return pendingCriticisms(idea).length > 0;
}
function pendingCriticisms(idea) {
return criticisms(idea).filter(c => pendingCriticisms(c).length === 0);
}
function criticisms(idea) {
return children(idea).filter(c => c.isCriticism);
}
Criticism of #3950
Dennis Hackethal’s avatar
Only version leading to #3957 (2 total)

There’s still an issue on ideas#show. When an idea has nothing but a code block, there’s too much of a margin at the bottom, between the block and the border of the highlight.

Criticism of #3951Criticized3*
Dennis Hackethal’s avatar
Dennis HackethalOP, about 21 hours ago·#3957

Superseded by #3956. This comment was generated automatically.

Criticism of #3953