HNHacker News
TopNewBestAskShowJobs

njonsson

242 karma · joined June 4, 2010

meet.hn/city/29.7589382,-95.3676974/Houston

Socials: - bsky.app/profile/nilsjonsson.com - github.com/njonsson - linkedin.com/in/njonsson - mastodon:hachyderm.io/@njonsson

Interests: DevOps, Mentorship, Privacy, Programming, Remote Work

---

engineering at Oracle Health, ex-Amazon • nilsjonsson.com • hachyderm.io/@njonsson

[ my public key: https://keybase.io/njonsson; my proof: https://keybase.io/njonsson/sigs/tlpsGmnIgG5hqVksdHOm5CYgoxlJII5OkwDkYBXN9Jc ]

submissionscomments
njonsson··on Having your insulin pump die while you're on vacation
The best high-GI food I have found is Welch's fruit snacks. They are superior to glucose tablets: (1) Can be swallowed whole quickly and easily, or dissolved by saliva. (2) More concentrated, so you can pocket or pack more glucose in less space. (3) Can be compressed in a pocket or backpack without turning to powder that leaks everywhere. A packet of fruit snacks is 17 g of carbohydrate, which is small enough to catch moderate crashes and large enough when doubled to catch major crashes.
njonsson··on Virtual violin produces realistic sounds
The sound is more like that of a kayagŭm (a Korean traditional instrument) than violin pizzicato.
njonsson··on Behaviours to avoid in a software architecture role
In 2020, the Amazon Principal Engineer community added a ninth tenet. Much effort went into crafting the new tenet, as was the case with the others. The new tenet may be my favorite of them all.

LEAD WITH EMPATHY

Principal Engineers shape an inclusive engineering culture where others are heard, feel respected, and are empowered. We are conscious of how our words and demeanor impact others, especially those with less influence; we take responsibility for that impact, intentional or otherwise. Our work builds productive relationships across teams and disciplines, and across a wide range of life experiences.

njonsson··on Regexes vs. Combinatorial Parsing (2019)
I got a lot of mileage out of the x modifier, too, until I bumped into the Composed Regex pattern. https://www.martinfowler.com/bliki/ComposedRegex.html
njonsson··on Hash tables
Nitpick: The talk by Dr Cliff Click is dated February 2007, closer to 13 years ago than six years ago.
njonsson··on Antonio Salieri’s Revenge
I’ve performed Jean-Marie Leclair in recital — the violin sonata, op. 9 no. 3 in D major (see https://imslp.org/wiki/12_Violin_Sonatas%2C_Op.9_(Leclair%2C... ). There are beautiful recordings of this piece by Szeryng and Oistrakh.
njonsson··on Transposing Instruments
Simpler, yes, in the sense that just one instrument (the soloist) would have to play notes they were not prepared to play. But a concerto (typically a long piece for one or more solo instruments accompanied by orchestra) showcases the solo instrument, both by exposing it and by demanding much from the soloist’s technique and interpretive powers. It’s a shorter order for the orchestra to adapt than for the soloist to do so.
njonsson··on Want to Be More Creative? Take a Walk (2014)
“Solvitur ambulando.”
njonsson··on A Competitive Programmer's Handbook
The size of S is k.
njonsson··on The Best Way to Learn Anything: The Feynman Technique
It only applies to procedural knowledge, of course, but there’s a similarity here between “teaching it to a toddler” and writing a program that does it. I often find huge gaps in my domain knowledge and understanding, not while I’m composing a readme up front but while I’m writing code.
njonsson··on What is BuzzFeed, really?
Unless they chose the ternary path. It’s closer to base e and therefore closer to optimal than binary.
njonsson··on Probability, Paradox, and the Reasonable Person Principle
Unless I’m mistaken, if Alice pays 9% of $117,000 (i.e., $10,530), then Bob pays 11.7% of $234,000 (i.e., $27,400).

An 18% tax rate would apply to earners of $1,170,000 (i.e., $210,600 in tax).

The high end would be a 63% tax rate applicable to earners of $117 billion (i.e., $73.71 billion in tax).

njonsson··on How new data-collection technology might change office culture
This calls to mind the office scene in Neal Stephenson’s Snow Crash in which Y.T.’s mother reads a directive from her employer. She self-consciously scrolls through the dull text — aware of her employer’s automated surveillance system as she does so — pausing and returning to an earlier section of the text to create the impression of careful reading.
njonsson··on Show HN: TypeSlab – simple, shareable typographic posters
I’d love to see a permalink feature. If you don’t want to store poster definitions, put them in the URL.
njonsson··on Questions for Donald Knuth
DIY biotech. Bespoke pets for the risk-averse, and bespoke personal physiology for the rest.
njonsson··on How This Freelancer Hacked His Hourly Rate
It strikes me that an hourly rate that increases over the life of a project might be a way for a freelancer to skew his billable hours toward new development and away from maintenance. It also reflects the fact that the freelancer’s knowledge of a particular client becomes more valuable over time. On the other hand, an increasing hourly rate is a tougher sell to potential clients.
njonsson··on Avoiding Heart Disease
I had an elevated Lp(a) level and was able to reduce it dramatically by taking niacin, under the supervision of my cardiologist. YMMV?
njonsson··on San Francisco, I Love You But You’re Bringing Me Down
I have to admit that the “OVER!” scene from “Portlandia” came to mind as I read Tom’s post. http://youtu.be/YlGqN3AKOsA
njonsson··on Why do web sites and software take so long to build? And why is it so hard?

  Plus, in the history of the world, he said, is there one
  thing you can think of that has been hand-made, and on such
  a large scale as software, that was as complex?  [I cannot
  not.]
Yes: musical compositions. The largest software projects are more complex, and take longer to complete, than symphonies. But the failure rate is probably comparable.

There are probably plenty of commercial composers who write music mostly because it’s a job they can do, and they derive a modicum of satisfaction from it. But the composers who have made history — just like the programmers who have made history — do it because they must. If they give it up, they cease to do what they were made to do.

njonsson··on John Resig: JavaScript as a First Language
All decent suggestions. I quibble with this, though:

  // Don't do this:
  function getData() { }
  // Do this instead:
  var getData = function() { };
The assignment is righteous, but by omitting the function’s name, you make stack traces more difficult to follow. Better this instead:

  var getData = function getData() { };
njonsson··on Linus: please write good git commit messages
Making semantic line breaks (such as for bullets) is understandable, but it still feels wrong that we’re otherwise doing the job of `fold`. I started breaking lines in commit messages because it’s convention, but I still believe this is a tooling issue.

This shell script wraps wide commit messages to the width of your console.

    GIT_PAGER="fold -s -w`stty size | awk '{print $2}'` | less" git log $@
njonsson··on Dropbox Easter Egg?
There’s an irreverent wagging tongue in there, too.

   greetings

       to

  AAPL    GOOG

   :)  :P  :)

      MSFT
Was it prophetic of iCloud and Google Drive??
njonsson··on Java's Comb-Over
That’s the most compelling argument I’ve heard for regularly paying down technical debt, and/or for acquiring it with great care. The craftsmanship argument — made by Uncle Bob and others — holds guilty appeal for me as a hacker but strikes me as self-indulgent. What’s compelling about your perspective here is its rational basis in the interest of the product owner. I had not thought of user stories as an abstraction, and therefore a probably leaky abstraction.
njonsson··on H-P's One-Year Plan
An amusing quip, but the comparison only serves to beg the question. McDonald’s is ostensibly in the hamburger business, but the engine room of the company is real estate. See http://money.howstuffworks.com/mcdonalds2.htm.
njonsson··on Warren Buffett: I could end the deficit in 5 minutes.
Successful economic models cannot be divorced from the cultural context in which they arise. American-style Capitalism was born during the Protestant Reformation. This religious movement provided a theological basis for individual property rights and free enterprise, as well as the understanding that actors in such a system must be restrained by conscience and charity toward their fellows.

We cannot expect to solve the problems of human nature via economics or public policy when the philosophical and religious landscape has shifted.

njonsson··on Collect HN: Aprils Fools
“What’s new in htty v1.3.4: Rails view emulation — PUT and DELETE are sent as POST requests with form data of ‘_method=put’ or ‘_method=delete’.”

http://twitter.com/get_htty/status/53649180652093440

njonsson··on Github reviews as a way to improve code quality?
http://test.rubygems.org addresses all your concerns related to RubyGems, except that it’s an opt-in thing — you must configure RubyGems to run tests upon gem installation, and the results are optionally uploaded for use by the gem author.

A pearl from Perl, of course.

njonsson··on Why pi?
On a purely superficial note, here are Knuth's recent Google searches, according to the Safari search box dropdown list that flashes by at 2:22:

• google calculator

• wolfram alpha

• williams cutlery

• craig gentry

• "the lost chord"

• acrobat scroll speed

• html bulleted list

• html subscript

• doerr "protocol partition number"

njonsson··on R.I.P. Ruby Hash Rocket Syntax 1993-2010
No, you aren't.
njonsson··on Dead End Jobs: Are You Suffering from Stockholm Syndrome?
Agreed. I spent several years shackled to the Microsoft tool chain, exhibiting multiple symptoms of Stockholm Syndrome. I'm grateful to be free.
Page 1 of 2Next →