> I am here to tell you: if you are running a software business and you aren't at, like, Google-tier scale, just throw it all in a monorepo.
Funny because Google is famous for having a monorepo at scale.
359 karma · joined April 29, 2020
Funny because Google is famous for having a monorepo at scale.
...although I have to say that it is a little bit embarrassing that my "reputation" up to now is mainly from this thread. –
mikuszefski
Nov 25, 2014 at 18:19 class T {
public:
T(int & m): member{m} {}
int & member;
}
T MakeT(int m) {
return T(m);
}
int main() {
const auto t = MakeT(10);
std::cout << t.member << std::endl; // UB <- member has actually been destroyed
}
Rust will correctly observe that the lifetime of m in `MakeT` is lower than the T object returned and will refuse to compile fn count_nonzero(a: []const i32) i32 {
var count: i32 = 0;
for (items) |value| { // "for" works only on arrays and slices, use >"while" for generic loops.
if (value == 0) {
continue;
}
count += 1; // there is no increment operator, but there are shortcuts for +=, \*=, >>= etc.
}
}After reading this article, I am starting to wonder if people didn't simply migrate to LinkedIn because of the degradation of Facebook's quality as a Social Network and as they still feel the need to share their lives, started sharing those cringe posts.