proomt

Search

Search posts, papers, and topics

All posts

LobstersWill Keleher3 min readintermediate

Small Programming Tricks

Summary

A grab‑bag of command‑line, SQL, and JavaScript shortcuts – from fuzzy‑searching shell history with fzf to using `SELECT` without a `FROM` in Postgres, `git log -S`, and keeping an HTTPS agent alive in Node. The author argues that such bite‑size tips boost daily productivity and suggests sharing one per day on a team channel.

  • Install fzf (or atuin) to turn `Ctrl‑R` into a fuzzy history search; per‑directory history is also possible.
  • `SELECT` can be used without a `FROM` clause in Postgres/MySQL for quick expression evaluation.
  • `EXPLAIN ANALYZE` runs the query and returns detailed runtime metrics, useful for tuning.
  • Use `` word‑boundary in regex to match start/end of words.

These shortcuts shave seconds to minutes off routine tasks, reduce context‑switching, and lower the cognitive load of remembering obscure commands. In large codebases or on‑call rotations, a single tip (e.g., `git log -S`) can dramatically speed up root‑cause analysis.

4/10

Related reading

  1. ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks

    ProgramDistill is a new benchmark that automatically extracts 1,975 replay‑verified feature behaviors from 26 real web apps, builds 4,063 coding‑agent tasks, and measures how well state‑of‑the‑art agents (e.g., GPT‑6 Astra, Claude Opus 5) can reconstruct full or partial applications, revealing steep drops in success as restoration depth grows.

    Hugging Face Daily Papersarxiv.org1 minpaper
  2. From alert to resolution: Manage incidents with Bits Chat in Slack

    Datadog’s Bits Chat adds a natural‑language interface to Slack, letting responders start investigations, get root‑cause analysis, generate code fixes, and close incidents without leaving the channel. The post walks through a sample e‑commerce outage to show the end‑to‑end workflow.

    Datadogdatadoghq.com4 min
  3. Article: Your Next DSL Author Is a Language Model

    Typed Domain Grounding (TDG) embeds a DSL inside a mainstream language the LLM already knows (e.g., Kotlin) and uses the host compiler as an oracle. The author describes five building blocks—embedding, choosing a host language with high training‑data frequency, compiler‑driven type safety, a generate‑compile‑repair loop, and an on‑demand teaching tool—and shows measured results from kUML, a Kotli…

    InfoQinfoq.com18 min