Skip Navigation
Jump
World Incarceration Rates If Every U.S. State Were A Country (No other country even makes the first page)
  • No other country even makes the first page

    If every state in America were only 1% worse than every other country, then again the first 50 entries would be the American states. This is barely saying more than "America has the highest incarceration rate," so it shouldn't be a surprise.

    0
  • Jump
    What is your preferred API error response and why?
  • Status 200 for errors is common for non-REST HTTP APIs. An application error isn't an HTTP error, the request and response were both handled successfully.

    4
  • Jump
    What is your preferred API error response and why?
  • There may be a need for additional information, there just isn't any in these responses. Using a basic JSON schema like the Problem Details RFC provides a standard way to add that information if necessary. Error codes are also often too general to have an application specific meaning. For example, is a "400 bad request" response caused by a malformed payload, a syntactically valid but semantically invalid payload, or what? Hence you put some data in the response body.

    5
  • Jump
    Child medicine
  • I'm speaking my truth. XR Adderall, crack em open and pour em on me tongue. The caviar of stimulants

    2
  • Jump
    Child medicine
  • My only time-release capsule is filled with little beads, I just pop it open and eat the beads like pop rocks

    6
  • Jump
    Child medicine
  • I've been taking 6+ pills a day for years and still can't get myself to swallow them. I just chew everything. Tasty painkillers and caffeine.

    20
  • Jump
    SQL Has Problems. We Can Fix Them: Pipe Syntax In SQL
  • This should be done with font ligatures, not replacing character combinations with other characters that can't be typed normally

    4
  • Jump
    mfw you're trying to take the Fourier Transform of a distribution
  • It's a reach, but the Fourier transformation of a Schwarz (rapidly decaying) function is also a Schwarz function. Compact support is a strictly stronger condition than Schwarz (the function must eventually decay to 0) but doesn't have this nice property with respect to Fourier transforms, i.e. the FT of a compactly supported function is Schwarz but not necessarily compactly supported

    5
  • Jump
    xkcd #2974: Storage Tanks
  • I'm stuck on the homological algebra exercise

    2
  • Jump
    Do you know the .vscode/tasks.json file? You can add it to your project, and will run your configured commands automatically when you open the project ✨
  • You'd still need to manually install the git hooks though, the .git folder isn't part of the repo

    1
  • Jump
    Do you know the .vscode/tasks.json file? You can add it to your project, and will run your configured commands automatically when you open the project ✨
  • Pre-commit hooks aren't committed to the repo though. What's to disable? Unless it's something like python's precommit module I guess

    1
  • Jump
    I don't know what this style is, but it's amazing 🤩
  • You look like you could turn runes into strength

    6
  • Jump
    You should be able to see your reflection in it!
  • Once every 50 years or so

    15
  • Jump
    You should be able to see your reflection in it!
  • If my cooking senses are right, it would be like cooking bacon in a stainless steel pan, which is sticky and burny but not impossible

    4
  • Jump
    Google pulls the plug on uBlock Origin, leaving over 30 million Chrome users susceptible to intrusive ads
  • Don't think it saves bandwidth unless it's a DNS level block, which IT should also do but separately from uBO

    0
  • Jump
    It's probably time to stop recommending Clean Code @ Things Of Interest
  • You're making assumptions about the control flow in a hypothetical piece of code...

    0
  • Jump
    It's probably time to stop recommending Clean Code @ Things Of Interest
  • What you're saying is "descriptive method names aren't a substitute for knowing how the code works." That's once again just a basic fact. It's not "hiding," it's "organization." Organization makes it easier to take a high level view of the code, it doesn't preclude you from digging in at a lower level.

    2
  • Jump
    Option Result library for c#
  • You can't disagree with the fact that Nullable<T> works a lot like an Option<T>. Returning an error is not idiomatic C# code (which would be to throw an exception usually) but if you wanted that, you'd use a Result<T, TError> type or similar.

    2
  • Jump
    Option Result library for c#
  • Null pointers are one thing, C# nulls (with nullable reference types enabled) are another. They behave a lot like an Option monad with the caveat that the static analysis can technically be tricked by incorrect hints.

    3