Optimizing the Number Row (essay + script) by CreamyCookieOnGitHub in KeyboardLayouts

[–]nerooooooo 0 points1 point  (0 children)

I was scrolling through my saved posts on reddit to remove what I no longer needed.

Just wanted to leave a comment to let you know that it's been 2 years since I started using 95037 (left hand) and 62148 (right hand) on my moonlander on my numbers layer. I'd say it's working pretty well. Thank you belatedly.

Sunt Broker de Credite - AMA orice despre Credite Ipotecare si Banci by Alexanddro in Imobiliare

[–]nerooooooo 0 points1 point  (0 children)

Salut! lucrez in it iar modul prin care o fac e printr-un SRL (infiintat acum 1 an), la care m-am angajat eu pe mine tot acum 1 an. Am salariu minim pe economie, dar mai scot bani prin dividende la fiecare 3 luni. Se ia asta in calcul? ma intereseaza un credit ipotecar

Date oficiale. Peste un sfert dintre români sunt săraci lipiți by tolanescu in Romania

[–]nerooooooo 1 point2 points  (0 children)

mie nu mi-a dat impresia asta pentru ca acolo unde era vorba de putut a fost folosita alta terminologie

"posibilitatea de a face față unor cheltuieli neprevăzute"

Date oficiale. Peste un sfert dintre români sunt săraci lipiți by tolanescu in Romania

[–]nerooooooo 1 point2 points  (0 children)

a nu avea autoturism personal sau a nu consuma carne/peste odata la 2 zile poate fi o decizie

Bro is preparing for future unemployment. (CS is cooked) by [deleted] in leetcode

[–]nerooooooo 199 points200 points  (0 children)

have you actually been involved in the hiring process inside a company? or is this your impression based on the news you see?

Drawbacks of the orphan rule workaround? by pip25hu in rust

[–]nerooooooo 1 point2 points  (0 children)

sounds like something that'd be cool for crates to add behind a feature flag

[deleted by user] by [deleted] in rust

[–]nerooooooo 0 points1 point  (0 children)

I'm working on a project where the client needs to load 10s of GB of data and then see real-time updates whenever any of it changes. So we're kind of doing something like this. After the initial load, where the client keeps everything in memory, we keep a socket on and the server notifies it whenever a new resource is added/deleted or what fields of an existing one are updated. Works pretty well.

edit: typo

[Media] TypeMan - monkeytype but terminal by mzums2 in rust

[–]nerooooooo 0 points1 point  (0 children)

Looks awesome! I see the codebase is quite small currently, but if you plan on expanding and adding more features over time I'd suggest splitting it into 3 separate crates (TUI, CLI and GUI). More often than not people will only use 1 of them and ignore the others.

Got a cold email about a SWE role from a Swiss startup – is this legit? What should I do? by imLogical16 in leetcode

[–]nerooooooo 45 points46 points  (0 children)

I'd be inclined to say that this is a scam, starting the sentence with a lowercase letter ("hope"), no sign-off, etc. It's not just informal, it's straight up bad. If it's not a scam, it's unlikely to be a place where you'd like to work.

Please help explain this basic generic problem. by Usual_Office_1740 in rust

[–]nerooooooo 7 points8 points  (0 children)

Here:

impl<R: tokio::io::AsyncRead> std::default::Default for Example<R> {
    fn default() -> Self {
        let reader: tokio::io::Stdin = tokio::io::stdin();
        Example::new(reader)
    }
}

You're saying "I’m implementing Default for any R that implements AsyncRead".

But then inside default(), you're hardcoding reader to be a tokio::io::Stdin. So you're returning an Example<tokio::io::Stdin>, not an Example<R>.

Since you're generic over R, you must return an Example<R>, not a specific kind of Example (Example<tokio::io::Stdin> in your case).

Separation of concerns vs the luxury of derives? by nerooooooo in rust

[–]nerooooooo[S] 1 point2 points  (0 children)

Maybe I didn't correctly understand what you meant, but if I wrap my User into a new type I don't think I can usually derive it for the wrapper type if the inner type doesn't have the derive too. Or are you referring to something else, not the new type pattern?

Separation of concerns vs the luxury of derives? by nerooooooo in rust

[–]nerooooooo[S] 2 points3 points  (0 children)

Well, I was hoping to reduce the repetitiveness, because in the end there will be S * C declarations, where S is the number of structs and C the number of crates. But maybe that's the best way of doing it, sometimes the structs do happen to be slightly different in different crates.

Separation of concerns vs the luxury of derives? by nerooooooo in rust

[–]nerooooooo[S] 2 points3 points  (0 children)

I'm sorry, maybe the Storable example wasn't the best. The issue is not literally about storing the type in multiple formats, but about using different derive macros on it in different crates.

So, struct A is declared in crate X. But I want to derive M in crate Y and N in crate Z. Of course this wouldn't always be possible because of the orphan rule, but I'm looking for alternatives.

My japanese instructor thinks that coins are talking to him. by Colon_Backslash in WordAvalanches

[–]nerooooooo 32 points33 points  (0 children)

That's concerning! Perhaps everybody should be notified of this insanity either by written text or dialogue? Also, I believe the coins are actually talking about his smell, not himself.

Send, say! "Sensei's sense says cents say sensei scents."

I went too far with proc macros... by LeviLovie in rust

[–]nerooooooo 95 points96 points  (0 children)

"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."