Recent submissions

Comment · 11 months ago
Comment · 1 year ago
Exactly. I was actively reading until I reached that first example. Someone giving me such responses would make want to slap them in the face. Are you some old version of ChatGPT??
Comment · 1 year ago
3) looks like you read 'underlined' as 'undefined'
Comment · 1 year ago
Comment · 1 year ago
Related: https://github.com/pcdv/jocket

Drop-in replacement for java.net.Socket using shared memory (and optionally, futex for notification)

Comment · 1 year ago
On my phone (Pixel 5) I don't need to unlock to take a picture (double click on power button) or switch to the next song (slide menu down, click Next).

Not sure if it helps. Have not tried the app yet.

Edit: sorry, didn't see the almost identical answer

Comment · 2 years ago
Why the ** do they have to use a 8.9MiB png as hero image? I guess it was generated by AI?
Comment · 2 years ago
Comment · 2 years ago
I had two encounters with Lua many years ago.

The first to write "stored procedures" in Redis (I forget the correct terminology). It allowed to improve the performance of Django endpoints by an order of magnitude.

In the second, I wrote a Wireshark plugin (also not sure of the proper term) to dissect a proprietary protocol.

I don't remember the details but this is not a programming experience I look forward to renew... (Same feeling about Perl btw)

Possibly indices starting at 1 were the most disturbing.

Comment · 2 years ago
IntelliJ has become pretty powerful with Git these days.

Squashing, dropping commits, rebasing. Even interactive rebase can be done in a few clicks.

I sometimes pop up IDEA to do some non-trivial cleanup in a repo. Even if relatively fluent with the command line, it saves me a lot of time.

Comment · 2 years ago
This article made me conscious of my use of the mouse: I realize that I move it only with a ~3cm square, which allows to reach all corners of the screen by only moving my fingers, while the base of my palm stays "locked" to the desk. When using multiple screens, the mouse does some quick hops to reach them, but almost never leaves that square.

This requires configuring the mouse to have sufficient "speed". I've never had any musculoskeletal disorder, probably thanks to making such small moves with my hand and staying relaxed.

Comment · 2 years ago
Comment · 2 years ago
Yep, I was not excluding muscle memory when I said it had to do with muscle. It is true that breathing through the nose seems effortless (at least when resting).

The "reeducation" consisted in a few 30 minutes sessions (probably around 5, not sure) and I don't remember having done any conscious effort to breathe through my nose after that. It just seemed easy.

That said, I still have to breathe through my mouth when running.

Comment · 2 years ago
I did the same 25y ago, as prescribed by my allergy doctor. It was called (translation from French) "breathing reeducation", and it was roughly interval training: breathe fully in through your nose, then blow into a pipe (connected to a spirometer) at various speeds.

Before that, I was mostly breathing through my mouth. It was challenging even to eat a sandwich while walking :). Since this reeducation, I only breathe through my nose with no effort. I'm willing to believe it indeed has to do with muscle.

Comment · 2 years ago
I write (at least) 2 kinds of tests:

- TDD, which as you say describes the system's behavior. But it often deals with the nominal cases. It is hard to predict all that can go wrong in the initial development phase.

- tests designed to reproduce a bug. The goal of these to try very hard to make the system fail, taking inspiration with the bug's context

Maybe this LLM test generator could allow to be more proactive in the second kind?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton