Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 21,844 posts.

Any year
19204

Datastar response to misunderstandings

A recent blog post titled HTMX, Datastar, greedy developer and several Hacker News threads raised concerns about Datastar Pro, pricing, and whether features were “moved behind a paywall”. Here’s what has changed, who Pro is for, and how to achieve some of the same things with the free version.

19208

`std::flip`

std::flip is a little-known utility from the C++ standard library header <functional>: it is a higher-order function that accepts a Callable and returns an equivalent Callable with the order of its parameters reversed (or “flipped”).

19209

Contracts for C

C++ seems to finally converge with their contracts proposal, I decided to give it a try and come up with ideas how such a thing would look for C. This is in early stages, not a full proposal yet, a…

19210

When TDD Doesn't Work

Over the years many people have complained about the so-called “religiosity” of some of the proponents of Test Driven Development. The recent brouhaha over TDD has, once again, brought these complaints to the fore. So I thought it would be a good idea to talk about when TDD does not work.

19215

Performance Analysis of Python's Dict() and {}

Some time ago, during a code review, I had a discussion with a colleague of mine about preferring dict() over {} in new Python code. They argued that dict() is more readable — and expresses intent more clearly — therefore should be preferred. I wasn’t convinced by that, but at that time I didn’t have any…

19223

We memo all the things (2020)

On my team at Coinbase, we ask everyone to use the React performance trinity – memo, useMemo, and useCallback – all the time. For some reason, this is controversial. I’m guessing this has something to do with Twitter. This article explains why we do it anyway.

19224

PEP 638 – Syntactic Macros

This PEP adds support for syntactic macros to Python. A macro is a compile-time function that transforms a part of the program to allow functionality that cannot be expressed cleanly in normal library code.

19230

Sublime Text Build 4213

Sublime Text now ships with Python 3.14 and Python 3.3. Python 3.3 is disabled by default and will be removed in a future version. If you're experiencing plugin compatibility issues you can re-enable 3.3 using the setting "disable_plugin_host_3.3": false .