Re: Announcing freebsd-rustdate
- Reply: Matthew D. Fuller: "Re: Announcing freebsd-rustdate"
- In reply to: Alan Somers : "Re: Announcing freebsd-rustdate"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Aug 2024 03:52:19 UTC
On Fri, Aug 23, 2024 at 05:15:11PM -0600 I heard the voice of Alan Somers, and lo! it spake thus: > > * Revision control. As a man of culture and taste, I'm naturally doing my work in bzr rather than git. Maybe I can try and get a real project setup over the weekend, but for now I've at least pushed my current trunk up to https://code.launchpad.net/~fullermd/+junk/rustdate > * Tests. One of the things I like best about Rust is its testing > infrastructure, and one of the things that scares me most about > freebsd-update is its total lack of tests. It has me afraid to > change anything. Rustdate does currently have some tests. Mostly of the easy to test stuff, like parsing the files from the server, and the various internal data manipulation. Testing the unimportant stuff like actually manipulating the system, well, that's harder :) And at least you start out in a less scary place than trying to change the .sh. Things happen in local variables you pass around, rather than global vars and "well-known" temp files that get written in one place and arbitrarily read in another. And being a compiled language gives you a lot of compile-time complaining when you change function args or data structures, instead of weird runtime glitches 8 months later. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.