« first day (2173 days earlier)      last day (1315 days later) » 

8:26 PM
Dude what's with these "unused function" warnings
They are so annoying
I have a bunch of stuff written and tested but not used in the binary yet and I just get a boatload of warnings
They clutter the warnings that are actually useful
Can I somehow disable these specifically
 
@EnnMichael #![allow(dead_code)] at the top of the module / file
I'm not sure if it transitively applies to submodules or not
I usually only use it on the playground
 
Thanks! It's definitely better than nothing, but is there a way to do this from the cargo build command?
Hm, I found this: RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo build
 
@EnnMichael Not that I am aware of, but there certainly could be something I don't know about
like that I guess
 
Eh, if I put it in a file somewhere, I would forget about it for sure and then it would be bad :D
 
8:57 PM
The question is why don’t you use them?
 
I haven't gotten around to it yet
 
Slash why did you write so much without using it.
Like sure, write one thing then use it
 
It's a message parser, there's a lot of code
In order to use the message parser I have to write the code for the server, because that's the code that will be using the message parser
 
I personally mark such things as cfg(test)
Remember you can go deep before broad too.
Server with one message.
 
Yeah that's true
That might have been smarter tbh
Too late now though
 
8:59 PM
Especially when you realize you wrote all those functions slightly wrong because you couldn’t use it for real.
 
I mean not might have been, it would definitely have been smarter
@Shepmaster Yeah let's hope not
 
It’s the old red-green-refactor and TDD cycles
 
It seemed so obvious to me though
Well, admittedly, the design is quite obvious, but you're definitely right and now I wish I had done it the other way. Fingers crossed that it doesn't turn out that the design isn't as obvious as I thought, lol
It would also probably be better for motivation too, seeing at least something working rather than just writing tests
 
True fact. Optimizing for developer motivation is an important thing
 

« first day (2173 days earlier)      last day (1315 days later) »