• 7 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle



  • jpfreelyOPtoRustI created my first crate: cypher-dto
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    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 :)



  • jpfreelytoAsklemmy@lemmy.mlHow did you mess with school computers?
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    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


















  • jpfreelytoProgrammingI need to buy laptop
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I returned my $4000 MacBook, I don’t like the keyboard layout and thought it had poor performance for the hardware. I would go for a Linux laptop but other than that I prefer Chromebooks and have been using them for 10ish years.


  • jpfreelytoProgrammingI need to buy laptop
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I would get a higher end Chromebook. They run Linux, have a built in android container, nice keyboards, touch screen, often have 360 hinges if that matters to you.

    I’ve got the middle one in that pic and it’s almost as fast as my 24 core desktop. Like others said, get 16 gig of ram. Edit: i use VS code which is less beastly than Android studio, but there’s no need to run an emulator because it’s already built in, accelerated.