• 2 Posts
  • 27 Comments
Joined 1 年前
cake
Cake day: 2024年3月3日

help-circle

  • one that i’ve used in the past but isn’t mentioned here is type state based. when developing a file upload service i have a File struct with different states that implement FileState, ie struct File<TState: FileState>. Uploading, Staged, and Committed. Uploading contains a buffer and some block IDs, Staged has no buffer but includes the block IDs, and Committed is just a marker. they can have different methods based on their type state like impl File<Uploading>. this gives us the type safety of, for example, not allowing a partially uploaded file to be committed, while still sharing some state like ID, etc.






  • yeah i did turn up the temp on the heater. i’m 99% sure the correct line is hooked up. i checked it earlier today, but at this point i’m willing to entertain the idea i’m reading that wrong.

    insulation is an idea i hadn’t thought of, although i’m not sure how much exposed line i can access.

    phone in a ziplock is an interesting idea for sure! i happen to have some old Android devices from work that would be great for this.

    i appreciate the response 🙏








  • if you really want to stick it to Google you have to go for Firefox or something derived from it. Chromium gives Google a ton of leverage to push features to all of their downstreams. not sure what engine these are using, but i also prefer to use Firefox because it’s open source. if these were open source you could easily see which engine they’re using.





  • is there such a thing as “legitimate criticism” against an entire race of people? this writer is bonkers, and you can tell from the intro. seems like the actual content of the post was buried beneath the first paragraph where a rare few would find it. maybe it was wrong or illegal to fire this guy for being a racist asshole (being a state funded org or something?), but couching it in this narrative of “cancel culture” and “a violation of the first amendment” has fashy vibes to me. institutions should be allowed to control the narrative set by their employees. i understand that as part of my company my words reflect on them, and it’s up to their discretion whether they want to continue to associate with me based on the things i say. you have every right to say racist shit on your favorite fascist-owned platform, but everyone else has the right to tell you to fuck off.

    also big downvote for posting this in a technology community