The "Variance of slice types" paragraph is confusing as hell. The type Tree implements interface Barker, after all. To me it looks like this is more about what I call "accidental implementation" (which is one of the…
The irony is that in a normal Rails app workloads are already split by default (requests and background jobs are handled by different processes that share the same codebase).
I've been writing Ruby for 20+ years and "unless" (the whole language, actually) immediately clicked for me when I first learned it. That said, I only use it in 2 cases: * as a trailing condition (do_something unless…
I wish I could upvote comments more than once on HN :-)
> - There are no booleans in the language! Conditionals can still succeed or fail, but failure is defined as returning zero values and success is defined as returning one or more values. This is similar to how Icon…
> How about scheduling a daily summary email? Daily reports? Forgive me if I'm wrong (I don't know Phoenix that well), but don't you need some external library like Exq do perform background jobs? How is Phoenix+Exq…
Yep, you're perfectly right of course. My "solution" was mainly to address the problem "how can I return a String from a const function"... the answer is that you don't have to :-)
One possible solution in Rust could be: enum Value { Fizz, Buzz, FizzBuzz, Number(usize), } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { Value::Fizz =>…
> There are no tags, or labels, no other folders or any other buckets of organization. Actually there are labels (and what's the difference between a tag and a label?) > [...] there’s no automatic organization here When…
What would you suggest for replacing e.g. `u8 as usize`?
> The thing that DHH is failing to mention is that Monoliths work great when your application looks something like Basecamp. The thing that people fail to grasp is that (almost) everything DHH writes is in the context…
The "Variance of slice types" paragraph is confusing as hell. The type Tree implements interface Barker, after all. To me it looks like this is more about what I call "accidental implementation" (which is one of the…
The irony is that in a normal Rails app workloads are already split by default (requests and background jobs are handled by different processes that share the same codebase).
I've been writing Ruby for 20+ years and "unless" (the whole language, actually) immediately clicked for me when I first learned it. That said, I only use it in 2 cases: * as a trailing condition (do_something unless…
I wish I could upvote comments more than once on HN :-)
> - There are no booleans in the language! Conditionals can still succeed or fail, but failure is defined as returning zero values and success is defined as returning one or more values. This is similar to how Icon…
> How about scheduling a daily summary email? Daily reports? Forgive me if I'm wrong (I don't know Phoenix that well), but don't you need some external library like Exq do perform background jobs? How is Phoenix+Exq…
Yep, you're perfectly right of course. My "solution" was mainly to address the problem "how can I return a String from a const function"... the answer is that you don't have to :-)
One possible solution in Rust could be: enum Value { Fizz, Buzz, FizzBuzz, Number(usize), } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { Value::Fizz =>…
> There are no tags, or labels, no other folders or any other buckets of organization. Actually there are labels (and what's the difference between a tag and a label?) > [...] there’s no automatic organization here When…
What would you suggest for replacing e.g. `u8 as usize`?
> The thing that DHH is failing to mention is that Monoliths work great when your application looks something like Basecamp. The thing that people fail to grasp is that (almost) everything DHH writes is in the context…