abrahambelch

joined 1 year ago
[–] abrahambelch 1 points 4 days ago (2 children)

It looks kind of like the tab bar on Safari, is the idea to be able to swipe between tabs?

[–] abrahambelch 1 points 4 days ago* (last edited 4 days ago) (4 children)

No offense but the tab bar looks really weird and off-putting imho. But your apps looks cool otherwise! Will it be open-source?

[–] abrahambelch 56 points 1 week ago (2 children)

HP is a struggle (but yeah, Windows is too)

[–] abrahambelch 4 points 1 week ago

You found the words I didn't find. Sometimes it's good to just write down all of your thought I guess.

[–] abrahambelch 30 points 1 week ago* (last edited 1 week ago) (4 children)

When Russia invaded Ukraine... It may sound like the first thing that came to my mind but for a few days I thought Russia would attack my country as well. Before, I was feeling very safe in my country.

Of course that's only the direct impact on me personally. Let's not forget how Ukrainians feel

[–] abrahambelch 5 points 1 week ago* (last edited 1 week ago)

Omg yes, I absolutely fell in love with Kao Soi! We went hiking in the jungle when we were near Chiang Mai - some of the most beautiful nature I've ever seen (I've not been to a lot of places in south/east Asia, though).

[–] abrahambelch 2 points 1 week ago

I'm currently using Mlem on my iPhone. It recently got updated to version 2.0 and this made it a much better experience than before. Plus it's a native app which I personally like.

[–] abrahambelch 1 points 1 month ago

Thanks for your answer, that sounds promising!

[–] abrahambelch 2 points 1 month ago

Thanks for the link, I think it indeed looks best to use a second one then (I think I'll do some more research though). But it's interesting to see (in case of the Yellow) you could theoretically use one device for both if they operate on the same channel.

15
submitted 1 month ago* (last edited 1 month ago) by abrahambelch to c/[email protected]
 

Hello everybody,

Im currently planning on migrating my smart home to Home Assistant and run the HA docker image on my home server.

Most of my devices communicate via Zigbee so I was thinking of getting the Connect ZBT-1.
I also have a few Matter/Thread devices which would be nice to integrate as well, although not necessarily in the initial migration.

I read the ZBT-1 can experimentally be used with Thread as well. Now my question is: Is it possible to buy two devices and connect to Zigbee and Thread devices simultaneously?

Maybe someone has a similar setup and would like to share their experience.

Thanks in advance and have a nice weekend!

[–] abrahambelch 7 points 1 month ago (2 children)

You don’t get the point, do you? I know I can block those, yet it’s hypocritical to complain about privacy and tracking in an article while doing the same. It’s not even the fact they use cookies at all, I get they might need them for analytics and such. But this site is out of control

[–] abrahambelch 33 points 1 month ago (4 children)

Meanwhile the linked website is full of intrusive ads and hundreds of "legitimate interest" tracking cookies. Oh the irony...

31
submitted 7 months ago* (last edited 7 months ago) by abrahambelch to c/rust
 

Hey there, I'm currently learning Rust (coming from object-oriented and also to some degree functional languages like Kotlin) and have some trouble how to design my software in a Rust-like way. I'm hoping someone could help me out with an explanation here :-)

I just started reading the book in order to get an overview of the language as well.

In OOP languages, I frequently use design patterns such as the Strategy pattern to model interchangeable pieces of logic.

How do I model this in Rust?

My current approach would be to define a trait and write different implementations of it. I would then pass around a boxed trait object (Box<dyn MyTrait>). I often find myself trying to combine this with some poor man's manual dependency injection.

This approach feels very object oriented and not native to the language. Would this be the recommended way of doing things or is there a better approach to take in Rust?

Thanks in advance!

view more: next ›