Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sago
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
571.
▲
by
sago
11y ago
Right, and you have to figure out who changed the model in React too. You don't get magic traceability. If you want to know what caused a change, neither helps. If you want to know what changed the DOM, both allow you to do that. Only
572.
▲
by
sago
11y ago
$.post('/login', credentials, function(user) { $('header.name').text(user.name); }); > I can tell you from experience that this code will ruin your life The alternative isn't React. It
573.
▲
by
sago
11y ago
Can you give an example of a 'linear usage of continuation', that doesn't have the continuation be a data structure (or data type)? I'm curious. The question is genuine, not passive aggressive, I don't understand th
574.
▲
by
sago
11y ago
I wasn't trying to be picky (though the last line of my post came over a bit tetchy, sorry) I was more pointing out that you're capturing what you do with the continuation, but not what the continuation is . The continuation is
575.
▲
by
sago
11y ago
Continuations work the same way without a stack, incidentally. You are still saving the FP, either way. I'm not aware of languages that don't have a FP of some kind. Interesting on the last point, that you'd find coroutines h
576.
▲
by
sago
11y ago
Is it cleaner to view program executing as a function between domains? I don't know. I agree it gives rise to very convoluted explanations where you have to 'imagine' that various things that aren't happening are happeni
577.
▲
by
sago
11y ago
It's a very simple explanation, which is partly true, but misses the point of what the continuation is. You've described the effect of resuming a continuation, but not the continuation itself. I can store a continuation in a varia
578.
▲
by
sago
11y ago
> You can think of each point in the code as having a continuation which is what to do next immediately after it. You can think of it as anything you like. As a plate of burritos, even (to borrow the monads cliche). But why would you wan
579.
▲
by
sago
11y ago
When I came to implement call/cc in my Scheme interpreter, I realised that a continuation is just a data structure holding the current function pointer and call stack. To create a continuation, scheme gives you call/cc which creat
580.
▲
by
sago
11y ago
When I was an undergrad doing AI at the start of the 90s, the 'general AI architecture' seemed to already be a passing phase. Though many of the proposed architectures were not symbolic, the approach felt part of the symbolic AI
581.
▲
by
sago
11y ago
What would your feeling be about a mandatory tag for paywalled content, like the [pdf] and [video] tags. Pdf in particular, to me, seems less problematic than paywall content, though video I can understand is worse for many people. Is it wo
582.
▲
by
sago
11y ago
I think you got the wrong end of the stick on my point, sorry if I confused the issue. I wasn't making it harder than it is: I was suggesting the judgement had. If you come in to work and make death threats to employees, you may be com
583.
▲
by
sago
11y ago
Right, I was trying to separate two things: a) chronic stress, and b) violent threats which are combined in this case. By ruling based on a), rather than b) (which is how it sounded to me from the write up, but I've no read the detaile
584.
▲
by
sago
11y ago
It seems a little question-begging that this was ruled on in terms of job competency. I think it clearer to make the point made in the article: the rights of a disabled worker to receive reasonable accommodation does not trump the right of
585.
▲
by
sago
11y ago
Isn't this the premise of Conservapedia. It doesn't claim to be biased, but to be free of the hegemonic liberal bias of Wikipedia (and academia, business, most forms of religion, etc). There is no trusted source for everyone. Anyo
586.
▲
by
sago
11y ago
I can't write code nearly as fast as I used to. I am much better at writing less code, though. And though it took a while (too long), I've figured out that it's the code you don't write that makes you great. So I'
587.
▲
by
sago
11y ago
I didn't flag it, and I wasn't advocating that. I asked about tagging . Thanks for the plan on the FAQ. I'm sure it is just something you osmose being here for a while. I'm sure if the article looked interesting enough
588.
▲
by
sago
11y ago
Thank you. I didn't see it in the faq. Is it something one could suggest mandatory tagging for? Like [video] and [pdf], since a curious looking link might not be worth clicking if a) you need to wait for it to download or play, or b) y
589.
▲
by
sago
11y ago
Is there any rule or convention on HN that you shouldn't link to content that requires you to pay to read?
590.
▲
by
sago
11y ago
> it should be respected regardless of font size, monitor width, etc. I don't think anyone would suggest it is magic. It is a convention that is somewhere near to being good, and is so widely used that it is heavily tool supported,
591.
▲
by
sago
11y ago
I could cut half of my editors off, of course. But then I'm loosing even more context. And I have a shell output that is full width but not very tall, so I can't see as much context, and I have to scroll my code more. Again, this
592.
▲
by
sago
11y ago
query = villain.query_joke_formats_and_transports() formats, transports = query or formats, transports = ( villain.query_joke_formats_and_transports()) or formats, transports = \ villain.query_jo
593.
▲
by
sago
11y ago
Nobody is suggesting that people Can't view more than 80 cols. But many people have their machines and environments set up for 80 cols. They have their windows laid out based on the code they're writing, and then they load a ne
594.
▲
by
sago
11y ago
> (leave those for i, j, k etc) Why use them then if you have autocomplete? Since character variable names are useful as very short conventions, I'd never want to see them used generally. Someone working in this code would have to k
595.
▲
by
sago
11y ago
We each have different tastes, yes. But, coding standards aren't about tastes, they are about coordinating large numbers of programmers to write code in consistent ways. PEP 8 gives the 'double indentation' as standard, rathe
596.
▲
by
sago
11y ago
> But this doesn't help readability. It just adds complexity for the sake of fitting into 80 characters. But 'for the sake of' implies that it has no other purpose. But the purpose is readability. It will help readabilit
597.
▲
by
sago
11y ago
I think it is pretty essential for boolean expressions too, yes, anything that isn't a single comparison, at least. Interesting you find aliasing in variables 'dirty'. Would you feel dirty writing something like def my_
598.
▲
by
sago
11y ago
No continuation character needed outgoing_buffer = a_function( descriptive_keyword=max_exchange_buffer_length_bytes ...) Breaks nice and semantically. Calling functions with arguments on new lines is very pythonic,
599.
▲
by
sago
11y ago
> 80 is such a waste of space on a modern display. You're assuming you have just one window open, aren't you? There's less wasted space with 80 cols if you have multiple columns (of the same file, or different files). The
600.
▲
by
sago
11y ago
Interesting, do you do much unit testing for code you write? And you know you can put different parts of the same file in columns too? I often need to write code that is coupled to another part of the same file.
More ›