Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stefano_c
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
stefano_c
3y ago
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 many
2.
▲
by
stefano_c
3y ago
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).
3.
▲
by
stefano_c
4y ago
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 this), m
4.
▲
by
stefano_c
4y ago
I wish I could upvote comments more than once on HN :-)
5.
▲
by
stefano_c
4y ago
> - 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 works: https:/&#
6.
▲
by
stefano_c
4y ago
> 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 differ
7.
▲
by
stefano_c
4y ago
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 :-)
8.
▲
by
stefano_c
4y ago
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) -> s
9.
▲
by
stefano_c
5y ago
> 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 you get a
10.
▲
by
stefano_c
6y ago
What would you suggest for replacing e.g. `u8 as usize`?
11.
▲
by
stefano_c
11y ago
> 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 of "when you