zxcvhjkl
Joined 8 years ago
Joined 8 years ago
Thanks for your work btw.
let line = io::read_until(reader, b'\n', Vec::new());
let line = line.and_then(|(reader, vec)| {
if vec.len() == 0 {
Err(Error::new(ErrorKind::BrokenPipe, "broken pipe"))
} else {
Ok((reader, vec))
}
});
// Convert the bytes we read into a string, and then send that
// string to all other connected clients.
let line = line.map(|(reader, vec)| {
(reader, String::from_utf8(vec))
});
...
With monads we end up with much boilerplate that has nothing to do with the actual "business" logic.Maybe you prefer that, but I prefer the code to describe just the business logic.
IMHO the current “Futures” monad style solution makes the code look a bit confusing.
Not having to define types is not the biggest merit of dynamic languages.
The biggest benefit is to be able to do things that you couldn’t do if you had a type system. You can do some crazy stuff with Ruby’s meta programming.
I am the least efficient when I write code in JS.
On the other hand with Ruby, and meta programming, I can do stuff that would be impossible to express in the most popular type systems.
Changed? What makes you say that?
From the tiny interaction I have with MS I don’t think this is the case.
E.g. In my wife’s PC I have Firefox as the default browser, however:
1. If she clicks on one of the login manager wallpaper photos, the page opens in MS Edge.
2. Every time there is an update, MS Edge reappears as an icon on the desktop.
No, MS hasn’t changed. Their PR may have, but at core they are as evil as ever.
I imagine most HN readers are paying customers either directly or indirectly(their company/startup).
As a private customer, I wouldn’t object to an increase in the price if that meant they stay independent. If they get acquired by MS I am definitely stopping my subscription.
The problem is deeper than that though. Unless you were developing an Editor or a Git hosting service, you were not in direct competition with GitHub. Suddenly a lot of startups will find their private code hosted by a direct competitor. I wouldn’t feel comfortable if I was them.
I don’t think that’s the case anymore.
But then again “the SV hipster development ecosystem”. Who is that exactly?
Why is that? Why should people forget how evil MS was and still is?