Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
divan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
511.
▲
by
divan
4y ago
> Years and years of discussions about Go's poor and verbose error handling ...with majority of users saying that it's actually great and simple, unlike "usual" approaches... > Many "features" of Go are b
512.
▲
by
divan
4y ago
Thanks for the reply. One thing I love about Flutter is that it's doing tremendous job under the hood to decide what parts of the widget tree is actually need rerendering. I might be wrong, but that's probably the major aspect of
513.
▲
by
divan
4y ago
that sounds reasonable, thank you
514.
▲
by
divan
4y ago
Can someone provide explanation why SwiftUI is slow? My intuition was that it should be extremely fast, especially on the modern MacBooks. I write quite a lot of desktop apps in Flutter (or run mobile apps as MacOS builds, because it's
515.
▲
by
divan
4y ago
Yes, you can both run apps and open documents. What I'm saying is that "tabbed interface" makes tons of sense for documents, and not so much for the apps. But browsers keep pretending that all apps are documents and deserve t
516.
▲
by
divan
4y ago
Wikipedia is definitely a good example of interlinked documents, indeed. Blog is probably too (editing blog is entirely different process, though, and needs an app — you wouldn’t call Adobe Acrobat “a document” ) What I’m trying to say that
517.
▲
by
divan
4y ago
Some Flarum forum software I run, why?
518.
▲
by
divan
4y ago
Thank you, but I have to disagree here. Yes, it's true that sometimes the line between document and app is blurred. But I would argue it's blurred exactly because we use things designed for document to make apps. Take "link
519.
▲
by
divan
4y ago
I mean "tabs" is just one of many forms of hanlding multiple windows. They make a lot of sense for document viewers and alike. My claim is that browsers are so much bloa..^Wbigger that that. There is no reason to limit web apps to
520.
▲
by
divan
4y ago
> I disagree. They still very much fulfill that purpose. There is a thing called web-development, emerged in the last couple of decades. It's whole purpose is to develop apps using this hypertext document rendering engine. You'
521.
▲
by
divan
4y ago
Nothing. That wasn't my question.
522.
▲
by
divan
4y ago
> App vs document is a false dichotomy. Could you support this with arguments?
523.
▲
by
divan
4y ago
Why people still buying the concept of tabs? Tabs make sense for document viewers. Web browsers are not hypertext documents viewers anymore. They are full-fledged virtual machines for apps (only those that can be written in JS and use types
524.
▲
by
divan
4y ago
No, I'm talking specifically about case of reducing two letters to one.
525.
▲
by
divan
4y ago
And K instead of OK
526.
▲
by
divan
4y ago
less
527.
▲
by
divan
4y ago
> Thus, “Markdown” is two things: (1) a plain text formatting syntax; and (2) a software tool, written in Perl, that converts the plain text formatting to HTML. I believe nowadays most people refer to (1) instead of Perl tool, when talki
528.
▲
by
divan
4y ago
> Also whats up with stuff like unused imports being such a big deal? https://go.dev/doc/faq#unused_variables_and_imports
529.
▲
by
divan
4y ago
> markdown is designed to transform to HTML Is it though?
530.
▲
by
divan
4y ago
That's what I like about this approach in Go - by having no choice you accept that "error path" as "actual functionality". Phrases like "noise created by error handling" start sound like "the incoveni
531.
▲
by
divan
4y ago
Exactly. So much magic and complexity just to perform the nil check behind the scenes. Also it has a bit of educational component. It's like a seatbelt. In some societies people consider seatbealts annoying and irritating thing that re
532.
▲
by
divan
4y ago
Cognitive load never "feels" like cognitive load. Back then in C++ times, I also felt like 10+ min compilation times were non-issue. Until I experienced subsecond compilation times, of course.
533.
▲
by
divan
4y ago
I like the second snippet (The actual CopyFile function). It's verbose at the right level – from the single glance I know what will happen in all possible execution paths. No additional cognitive load on figuring out what's going
534.
▲
by
divan
4y ago
Correct. It's just 20-30 bytes of data.
535.
▲
by
divan
4y ago
I typically store it in the DB along with the image ID (or URL). It's being displayed even before network request to the actual image has started. Works like a charm on slow networks.
536.
▲
by
divan
4y ago
"Khrushchev’s mistake" is a uniquely russian narrative. No western historian would ever use this, you can only get this from russian propaganda sources like "Moskovskiy Komsomolets" or from someone who's influenced
537.
▲
by
divan
4y ago
Perhaps they talked to another Bruce Willis deepfake via zoom thinking it's real Bruce. So meta ironic.
538.
▲
by
divan
4y ago
I don't know either, but it's definitely a common case. They have around 200 issues devoted to startup performance. Meanwhile, NeoVim is consistently starting under 500ms for me, even being heavy loaded with plugins and offering a
539.
▲
by
divan
4y ago
By cold start I mean, I haven't launched the app in the last days, so it's not in any sort of cache or memory pages. No, I don't have any antivirus, and generally very concerned about what's running in the background (
540.
▲
by
divan
4y ago
On my Apple M1 it takes ~33 seconds for cold-start. I use only vim and flutter extention. That said, my biggest complaint is that on this extremely fast computer, the lag between a keypress and a symbol is too big. I'm typing faster
More ›