[-] snaggen@programming.dev 0 points 2 years ago

No, but the process to identify the ones that work is all part of the modern medicine. Before that, placebo and lack of scientific methods made it impossible to separate a working substance from snake oil.

[-] snaggen@programming.dev 0 points 2 years ago

The desillusions people seems to have here is the same kind you have for religious people and moral, where the religious people claim that religion is what provides moral, and hence non-religious people cannot know right from wrong. It seems that in the same way, people in this discussion have defined that communism is the mechanism for being generous and being willing to contribute to society. Hence, all non-communist societies cannot exists, since nobody will build it. Basically, it is a very brainwashed take on communism, not based on anything existing but on some fantasy, especially since all practical attempts at communism seems to requires to strip people of all their freedoms.

[-] snaggen@programming.dev 0 points 2 years ago

Corrected my typo, so contextually challenged persons can avoid being confused. You are welcome.

[-] snaggen@programming.dev 0 points 2 years ago

And if I understand it correctly, it now would be enough for them to ping in this community in a post to get it do show up here... so that might be something for them to think about.

16
22
6
submitted 3 years ago* (last edited 3 years ago) by snaggen@programming.dev to c/rust@programming.dev

The test experience in IDE:s broke before the summer, due to a fix to prevent the non-stable json format to be used in stable rust. So, now the test experience is non-optimal in Intellij Rust for example, which basically just invokes a terminal.

But I still see no work being done to fix this? Is there an RFC to stabilize this that I just have missed? I see nrc propose to stabilize the current format as json-1.0 , but with no response. I find it strange that the testing experience was broken, with no hurry to fix it. Or am I missing something?

19
This Week in Rust 510 (this-week-in-rust.org)
1
27
33
submitted 3 years ago* (last edited 3 years ago) by snaggen@programming.dev to c/rust@programming.dev
24

Added

  • Add HttpServer::{bind, listen}_auto_h2c() methods behind new http2 crate feature.
  • Add HttpServer::{bind, listen}_rustls_021() methods for Rustls v0.21 support behind new rustls-0_21 crate feature.
  • Add Resource::{get, post, etc...} methods for more concisely adding routes that don't need additional guards.
  • Add web::Payload::to_bytes[_limited]() helper methods.
  • Add missing constructors on HttpResponse for several status codes.
  • Add http::header::ContentLength typed header.
  • Implement Default for web::Data.
  • Implement serde::Deserialize for web::Data.
  • Add rustls-0_20 crate feature, which the existing rustls feature now aliases.

Changed

  • Handler functions can now receive up to 16 extractor parameters.
  • The Compress middleware no longer compresses image or video content.
  • Hide sensitive header values in HttpRequest's Debug output.
  • Minimum supported Rust version (MSRV) is now 1.68 due to transitive time dependency.
46
15

Normally IntelliJ Rust had Bi Weekly releases on Mondays, but now it seems that the last release was on August 7. Ok, that is not so long ago that anyone need to be worried I guess. But Intellij Rust releases have been ticking like a clock, so I'm just surprised from the sudden change and get curious about the underlying reasons.

26
12
Rust Analyzer Changelog #196 (rust-analyzer.github.io)
[-] snaggen@programming.dev 1 points 3 years ago

Well, but then any function may also throw random runtime exceptions, so even if a function declares that it throws IOException, it may also deep down throw an IllegalStateException. And if you then were naive enough to only catch IOException, then you are in trouble. I recently had that case, were I had forgot the top level catch (Throwable t) clause and the program just died with nothing in any log. Adding that top level catch and a log line, made me see where it threw and what. Then I just needed to add additional logging around that to see the application state to understand the why.

[-] snaggen@programming.dev 1 points 3 years ago

cargo-feature seems like a nice thing to have... will definitely try that.

view more: ‹ prev next ›

snaggen

0 post score
0 comment score
joined 3 years ago