Hacker Newsnew | past | comments | ask | show | jobs | submit | mikelinsi's commentslogin

It's odd how these browser popups—especially ones like the notification permission dialog—essentially hijack the Mac interface. I can't swipe to go back using the trackpad until I manually close the popup.


Cool!


Thanks for sharing! I had never really thought about the difference in meaning between the words Science and Engineering in this context.

I’ve had discussions with coworkers before about how we should describe ourselves, but never quite in terms of actual job titles. I really like the black box analogy you mentioned. It reminded me of something I came across recently — Conway’s Law.


> Never go full monad in Java. what? why?


From a use-case perspective, Haskell monads let you restrict where various effects happen. Some code can be allowed to do local mutation, other code can do shared-mutation suitable for (ACID-like) transactions. In Java you can do anything, everywhere (except throw checked exceptions from lambdas for some reason) so the monadic wrappers would give you about as much guarantee as a comment, and be less clear.

From a representational perspective, you need a generic of a generic to represent<M><A> and that doesn't really work. Or if you go for interfaces not type variables, you could have a Monad<A> but you don't know which one you have (List? Future? Parser? Either?). It's like representing the above as literal 'Object's, you'd be constantly casting.


because no matter how much java wants to be like scala, it's very painful to work with (verbose). There is no good Option type either. But I believe there are third party libraries out there that do a better job, if you really can't use scala for some reason


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: