Recent submissions

Comment · 3 years ago
The trackpoint on Thinkpads is fantastic once you get used to it.
Comment · 4 years ago
But isn't that pretty much the distinction between value and reference types?
Comment · 4 years ago
https://fr.wikipedia.org/wiki/Grave_(titre) somewhat equivalent of count or earl
Comment · 4 years ago
My solution was to close the tab...
Comment · 4 years ago
In Python you could do something like:

  class Base:
     def func(self):
         print("In Base.func:", self.name)
  
  class Child:
     def __init__(self, name):
         self.name = name
     func = Base.func
  
  c = Child("Foo")
  c.func() #=> In Base.func: Foo
Comment · 5 years ago
Most alarms wake you at a certain time, not a certain location.
Comment · 5 years ago
Actually it seems sum is special cased to fail for strings, but otherwise you are correct
Comment · 6 years ago
One big reason is that ubuntu splits out venv into its own package basically "breaking" python. People then don't know about the venv module and continues using the virtualenv, both due to this preceding venv, and because that is usually the word used to describe the concept.
Comment · 6 years ago
Like which nu | xargs dirname
Comment · 6 years ago
No, you need an editor that abstracts away the indentation and uses the existing style of the file. I use the tab key to indent code, my editor (Emacs) is configured to just cycle through sane choices.
Comment · 6 years ago
Because you can see their usage as a series of "points" linked to exactly one other point, that forms a "line", as opposed to other systems where you could have more of a graph or tree.
Comment · 6 years ago
Comment · 6 years ago
And is that so bad? So often i did stuff like that, then finding I actually need the result of x.calculate_weight() inside the condition, or to debug it or log it in some way. Then it has to be extracted anyway.
Comment · 6 years ago
Comment · 6 years ago
What difference would it make whether the change had been called 3.8 or 4.0?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton