Post AKjC7eo2VSdGOO58Ge by janriemer@mastodon.technology
(DIR) More posts by janriemer@mastodon.technology
(DIR) Post #AKjC7eo2VSdGOO58Ge by janriemer@mastodon.technology
2022-06-21T18:13:46Z
0 likes, 0 repeats
Recently, I've realized that I don't really need a #debugger in #Rust, but rather println!() or dbg!() my way through the code.What does this mean?It's an indication that in Rust your bugs/observability needs are not _local_ anymore, but rather _global_ on the module or systems level.This is a very good thing in terms of software quality!#SoftwareQuality #RustLang #NoDebuggerNeeded
(DIR) Post #AKjC9iz7wNYZvqFnJw by juliobiason@functional.cafe
2022-06-21T18:15:38Z
0 likes, 0 repeats
@janriemer The sad thing about dbg!() is that it doesn't go away when you make a release version.That's why I still use log (https://crates.io/crates/log) and env_logger (https://crates.io/crates/env_logger).
(DIR) Post #AKjCJI3Cw6AfIDivVg by veer66@mstdn.io
2022-06-21T23:04:43Z
0 likes, 0 repeats
@janriemer What if a bug is a library that I use instead of my program?