Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
norswap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
721.
▲
by
norswap
10y ago
What about embracing interruptions, in the spirit of anti-fragility? If you can't get back to coding productively after an interruption, it probably means that your code or your process isn't really up to snuff (or more charitably
722.
▲
by
norswap
10y ago
A monad is a "value" of a type X that depends on a type T: X[T]. It must have a "way" to take a function T -> X[T] and apply it to itself so as to get another X[T]. Usually that "way" is a function called &q
723.
▲
by
norswap
10y ago
Any function can do anything. I can write a function called "read_from_file()" that doesn't read any files. Amazing, I know. Also please actually read the comment before replying: > Operator overloading is nice, but has to
724.
▲
by
norswap
10y ago
Consistency is non-existent amongst apps. Even on OSX, for all their insistence on their Human Interfaces Guideline, the experience of using multiple apps is still a patchwork of styles. If your needs are fairly generic, you can assemble a
725.
▲
by
norswap
10y ago
True for me as well.
726.
▲
by
norswap
10y ago
Why does the fact that GTK "looks non-native on Windows" disqualify it? If it's pretty enough for Linux, isn't also good enough for Windows? (Also my personal opinion is that it doesn't look too bad.)
727.
▲
by
norswap
10y ago
It would have been nicer to contact the authors of the algorithm before making these (apparently incorrect) claims via blog post. It's just sensationalistic.
728.
▲
by
norswap
10y ago
If healthcare is bad enough, insurance becomes mandatory, at which point it's basically the same thing.
729.
▲
by
norswap
10y ago
Hogwash. In a language with operator overloading, this would be something like `a.assign(b.plus(c))`. Which really doesn't tell you more about what go on under the wraps than the operator form. What can be confusing is what the meaning
730.
▲
by
norswap
10y ago
Yes, embedding a web browser is wasteful. But, it is EXTREMELY EASY. There's a reason why Github, Microsoft, Facebook, Adobe etc converged on this decision, and it's not the bandwagon effect. Faced with the same task recently, I d
731.
▲
by
norswap
10y ago
Nice notation. Looks like a grammar with a bit more fancyness thrown in. I have a tool that does this kind of stuff: https://github.com/norswap/whimsy/blob/master/doc/autumn/REA... I should try
732.
▲
by
norswap
10y ago
Quantity trumps quality: if you code a lot and keep your eye out of quality, your style will improve. As a perfectionnist, I had to learn this the hard way. https://blog.codinghorror.com/quantity-always-trumps-quality...
733.
▲
by
norswap
10y ago
Question: does there exist a place today that was like Berlin in the 1990s: civilized but still a bit uncharted, with a lot of opportunities for living thriftily?
734.
▲
by
norswap
10y ago
Bit of a strawman. Common sense is not folk wisdom. Also common sense doesn't really have a place in "cold" scientific knowledge. Nevertheless, I feel compelled to point out that "the world is flat" was a perfectly
735.
▲
by
norswap
10y ago
Isn't that what most of philosophy is about? But of course, well-worn common sense is, and always has been, in perilous short supply.
736.
▲
by
norswap
10y ago
I doubt getting confused between structs and scalars is a problem in practice. It surely never has been for me. For me this is cargo cult maintainability: it has the sound of a good advice, but doesn't seem grounded in reality.
737.
▲
by
norswap
10y ago
Basically, complex initialization logic, when a field can be initialized in multiple different ways. Once the initialization step is complete, the field will never be null and no checking will be required ever again. But in the current stat
738.
▲
by
norswap
10y ago
The post hits a lot of real pain point when working with Kotlin. In particular, nullable types seem like a good idea (I thought so as well) but in practice are a real PITA. That's most acute when defining fields, where non-nullable fie
739.
▲
by
norswap
10y ago
How so? In my experience Kotlin works nicely with Java.
740.
▲
by
norswap
10y ago
I was doing iOS dev three years ago, and the Facebook lib for iOS was the worst piece of shit I ever had to deal with. Their app also used to be unbearably sluggish despite not doing anything too fancy.
741.
▲
by
norswap
10y ago
But that's precisely Feynman's point, isn't it? I doubt he idealized the atom, he's just giving a simple example of a model "the object" that is objectively wrong but still useful. He's really just saying
742.
▲
Ruby's Dark Corners
(norswap.com)
1 points
by
norswap
10y ago
|
0 comments
743.
▲
by
norswap
10y ago
Most drinking water in the US reeks of chlorine. Feels like drinking pool water to me.
744.
▲
by
norswap
10y ago
> Restricting caloric intake to 60-70% of normal adult weight maintenance requirement prolongs lifespan 30-50% and confers near perfect health across a broad range of species. Am I the only one for whom this ends all kind of warnings? Fi
745.
▲
How to Think Real Good
(meaningness.com)
3 points
by
norswap
10y ago
|
3 comments
746.
▲
by
norswap
10y ago
Damn. Thanks for the head's up! I've exported it as a pdf here instead: https://dropfile.to/UbjJsvX
747.
▲
by
norswap
10y ago
Add invariant-only generic types (no subtyping relations between types with different type parameters) as a way to avoid 90% of casts. It doesn't get easier than this. As for going further, I think covariance and contravariance, while
748.
▲
by
norswap
10y ago
I do. I planned to do a blog post about them, but here they are in raw form: https://1drv.ms/o/s!AvgzOToZAoXyg3ZaoL3_NtU0PMyG
749.
▲
by
norswap
10y ago
Poor writing, I meant that Patterns of Software was fascinating. I'd be interested to give a glance to the above though, precisely for insights like that which you highlighted. I'm not surprised at all. Java has the same kind of s
750.
▲
by
norswap
10y ago
This is by Richard Gabriel, who coined "worse is better" ( https://www.dreamsongs.com/RiseOfWorseIsBetter.html ). He's also the author of Patterns of Software ( https://news.ycombinator.com/item?
More ›