So many discussion forums are broken in so many ways.
- Someone posts a link to a news story.
- Subsequent comments pick a side and argues in favor of it.
Below, I will explain why this is an anti-pattern.
Consider this code. Please pay attention to how .style()
derives from element
. The rest is not important for the point I'm hoping to make here.
/// Centers `element` horizontally and vertically inside `canvas`.
/// Returns a `Node` struct containing the calculated position and dimensions
/// of the repositioned `element`.
pub fn center_element(element: &HtmlElement, canvas: &Canvas) -> Node {
let dim = bounding_client_dim(element);
let pos = centered_pos(&dim, &canvas.dim);
{
{% macro google_fonts(families) %} | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
{% set prefix = "https://fonts.googleapis.com/css2?" -%} | |
{% set s = "" -%} | |
{% for family in families -%} | |
{% if loop.index0 > 0 -%} | |
{% set_global s = s ~ "&" -%} | |
{% endif -%} | |
{% set_global s = s ~ "family=" ~ family -%} |
use std::net::IpAddr; | |
use axum::http::HeaderMap; | |
#[derive(Debug, thiserror::Error)] | |
pub enum IpHeaderError { | |
#[error("`CF-Connecting-IP` header is missing")] | |
MissingHeader, | |
#[error("`CF-Connecting-IP` header contains invalid characters")] |
ChatGPT 4.0 transcript on 2023-09-18
Are you familiar with the cognitive science / neuroscience theory that consciousness is a simulation error-corrected by our senses?
What is this theory called? / In what academic disciplines is it situated? / When was it first proposed? / Please comment on how well it has or has not been adopted.
Note: Paul is one of the founders of the Unison Language.
Dear Paul,
You closed Discussion #9 on the Unison GitHub forum. This prevented me from replying there, so now I'm writing here.
OPINION
Living in Maryland is far superior to living in Texas
https://www.baltimoresun.com/opinion/readers-respond/bs-ed-texas-maryland-letter-20110624-story.html
JUN 25, 2011 AT 9:30 AM
Having just moved back to Maryland after 23 years in Dallas, I think I can bring some insight as to Texas' merits vs. Maryland. ("A Texas remedy for what ails Maryland jobs," June 22)