Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)JP
Posts
6
Comments
11
Joined
2 yr. ago

Rust @programming.dev

What should the getter for a Vec|String| return, &[&str]? What about Option|Vec|String||?

Rust @programming.dev

Do you use mod.rs, the module name, or does it vary? How do you decide?

  • Thanks for the feedback.

    • I'll definitely drop the Cypher prefix, and think it's a good idea to at least move the shorthand attribute macros to a crate feature. The readmes would use derive instead of the shorthand mostly.
    • ty::new() just uses the types in the struct (plus &str for String and &[T] for Vec). The extra builder struct is to help with updates, where you may want to just change a couple of fields, or bind it to editable UI fields.

    I didn't realize how strong the rust presence is here. Experienced-devs on reddit is hard to go without :)

  • Rust @programming.dev

    I created my first crate: cypher-dto

  • One time we got around the security for a shared windows folder (Win98). Another time a couple of us printed fake midterms for ourselves on official headered paper. But the one that sticks out is this trojan program I got from my older brother called deepthroat. I put it on a couple of other people's computers that I wanted to mess with, and proceeded to open their cd tray, pop up fake warnings/errors, and other random stuff that a friend and I thought was hilarious at the time. It all stopped when I popped up a message that said "Contacting [name]'s parents..." on this girls computer and she got the teacher's attention about it. He knew what was up and scanned all the computers. He was mad but we didn't really get in trouble. We also did the fake desktop screenshot stuff :D

  • cats @lemmy.world

    This is Annie. She loves feet.

    ChatGPT @lemmy.world

    Caught: 2.5 hour documentary voice over: "As of my knowledge cutoff in September 2021"

  • I've had that article saved for years, it's still the best way to break down documentation imo.

    Another key point for code documentation is that the closer it is to the code it's describing, the more likely it is to be read and maintained. The book "A philosophy of software design" has a section on it.

  • Dart @programming.dev

    Hi Dart and Flutter people!