Date: Fri, 23 Aug 2024 22:52:19 -0500 From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: Alan Somers <asomers@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Announcing freebsd-rustdate Message-ID: <ZslY884O-VIp9et-@over-yonder.net> In-Reply-To: <CAOtMX2i2hYDp_%2Br1Ve_SQ_saDJ51dDSpJH_kkSKcHViwH9bbZg@mail.gmail.com> References: <Zsf2riQaK5y2O76-@over-yonder.net> <CAOtMX2i2hYDp_%2Br1Ve_SQ_saDJ51dDSpJH_kkSKcHViwH9bbZg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZslY884O-VIp9et->