Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sago
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
78 ms
·
631.
▲
by
sago
11y ago
> they ate every day at the same table ... and at night their beds did not separate them That doesn't read to me like a statement that they shared a bed, necessarily (though I acknowledge that, even if they did share a bed, it would
632.
▲
by
sago
11y ago
I suspect the idea sounds 'wrong' when talking about adults, but most people feel it is intuitive when talking about young children. Which person should you rescue first, the 4 year old or the 64 year old? These issues I suspect a
633.
▲
by
sago
11y ago
I grew up with people having natural colored teeth. People with artificial teeth color were those with false teeth. I find myself gradually getting used to it, but initially it did look like these people had quite serious dental problems: a
634.
▲
by
sago
11y ago
> Whether the cost in disk activity is worth it If the comparison is with using Git, then it is clear you're not so resource constrained that you can't countenance running MD5s, since Git would run shasum. I think in our curren
635.
▲
by
sago
11y ago
A fun project, but I wonder what the logic of doing this with spots was. Geometric lathes form continuous lines, afaik. I think it detracts quite strongly from the structure.
636.
▲
by
sago
11y ago
For fairly modest sites or projects 1. Configure your webserver to hide common directories and files. 2. Don't store passwords / credentials in version control. 2a. If you use a test suite, add a test to verify this. 3. Have a
637.
▲
by
sago
11y ago
Amen! Use rsync --checksum --ignore="..." unless you have a damn good reason not to (--checksum is essential to prevent corruption/malicious modification, without it you are implicitly assuming the version on the remo
638.
▲
by
sago
11y ago
So do I. It's a pattern. But you don't create things a particular way for no reason. My point is about being able to see the point. I get the sense that there are people who think Monads are a fundamentally powerful pattern for st
639.
▲
by
sago
11y ago
Yes, that was the subtext of my point: the priorities are wrong, if the mission is to 'protect and serve'.
640.
▲
by
sago
11y ago
Thanks again. Sorry, I wasn't talking about Haskell. Following the OP I was talking about the merits of using these concepts or structures in other languages (C++, as per the OP, in particular). Of course, in a language with strong sup
641.
▲
by
sago
11y ago
Thanks, I really appreciate your responses. What's to stop you passing a struct or object with the two monadic functions attached, or ignore the function requirement (for the case of state) and pass the struct with the state and result
642.
▲
by
sago
11y ago
Right, and some of that makes sense to me. It makes sense in some cases (Maybe was the example I gave, a Promised value another) to tie such things directly to a single typed value. But what I was querying was, is this implicitness a good m
643.
▲
by
sago
11y ago
> so the statement is patently false or a complete exaggeration. Oh, don't misunderstand me, it could very well be either. I'm not claiming to have discovered this based on extensive knowledge. Thanks for the link. So the CVSS
644.
▲
by
sago
11y ago
> was struggling to both swim and hold their child above water Rescuing active drowning victims (this kind of drowning) is very dangerous, for that reason. The victim won't just hold you, they'll climb you. And keep climbing
645.
▲
by
sago
11y ago
Thanks. So the issue is that Monads save us having multiple returns? That makes sense.
646.
▲
by
sago
11y ago
"nothing ... is more important than officers’ personal security" I'm not sure this is true. If it were, why would they put themselves into potentially violent situations? It seems to me the priorities are 1. Make the arrest.
647.
▲
by
sago
11y ago
Here's what I don't get with Monads, why I've not felt the need to create a Monad-like system in my (non Haskell) code. The 'world' is carried on the back of one parameter, right? So if I want to run a function ta
648.
▲
by
sago
11y ago
Watch the lifeguard during this. She's covering her area, but stops sweeping it a few seconds into the vid, she looks down, checks back towards the middle, looks away, checks back. She begins to move into space to enter as soon as the
649.
▲
by
sago
11y ago
These?: https://www.youtube.com/watch?v=L0KTqPloUiU
650.
▲
by
sago
11y ago
I did count okay, and attempted to remember people, especially those I wanted to keep track of: anyone on their own, weak swimming individuals, people who might have their mind elsewhere, etc. A whole count and a count of the groups was eno
651.
▲
by
sago
11y ago
When I trained lifeguards this was the most important lesson, bar none. I personally have never seen IDR look like 'climbing a ladder' (hands are usually out sideways, though I'm not doubting other's more comprehensive e
652.
▲
by
sago
11y ago
This is something I'm struggling with as I attempt to educate myself more about security. I was a bit disappointed he went on to talk about the risk of a stunt , because there is virtually no quantifications of risks in anything I
653.
▲
by
sago
11y ago
Python didn't used to have such flexible classes. It has migrated that way over time. So 'dick move' doesn't seem to be a valid criticism, to me. That said, Python is a hybrid under the hood. It has become more prototypa
654.
▲
by
sago
11y ago
Indeed, the problem is on code bases or teams with multiple ways of doing the same thing. I define new objects with. var foo = Object.create(bar); You do var foo = new Bar(); Amy does var foo = Bar(); and Ellen do
655.
▲
by
sago
11y ago
You can't inherit a class from an instance in python. Classes and instances of classes are distinct (though the semantics aren't equivalent, a class is described as an instance too, but of a metaclass, not of its parent classes).
656.
▲
by
sago
11y ago
> instead of 200 ad-hoc remakes of the same thing I think that's a good argument for including the syntax, though it raises me from 'anti' to 'ambivalent'. But yeah, figuring out random coder's favourite OOP
657.
▲
by
sago
11y ago
I was responding to the person responding to you mostly, but thanks for clarifying, I'd not taken your issue seriously in my reply. Having just a deprecated macro seems very narrow and special case to me. Something like FF's getSo
658.
▲
by
sago
11y ago
Of course all reuse is somewhat similar, but dividing things into separate categories (class, instance, metaclass) and enforcing rules on how they relate isn't a 'just', that's what class based inheritance is. The issue
659.
▲
by
sago
11y ago
The 'cloning' is abstract: it doesn't refer to an actual duplication. Typically code is delegated for performance, and data is copied or constructed. JS is prototypical. You identify the key point: there is no distinction bet
660.
▲
by
sago
11y ago
But decorators are just syntactic sugar around functions. You can have them now with; var deprecated = function(fn) { console.warn("Deprecated!"); fn.apply(this, arguments); }; then var oldMethod =
More ›