Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unscaled
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
301.
▲
by
unscaled
3y ago
Looking at what AOP is still used for nowadays, it's pretty clear that the killer application for AOP was always logging (and nowadays that would also include tracing). There were many other suggested use cases of course: transactions,
302.
▲
by
unscaled
3y ago
The relationship between Kotlin and Java is not the same as TypeScript and JavaScript. TypeScript is intentionally a syntactical superset of JavaScript. It only adds type annotations and nothing else. This allows TypeScript to be easily com
303.
▲
by
unscaled
3y ago
While virtual threads will be stable in Java 21, Structured Concurrency is still a preview feature. You probably won't see it in production anytime soon. Preview features require a special flag when compiling and running them, and they
304.
▲
by
unscaled
3y ago
I have to say that the long-s looks quite horrible in Verdana, and probably most other sans-serif font. That makes sense, since most Sans Serif typefaces significantly postdate the abandonment of the long-s. If you want to see how it shoul
305.
▲
by
unscaled
3y ago
I think the view of asynchronous functions as "upwardly infectious" comes from focusing too much on JavaScript. Async/Await arguably[1] first debuted on C#, and in C# you could always call Task.Wait() or Task.Result to block
306.
▲
by
unscaled
3y ago
I'm pretty sure the designers of Rust knows about CSP. Rust has Channels in the standard library after all: https://doc.rust-lang.org/rust-by-example/std_misc/channels.... Rust Channel have the nice addition
307.
▲
by
unscaled
4y ago
GDPR does not allow forcing you to get a consent by preventing you from using the service: "Consent is presumed not to be freely given if it does not allow separate consent to be given to different personal data processing operations d
308.
▲
by
unscaled
4y ago
Third party cookies aren't the only thing that's tracking you. You can be tracked by first party cookies, local storage, your IP address, browser fingerprinting and other techniques. GDPR requires websites to get your explicit con
309.
▲
by
unscaled
4y ago
The main issue with AES-CBC+HMAC (besides speed), is that unless you're using a library that offers a complete primitive that combines these algorithms[1], you will have to combine the encryption and MAC yourself. In this case, you wil
310.
▲
by
unscaled
4y ago
This is a fork of tptacek's 2015's Cryptographic Right Answers Gist [1]. I think the original 2015 file is somewhat better than this fork. The fork is more up-to-date, but just offers too many options and is probably to confusing
311.
▲
by
unscaled
4y ago
> It's not so much a question of different is bad, it's that having one of the six positions for your car's stick shift be marked 'Self-destruct' is... Sub-optimal. I'm sure you're smart enough to opera
312.
▲
by
unscaled
4y ago
Sure, GOPATH really sucked, but that's why we got Go Modules. I don't think it's fair to compare Python to Go anymore. I wish Python got a standard integrated solution for package management that works. pip doesn't cut i
313.
▲
by
unscaled
4y ago
Firing full-time employees in Japan is quite hard. If the company is taken to court, the burden of proof is quite high. Disclaimer: I'm not a lawyer, so all that I say here is my personal understanding, from working in Japan, but also
314.
▲
by
unscaled
4y ago
Teams does not use proper markdown formatting. In both Teams and Slack you can open a code block with three apostrophes (```), but in Slack you can also use three apostrophes to close it. In Teams that doesn't work - the only way to cl
315.
▲
by
unscaled
4y ago
XMLHttpRequest was available since Firefox was called Firefox[1], and it should have been at least partly functional in 2002 when Phoenix 0.1 (the predecessor to Firebird and Firefox) was released. In 2004, Firebird just got renamed to Fire
316.
▲
by
unscaled
4y ago
> (e.g. data races) absolutely do put the program into an unknown state. Data races do not necessarily result in panics. Many (perhaps even most?) data races would not result in panic but just in garbled, missing, duplicate, out-of-orde
317.
▲
by
unscaled
4y ago
Joking aside, you could clearly plot the probability of running into a runtime error by programming language. Of course, a language with less runtime errors is a far cry from being a panacea. Avoiding runtime errors is not the same as avoid
318.
▲
by
unscaled
4y ago
This is equivalent to asking "Why the heck are you writing code with bugs?" Sure, if we could write code without bugs, we wouldn't need to suppress panics. But since we do tend to write code bugs and some of them are bugs tha
319.
▲
by
unscaled
4y ago
The original vault format seems pretty badly designed (unencrypted URLs, low-ish number of rounds even for the time, and of course ECB). With this shoddy design, it's hard to expect the developer to be smart enough to add an intermedia
320.
▲
by
unscaled
4y ago
UUID also suffers from a serious issue: there is no standard way to encode them as string and in binary format. In binary, UUID can be encoded as Big Endian or Little Endian or even Mixed Endian, and while the string encoding is usually l
321.
▲
by
unscaled
4y ago
The part that was last touched in 2019 is the spec + homepage. By this measure, UUID was last touched in 2005 (if we count RFC 4122). Most ULID implementations are still actively maintained and people are still using it in production. Most
322.
▲
by
unscaled
4y ago
I haven't used Pleco that much, so I wonder what you're referring to. Is that: 1. The dictionary app (excluding the dictionary). 2. The built-in (free) dictionaries (PLC and CC-CEDICT). 3. The paid add-on dictionaries. 4. The add-
323.
▲
by
unscaled
4y ago
> I understand your perspective though I disagree with some of the observations, but I still don't see why any of this should convince us to switch strategies for Java [...] I'm not really arguing for that. I'm really not
324.
▲
by
unscaled
4y ago
> Then let me explain. While some programmers (~10% by my educated guess) like languages with lots of features, but most don't; really don't. It seems that being able to serve as a first language is a prerequisite for being sup
325.
▲
by
unscaled
4y ago
> Java is unburdened with the prevalent and obsolete features of async/await, properties, and its generics allow a flourishing ecosystem in exchange for a minor inconvenience. I don't quite get the "unburdened" part.
326.
▲
by
unscaled
4y ago
> Erasure, BTW, is a pretty standard strategy. Even Haskell does not distinguish at runtime between List Int and List String. Haskell doesn't do overloading and reflection, so for Haskell type erasure is a pure implementation detail
327.
▲
by
unscaled
4y ago
> First of all, Java's generics are already superior to C#'s. That's... highly controversial to say the least. You didn't just lose the ability to overload List<String> and List<Integer>. You've also
328.
▲
by
unscaled
4y ago
No, that's exactly the opposite of what it does. The article above explicitly criticizes gin for not returning a value. Echo is closer to the pattern described above, but: 1. Echo lets you return an error response, but doesn't let
329.
▲
by
unscaled
4y ago
A M:N Scheduler was neither revolutionary nor rare even when Go was launched. Even a mainstream like C# already had one (albeit based on continuations, until C# 5.0 came out). At the same time, some mainstream programming languages either h
330.
▲
by
unscaled
5y ago
Well, before Go 1.13 came out, every decent production codebase in Go had to import Dave Cheney's pkg/errors[1] unless you totally gave up the idea of having useful error traces. Go 1.13 has incorporated most of what this package
More ›