`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”).
Topics /
The most popular blog posts about software engineering on Hacker News. 14,544 posts.
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”).
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…
Vim is a powerful text editor that improves coding speed & efficiency through its shortcut-based Vim language. While learning Vim can be challenging, it is a valuable skill that can enhance your career as a computer professional.
Why the last thing you should spend time on is your own software factory.
You're probably reading this page because you've attempted to access some part of my blog (Wandering Thoughts) or CSpace , the wiki thing it's part of. Unfortunately you're using a browser version that my anti-crawler precautions consider suspicious, most often because it's too old (most often this applies to versions…
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…
I want to discuss why programming and coding are not the same, and why I can no longer support the Learn to Code movement. I can no longer tell my friends to learn coding. Although I’m passionate about it, it’s too arcane and insular for mainstream practice.
(Discussion on HackerNews)
There are very few universal rules in software engineering, but there are are a lot of near-universal principles. Things like "prefer composition to...
A deep dive into Google Translate (and other browser extensions) interference breaking React and other web apps.
Create beautiful emails, automate campaigns, and track performance. Try it now and see how our tools can drive your business.
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.
This is shorter than some of my other posts, but I keep seeing people doing this wrong. It's even worse now in the LLM era.
Summary: Last year I made a list of four flaws with Haskell. Most have improved significantly over the last year. No language/compiler ecosy...
Scaling reinforcement learning, tracing circuits, and the path to fully autonomous agents
It's not about technology for its own sake. It's about being able to implement your ideas.
Abildskov.io
Sometimes a merge request (MR) doesn't merit a code review (CR) because AI was used in a bad way that harms the team or the project. For example:
DSLs, or domain specific languages, are programming languages that are designed to implement a set of features specific to a particular problem or field. An example could be Make , the build tool, which is a specially designed language for combining ...
Why I don't do Domain Driven Design
A misconception that I held for a really long time was that systems that use SQL (Structured Query Language) are by definition relational databases, and systems that don’t (e.g., MongoDB, Cassandra) are non-relational. It’s easy to understand whether a database uses SQL or not, but what does it mean when we say a…
As of Late 2021, which AWS service should I use to run my new containerized app in production?
A developer I know recently told me that he wasn’t interested in any new opportunities in the short term because his team were about to adopt Fred George’s post-agile concept of Programmer Anarchy…
I've finally implemented the command I keep typing all day: gti. It's a program that displays a badly made ASCII-art animation to punish you for your typing error - and after that magically launches the command you meant to launch. The code is available under an MIT-like license on github - though of course anybody…
Types of register explained, and which are available to pass arguments of different types. Call by value and call by reference distinguished.
On a regular basis, I find myself the odd-man-out when it comes to talking about how to work with Python on Debian systems. I’m going to write this and post it so that I might be able to point people at my thoughts without having to write the same email in response to each thread that pops up.