Past me was a dick who wrote bad commit messages. Present me is trying to do better so that future me doesn't hate present me quite so much when he's past me :D
Heck yes, good commit messages are valuable, though sometimes a one-liner is sufficient tbf. What I hate is people who don't clean up their commits, I view commits as a way to break down a change to understand it better; and as a forward-view to when you have to `git blame`.
That you do that pre-PR code review for yourself is a wonderful thing. Encouraging my colleagues to actually *look* at what they're proposing before they ask others to review it has been a theme of my last 2 years of work :D
Reasons to love SSDs nr 12652
When you are overcome with toe-tapping goodness on the hifi, your laptop doesn't get sad at being bounced around while it's compiling stuff.
Fortunately this library is pretty much 100% data manipulation so I don't think I need much in the way of mocking, but that's useful ideas to put in my toolbelt.
Yeah that's how I feel I ought to be treating this -- the doctests just show that I've not written bad examples. I'm just trying to decide between unit tests and integration tests for this. Perhaps I should sleep on the problem :D
Yeah, but where do I draw the line when 99% of the API is public? Do I bother with unit tests for specific testing, or do I try and cover all the code by means of integration tests? What about examples, do they count for coverage, or not? Such are my Monday evening ponderings.
Question for all the @rustlang hackers out there -- Do you prefer #[cfg(test)] stuff in your crate, or code in the tests/*.rs files for testing the majority of your code when your library is almost entirely public API?
I'd forgotten just how rewarding it can be to write code for fun. #rustlang has reignited my love of coding for the heck of it. Though I should probably write more unit tests since 65+ doctests doesn't quite cut it any more.