Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
d0mine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
91.
▲
by
d0mine
1y ago
It reminds me of a large sample in the Reader’s digest poll: https://en.wikipedia.org/wiki/The_Literary_Digest#Presidenti... size along is not enough. The sample may be biased and it certainly is in Waymo case e.g., ro
92.
▲
by
d0mine
1y ago
"Safer on average" needs independent validation.
93.
▲
by
d0mine
1y ago
1. operators use special lookup for dunder methods--on class, not on instance: >>> a+1 # lookup on class 1+1 2 >>> a.__add__(1) # instance method 0 2. There is __radd__ that is called if __add__
94.
▲
by
d0mine
1y ago
Structural typing is a static equivalent of dynamic duck typing. It is compatible with type checkers. Protocols mentioned in the article work without inheritance. A duck doesn't need to know that there is SupportsQuack protocol. If it
95.
▲
by
d0mine
1y ago
No disrespect intended. I’m making purely technical point.
96.
▲
by
d0mine
1y ago
Your 2-3 points remind me of the quote by Ludwig Wittgenstein: “The limits of my language means the limits of my world.” Of course if you limit yourself only to problems that can be effectively solved by type system, then it may work. It
97.
▲
by
d0mine
1y ago
Here's polonaise record from 1952 published in USSR https://youtu.be/UCjuwnWJf88
98.
▲
by
d0mine
1y ago
Do you believe that Rust's type system is as flexible, powerful, and easy to maintain as unit tests in Python?
99.
▲
by
d0mine
1y ago
It may be the exact opposite. You can't express (at least you shouldn't try to avoid Turing tarpit-like issues) all the desired constraints for your problem domain using just the type system (you need a readable general purpose pr
100.
▲
by
d0mine
2y ago
Formulating your assumptions before you run code and check saves you from rationalizing after the fact whatever behavior you happen to observe. Invalid predictions help improve understanding, learn.
101.
▲
by
d0mine
2y ago
It was good but it was not perfect. I remember leaving comments such as “MSDN says X, but the actual behavior is Y, therefore there is Z in the code” The fact that I remember this is the evidence that it was not everyday occurrence that the
102.
▲
by
d0mine
2y ago
Actually, your approach “test yourself first, then learn” is better for learning compared with just learning first according to research.
103.
▲
by
d0mine
2y ago
It may take me a week (or more) to prepare half hour talk. It takes even more time if I have to compress it into less than 20 minutes (think ted talk).
104.
▲
by
d0mine
2y ago
You ask the 3rd person to be present/to review the interview later. It is not perfect but it may provide a necessary perspective.
105.
▲
by
d0mine
2y ago
Isn’t it exactly what alphazero did? “AlphaZero was trained solely via self-play using 5,000 first-generation TPUs to generate the games and 64 second-generation TPUs to train the neural networks, all in parallel, with no access to openi
106.
▲
by
d0mine
2y ago
The point is that the question of selecting a tool is underspecified unless specific context (job) is given. It says nothing about how easy/hard it is. It is not always true (some tools are just better in any applicable domain) but in
107.
▲
by
d0mine
2y ago
Ok. Do tell. If the job doesn’t matter here, what is better hammer or screwdriver?
108.
▲
by
d0mine
2y ago
^ The Eighteenth Brumaire of Louis Bonaparte Karl Marx
109.
▲
by
d0mine
2y ago
"whether hierarchy is better than tags" sounds like whether hammer is better than a screwdriver. Use a tool appropriate for the job. Hierarchy seems more rigid less general than tags but when it works--it works.
110.
▲
by
d0mine
2y ago
What is the point of discussing politics? (not rhetorical). What physical changes in the world do you expect afterwards? You won't undo indoctrination. It just upsets people.
111.
▲
by
d0mine
2y ago
The dose is 5g, not 5mg
112.
▲
by
d0mine
2y ago
Here’s 1% that gives 50% of result. Replace: class C: def __init__(self): self.foo = ConcreteFoo() with: class C: def __init__(self, foo: SupportsFoo): self.foo = foo where Supports
113.
▲
by
d0mine
2y ago
In practice, web browsers accept the tag soup that is sometimes called html and strict xml-based formats failed.
114.
▲
by
d0mine
2y ago
JSON itself is not limited to neither 52 nor 64-bit integers. integer = -? (digit | onenine digit+) https://json.org/
115.
▲
by
d0mine
2y ago
JSON lines is not JSON It is built on top of it. .jsonl extension can be used to make it clear https://jsonlines.org/
116.
▲
by
d0mine
2y ago
I lived through SOAP/WSDL horror with their numerous standards and the lack of compatibility between stacks in different programming languages. Having seen abused XML, CSV formats. CSV is preferable over XML. Human-readability matters.
117.
▲
by
d0mine
2y ago
More likely outcome (at least short-medium term for the next [premature] election) is the return to the status quo. It works as follows: when population is starting to see through your BS, make things much worse so that people will long fo
118.
▲
by
d0mine
2y ago
Does it mean unless your ip is considered “friendly“, you can’t use basic computer utils? Gnu utils seem more accessible (more freedom long term).
119.
▲
by
d0mine
2y ago
Perhaps something like https://github.com/xtermjs/xterm.js can be used to show interactive sessions for TUI apps.
120.
▲
by
d0mine
2y ago
I personally saw how novice Python programmers searched for “Python compiler” while their actual intent was to find Python REPL/execution environment online (pythontutor, ideone, repl.it, trinket.io, etc) Many of this services use “com
More ›