Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fuzzy2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
57 ms
·
691.
▲
by
fuzzy2
7y ago
Hm. Not sold. Sure, you can write terrible code with classes. But that also works great without classes. > I’m terrible at making good abstractions with classes. Then don’t. Or only do it after everything is done and you have explored th
692.
▲
by
fuzzy2
7y ago
Why WebAssembly? Just bake ad code into a SPA and that's it. Random elements with random names at random positions in the DOM, positioned using styles. Quite low-tech. If implemented properly, it cannot be blocked. At all. Except block
693.
▲
by
fuzzy2
7y ago
The problem is that you cannot figure out the actual requirements. In every non-trivial application project I had so far, the requirements (and there were lots of them) were simply not correct. The requirements the actual users created, tha
694.
▲
by
fuzzy2
7y ago
I believe the best idea is to have “hand-crafted” bitmaps for (96 ppi) sizes 24 px and less. Especially 16 px icons are very hard to get right. For 32 px and above, vector images are a valid choice. Now we just need a file format that combi
695.
▲
by
fuzzy2
7y ago
It means to allow only expected algorithms. Because as critics rightfully point out, without any whitelisting, you can just specify that your JWT does not have a signature and then it’s a valid token, whatever the contents.
696.
▲
by
fuzzy2
7y ago
I’m always amused that with JWT, there never appears to be any separation between JWT-the-storage-format and JWT-what-I-do-with-it. JWT as a storage format is great indeed. If you pin the signing/encryption algorithm. Otherwise you sho
697.
▲
by
fuzzy2
7y ago
I didn’t, because I switched to a different type of university. I could have, though. I’m not saying science should be only in the mind or maybe pen and paper. I’m saying CS should not have a “how to computer” course.
698.
▲
by
fuzzy2
7y ago
Visual Studio isn't native though. It's .NET and COM. That's also why we're still stuck with 32-bit VS.
699.
▲
by
fuzzy2
7y ago
Yes, it is exactly this naming that somehow irks me. It somehow seems to imply that this should be part of the regular CS curriculum. It should not. Indeed, universities should once again become a place where you go to pursue a career in sc
700.
▲
by
fuzzy2
7y ago
That’s cool. Now, on to my possibly unpopular opinion: This isn’t what computer science is about. In fact, you don’t even need to use a computer to do computer science. Sure, some stuff you learn in CS can make you a better software enginee
701.
▲
by
fuzzy2
7y ago
With the help of an additional “proxy”, you can. One such proxy software is Apache Guacamole. It doesn’t only do remote desktop, it also does SSH.
702.
▲
by
fuzzy2
7y ago
> Why does a client <-> guacamole <-> VNC connection be less inefficient in terms of bandwidth compared to a direct client <-> VNC connection? Because it’s not using the VNC protocol. It’s the Guacamole protocol. It is
703.
▲
by
fuzzy2
7y ago
My recommendation: Use Docker. No need to deal with all the gritty details. If needed, reverse-proxy it. Guacamole is (in my experience) unfortunately rather inefficient concerning bandwidth. You can’t compare it to Steam Link either, becau
704.
▲
by
fuzzy2
7y ago
Actually didn't know about `GroupByˋ. Quite strange, seeing how it builds buckets almost exactly like ˋDictionary<K, V>ˋ, according to Reference Source. Thanks for your insight. I also found out .NET Core 3 has pre-sized versions
705.
▲
by
fuzzy2
7y ago
BenchmarkDotNet looks cool, thanks for that! The problem is that I never had problems! (With LINQ-to-Objects performance.) That’s why I’m asking in the first place. Maybe I intuitively avoided all the pitfalls, who knows. It would be cool i
706.
▲
by
fuzzy2
7y ago
But that’s ~one small-ish object per operator. Unless you’re using `SelectMany` or otherwise generating queries “in a loop” I don’t see how that could be so bad.
707.
▲
by
fuzzy2
7y ago
I’m interested in what performance problems you’re seeing. Maybe then I won’t fall into the same trap in the future. Off the top of my head, the only possibility I see is allocating objects with `Select` or the like. If one can avoid that,
708.
▲
by
fuzzy2
7y ago
Hm okay. If it’s not “compatible” with streams, higher-order functions and whatnot I can see why it’s not popular. A pity, really.
709.
▲
by
fuzzy2
7y ago
Didn’t Java require all exceptions be declared in the method signature? (Haven’t used it in years.) I think that’s the best solution. You declare what error conditions could arise, but not using magic numbers. The caller can then decide whe
710.
▲
by
fuzzy2
7y ago
I prefer not to go to skiing areas for hiking. It’s usually quite boring with all the destroyed/missing vegetation where the ski trails are.
711.
▲
by
fuzzy2
7y ago
I don’t think so. If you’re just spinning up a Windows VM then yes, your Windows guy can take it from there. But that’s not cloud computing. That’s just a “server”. To really use Azure with secured applications using databases, logging, sto
712.
▲
by
fuzzy2
7y ago
Previous discussion: https://news.ycombinator.com/item?id=21939637
713.
▲
by
fuzzy2
7y ago
It’s mainly for use in stronger isolation (ie. VMs instead of just containers). In a container, the kernel is already up and the application just has to start. In a VM, that’s not the case. By making the application “the kernel”, very fast
714.
▲
by
fuzzy2
7y ago
On templates: Weeeell, no(-ish). Angular templates are text. They are checked during AOT compilation or otherwise at runtime (were most type information is gone already). And maybe at some other point I don’t know about. The Angular Languag
715.
▲
by
fuzzy2
7y ago
Maybe because React is small (API surface) and does (or is felt to do) “one thing”. It is easy to wrap your head around it, even without fully understanding, say, the Virtual DOM diffing. Angular is very different in that regard. I recent
716.
▲
by
fuzzy2
7y ago
The heatmaps somehow look all wrong to me...? Almost every percentage has the 40+% color.
717.
▲
by
fuzzy2
7y ago
> pywebview Uses Edge or IE on Windows by default. Nope nope nope. :D
718.
▲
by
fuzzy2
7y ago
Oh but maybe he did. It's just that you're looking at the compiled version.
719.
▲
by
fuzzy2
7y ago
When I still used Android, lots of apps would put all sorts of data on the "SD card" storage. This could've included credentials.
720.
▲
by
fuzzy2
7y ago
IIRC the data lines are required for the phone to charge quickly. Without them you're limited to just 500 mA instead of up to 3 A.
More ›