Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomstuart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
tomstuart
4y ago
You may be making a point about what happens by default (and perhaps Ruby’s similarity to Scheme?), but in Ruby you can also say `data.sort!` if you want the `data` array modified in-place. It’s still returned, though.
62.
▲
by
tomstuart
4y ago
A fair complaint, but FYI it’s outdated as of Ruby 3.0 (released in 2020) which includes the `debug` gem [0]. So in Ruby 3.0 onwards it’s as easy as `require 'debug'; debugger` just like you want. Hopefully your build systems will
63.
▲
by
tomstuart
4y ago
Right, I see, because you have to say `method(:foo)` or `-> { foo }` or whatever. To me this is an acceptable syntactic trade-off in exchange for being able to invoke the method with bare `foo` (i.e. variable reads and method calls look
64.
▲
by
tomstuart
4y ago
I’m interested to learn what “first-class functions” means to you. Ruby has both `Proc` and `Method` which would appear to qualify. Is your frustration that you can’t `def foo … end` and then use bare `foo` to refer to it as a value (vs inv
65.
▲
by
tomstuart
4y ago
(2015)
66.
▲
by
tomstuart
4y ago
It doesn’t. This only works once React itself (i.e. the JavaScript code for the library) has loaded, which usually happens pretty quickly. The user-written React components might not finish loading until much later.
67.
▲
by
tomstuart
4y ago
You need somewhere to physically store a secret, plus the ability to do some computation to turn that secret into a time-based one-time code. A lot of people do use their phone, but there’s nothing to stop you using a dedicated hardware tok
68.
▲
by
tomstuart
4y ago
That’s correct. If you’re a maintainer of a very popular gem, as of 15th August you’ll no longer be able to e.g. `gem push` if you haven’t enabled MFA on your RubyGems account. You will of course still be able to log in and enable it. More
69.
▲
Making popular Ruby packages more secure
(blog.rubygems.org)
189 points
by
tomstuart
4y ago
|
45 comments
70.
▲
by
tomstuart
4y ago
“The page remembers the click” was the original intent [0], but the latest version of React includes a feature called selective hydration [1] which can hydrate a component synchronously in response to an event if possible (i.e. without repl
71.
▲
by
tomstuart
4y ago
Yes, sorry, poor choice of words. Fixed.
72.
▲
by
tomstuart
4y ago
Assuming good faith on the part of Leave voters, there was a sustained political and media campaign of straightforward lies (“the economy will improve”, “immigration will be reduced” etc) which convinced a lot of people.
73.
▲
Improved verification of historic Git commit signatures
(github.blog)
1 points
by
tomstuart
4y ago
|
0 comments
74.
▲
by
tomstuart
4y ago
Given that the entire premise of this product is “dynamically programmable buttons whose labels show what they’re currently mapped to”, I completely agree it’s uninteresting if you have no need for dynamically programmable buttons whose lab
75.
▲
by
tomstuart
4y ago
One advantage is that you can map a button to a folder, allowing you to drill down into a whole different set of items. This isn’t functionally different from what you can achieve with a numpad + modifiers, or even just a regular keyboard,
76.
▲
by
tomstuart
4y ago
FYI there’s an (explicitly interpreted, not proc-encoded) implementation of this in https://computationbook.com , including compilation from lambda calculus: https://github.com/tomstuart/computationbook/
77.
▲
by
tomstuart
4y ago
Thank you! This is the clearest explanation I’ve read and it definitely shook something loose in my brain.
78.
▲
by
tomstuart
4y ago
The `Co-authored-by` trailer is your friend here. Even if you completely rewrite their code, give them coauthor credit in the commits and they’ll get the satisfaction of seeing their face in the commit history without the hassle of actually
79.
▲
by
tomstuart
4y ago
You might need `caffeinate -d` to prevent the display from sleeping.
80.
▲
by
tomstuart
4y ago
Aside from being development-only, note that you also need to wrap a component in `<React.StrictMode>…</React.StrictMode>` to opt it into this.
81.
▲
by
tomstuart
5y ago
Yes, it’s a joke. Simon discloses “the secret” in almost every video, so the joke is that it’s always presented as mysterious insider knowledge even though it’s clearly not.
82.
▲
by
tomstuart
5y ago
Gandi.
83.
▲
by
tomstuart
5y ago
I wrote https://computationbook.com/ for that audience.
84.
▲
by
tomstuart
5y ago
It’s from the first issue of Wired UK, a spinoff: https://archive.gyford.com/1997/wired-uk/1.01/adams.html
85.
▲
by
tomstuart
5y ago
I understand that you want a paper book, but just to be safe: have you already seen https://beta.reactjs.org/learn ? It’s really good.
86.
▲
by
tomstuart
5y ago
I don’t want to take sides, but https://nohello.net/ is good too.
87.
▲
by
tomstuart
5y ago
This is the Baader–Meinhof phenomenon: https://en.wikipedia.org/wiki/Frequency_illusion
88.
▲
by
tomstuart
5y ago
“Haych” is common but nonstandard in Britain: https://youtu.be/j4hvh5e8-nw
89.
▲
by
tomstuart
5y ago
“Bug” meaning “insect” is a North Americanism [0]. The article is from The Guardian in the UK, where the non-insect meaning is the more natural interpretation, particularly in a headline (cf “hospital superbug” for stories about MRSA [1])
90.
▲
by
tomstuart
5y ago
I don’t think you’ll find a better return on investment than working through The Elements of Computing Systems ( https://www.nand2tetris.org/ ) which recently got a second edition. It won’t teach you how to make a rendering
More ›