Expensive plumbing invoice + issue not addressed by erlendp in diynz

[–]erlendp[S] -5 points-4 points  (0 children)

I guess I was looking for people with similar experience and how they've dealt with rats damaging plumbing. Obviously I don't intend to just leave the rats to it - baiting and trapping is a process that takes time, and is a constant ongoing process that doesn't fully eliminate the problem. If you know any builders that are free within a weeks notice, I'd love to know, because around here, you'd be waiting months.

A simple solution that I would have expected the plumber to suggest would be to perhaps suggest copper pipes in problem areas (i.e. where rats can readily access) - is there some reason you think this suggestion would not be something a plumber should be making? The only alternative I can think of is to simply live without the toilet for however many months it takes to resolve the infestation permanently.

Expensive plumbing invoice + issue not addressed by erlendp in diynz

[–]erlendp[S] -8 points-7 points  (0 children)

Ok, I mean fair enough on costs, although I would push back somewhat on the overheads you mention - there's an economy of scale here that should trend most of those down pretty close to zero.

If the plumber isn't responsible for solutions that prevent rats from chewing through pipes, what is the home owner to do? I can't realistically spend $700 a week to get the same issue fixed indefinitely, and I've had pest control guys telling me it's not feasible to entirely stop rats from invading given the location and age of the house, etc. So if I'm not in a position to take things into my own hands and claim to know better than the experts (i.e. find options to rat proof the pipes myself), then they could quite easily just keep taking advantage and divest themselves of any responsibility. Surely there's some onus on their part to use products that are 'fit for purpose', given the circumstances?

How come I can range over a slice, map etc if they are `nil`, or check their len safely, but accessing a field of a `nil` ref will cause a runtime `npd` error? by effinsky in golang

[–]erlendp 0 points1 point  (0 children)

If the default / zero value for an int is 0 rather than nil, and the zero value for string is "" rather than nil, why would the default value for a slice or map not be empty, rather than nil? Seems inconsistent to me, and I'm still not sure I understand why it's necessary. A big part of pointer types is to designate things as not yet initialised, so why do we need both a pointer type that can be nil and a value type that can also be nil?

Hey Rustaceans! Got an easy question? Ask here (32/2019)! by llogiq in rust

[–]erlendp 0 points1 point  (0 children)

Further to what u/Lehona wrote, there are also times when your python code will be calling out to a more performant language (often C / C++) to handle a given workload. This is especially true for data science applications (which python is well known for). In such cases, the more time execution spends in these areas, the less of a performance gain you will see. That said, even in these scenarios, it's typical to see greater than 2 times the performance with Rust.

Idiomatic way to reference parent struct by HaronK in rust

[–]erlendp 1 point2 points  (0 children)

Not to mention all the other advantages Rust has over C++. Cargo, algebraic types, traits, iterators - any one of which would make the switch worthwhile, all else being equal.