Why would we want cops to have less experience on average?
300 karma · joined January 27, 2011
Why would we want cops to have less experience on average?
I don't know the history of the other things you mentioned.
Compared to what?
This is a great point.
I wonder if there's a study on bugs-per-line-of-code, how this changes across project sizes, and whether refactoring changes bugs-per-line-of-code.
For some definition of "instant".
I can often run my Python or JavaScript test suite faster than Haskell/GHC or Rust/rustc can type-check a module.
And it can take a while to understand Haskell, Rust, or C++ error reports.
(Of course, Python and JavaScript startup time and execution speed can hurt refactoring too. And AttributeError-s and random undefined-s aren't always easy to debug.)
This is also happening in the Rust code (x.clone()).
Also, your Rust example uses -O (which is -C opt-level=2), but your C++ example uses Clang's -O3 (which is like rustc's -C opt-level=3).
Here are examples which are more similar: Rust: https://godbolt.org/z/We7ah1ehe C++: https://godbolt.org/z/r31jrcbjc
> Smart pointers are often used in high-performance code (like browser engines) so it is interesting to learn how their usage impacts the generated code.
Browsers like Firefox and Chrome don't use std::shared_ptr. You should research how the compiler optimizes those implementations.
function DatePicker() {
function handleDateChange(event) {
preventDialogFoobarFromClosing(event);
...
}
return (
<ThirdPartyDatePicker
onChange={handleDateChange}
/>
);
}
function preventDialogFoobarFromClosing(event) {
event.preventDefault();
}Thanks for the feedback. I redesigned that code block, making it a side-by-side diff. Is it easier to understand now?
The statement is correct though. The bug was specific to Windows x64 builds when compiled with GCC-MinGW.
This sounds great for applications. But for libraries, you'll likely end up with the diamond dependency problem: an application uses two libraries, and each library uses their own copy of a third library.
Bitcoin does not remove counter-party risk. The counter-party is there, and it's risky:
* miners (can ditch Bitcoin; can censor your transactions)
* Bitcoin software (wallets; miners) (can have bugs which get your coins stolen)
* Bitcoin protocol (can have bugs which get your coins stolen)
* internet infrastructure (can censor Bitcoin)
I think we could get away without system-configured aliases and macros.
> I think the system you propose would require a fat server
Yup, this sounds about right.
> I think it also goes against the philosophy of "do one thing and do it right" because of all the moving parts.
Agreed. But Clang+LLVM and Visual Studio Code show that discarding this philosophy can lead to a successful project anyway.
This is what I used to think. Then I considered having children. My perspective changed quickly. (Though I don't know exactly why it changed.)
So you don't need to copy your config to the remote server, like XXH does.
So you can still edit your command when your wifi gets spotty.