Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
781.
▲
by
spion
8y ago
"Know your digital rights at the border" will be ignored as its meaningless to most people "Your phone isn't safe at the border" is FUD. "Your phone is subject to searches without warrant at the border" is
782.
▲
by
spion
8y ago
Node really doesn't pay attention to nice API design. If all readable streams had `Stream<T>.toBufferAsync(): Promise<Buffer>` `Stream<T>.toStringAsync(): Promise<string>` `Stream<T>.toArrayAsync():Promise
783.
▲
by
spion
8y ago
You know you're doing something wrong when a company that sells alternative parts for your old products is doing better in the news.
784.
▲
by
spion
8y ago
> the browser would still have to download each dependency before they can resolve their transitive dependencies. The endgame of that train of thought is something like https://mariusgundersen.net/module-pusher/
785.
▲
by
spion
8y ago
The lesson from that being, the extreme of "write once run anywhere" is not necessarily a good idea. Sometimes its best to implement specialized libraries and runtime (green threads) for specialized environments (servers) that are
786.
▲
by
spion
8y ago
Window titles are recorded by this script. I wonder if you noticed this? You could have pretty decent filters with those, e.g. you can get a result for "time spent reading comments and writing on hackernews". If I use slack in the
787.
▲
by
spion
8y ago
You can't just automatically use the results - at the end I group them by window title and look at things that are > 5m Not perfect but decent.
788.
▲
by
spion
8y ago
I don't like arbtt because it has an undocumented binary log format making it unnecessarily difficult to build tools on top of it. Its documentation in general is also poorly written. This is not perfect either, but its just a little e
789.
▲
by
spion
8y ago
I have this in a cron: * 08-23 * * * ~/.local/bin/with-i3 '~/.local/bin/record-active-window' this is record-active-window: # set LOGFILE to whatever place you want to record things. ech
790.
▲
by
spion
8y ago
Loom is still WIP. Remains to be seen how easy / performant it is going to be adopt in practice with the existing ecosystem.
791.
▲
by
spion
8y ago
Too bad they were removed. I don't see why a non-system language should use anything other than green threads nowadays.
792.
▲
by
spion
8y ago
Can Quasar fibers be efficiently used with other (popular) Java libraries that build on top of the standard libraries? If not, I don't consider that to be good developer experience. That is more of a mistake that cannot be rectified. A
793.
▲
by
spion
8y ago
I would suggest a Go programmer give ReasonML an honest try (as an example language where "generics" are done right), but the getting started / documentation situation is still not at Golang level so thats a bit annoying. May
794.
▲
by
spion
8y ago
Thats not an entirely bad way to do it.
795.
▲
by
spion
8y ago
There are plenty of people who consider C++ good too and its used by people daily. Doesn't mean that Rust isn't a better language, even though there are less people that use it daily. I think we need to be real about what are the
796.
▲
by
spion
8y ago
Java is not really superior in standard library design. There is too much architecture astronautics going on. Standard interfaces are too complicated. Nominal interfaces kinda suck. Java also lacks green threads. There is baggage in the des
797.
▲
by
spion
8y ago
> Go strikes me as one of the most conservative programming languages available today. It’s small and simple, and every detail is carefully thought out. This article is wrong in many ways, but I thought I'd point out this particular
798.
▲
by
spion
8y ago
The probem with npm isn't that open source doesn't help, its that the eyes get spread out thin when you have thousands of modules - so nobody is looking at the changes that happen in their lots of small dependencies. Which is not
799.
▲
by
spion
8y ago
Even though I'm a huge TypeScript fan, I'm grateful for the existence of Flow. Their focus on soundness has shown the TypeScript team that they should give a lot more priority to getting the typesystem in a better shape over the y
800.
▲
by
spion
8y ago
Nothing is 100% guaranteed, but with an open source project, given enough users, its far less likely for someone to be able to bury nefarious stuff without many eyes looking at it and at least one person sounding an alert.
801.
▲
by
spion
8y ago
I came here to comment on this. Its probably actually true :) As a software engineer, I find HtDP awesome. As a teacher, I found it lacking. I think the best way to teach programming is in the context of a domain of interest to the student.
802.
▲
by
spion
8y ago
Yes, in the silly sense that the code can run in both nodejs and a browser. The unfortunate article that coined it: https://blog.nodejitsu.com/scaling-isomorphic-javascript-cod...
803.
▲
by
spion
8y ago
For each section, start from the exercises, then work backwards towards the material necessary to understand and solve the exercises. If there are no exercises, make some up (do the proofs yourself, try to come up with unsolved scenarios an
804.
▲
by
spion
8y ago
What kind of source do you have in mind? The arguments types that are valid will vary based on the content of the template string, and no type system (well a dependently typed language such as Idris could do it) for JS (flow, typescript) su
805.
▲
by
spion
8y ago
Ah, quotes, the method of taking wisdom out of context and greatly increasing the chances of incorrect interpretation. The ancient form of twitter.
806.
▲
by
spion
8y ago
For those that don't know, Jim Weirich was a well known software engineer in the Ruby community. He passed away in 2014. (Hopefully this will prevent the downvotes)
807.
▲
by
spion
8y ago
Its still quite different than classic imperative code If you're working with a free monad, or if you don't specify IO (just some of the generic IO like typeclasses like say MonadError), you can still choose your own interpreter f
808.
▲
by
spion
8y ago
Replication is still a pain.
809.
▲
by
spion
8y ago
The anemic JS standard library is a much bigger problem, resulting with bloated bundles with all sorts of basic stuff in them (lodash, timezones, etc). Even worse, the fact that things aren't standard means that multiple "standard
810.
▲
by
spion
8y ago
The problem with this and the wat talk is that * you don't actually see the case-space (value space) of all the comparisons that do work as expected, and * you don't a sense of what is the likelihood that these sort of compariso
More ›