juja

joined 1 year ago
[–] juja@lemmy.world 21 points 4 months ago

They could have prevented this by wearing hazmat suits to avoid being ionized in the first place.

[–] juja@lemmy.world 30 points 5 months ago (1 children)

What if the pattern is that if it starts with a vowel , it needs to be prefixed with a B and if not , replace first character with B ?

[–] juja@lemmy.world 1 points 5 months ago

I just mentioned rust as that was the first thing that came to my mind. I’ve not worked with it either. I am ok to take whatever direction you think is appropriate for the product. I just want to contribute to the tool since I was also looking for something like this in the past and I can see this tool being useful for me for my own personal projects. I can definitely help with the macos part if that’s what you need help in. Please feel free to DM me.

[–] juja@lemmy.world 4 points 5 months ago (1 children)

Does it have to be the same couch ? My couch is too small to fit two people

[–] juja@lemmy.world 1 points 5 months ago (2 children)

I have been looking for some client tool to interact with Bluetooth on windows. After a lot of searching, I came up empty so I bit the bullet and decided to code one myself and managed to create a small command line utility using C# .Net and it was surprisingly easy. It would have been so awesome if something like bluetuith had existed for windows so I’d be happy to contribute. I should point out though that I have not written any windows based app/tool ever and this was the first one so I would definitely have some learning and research to do. I mainly use a Mac for work and personal stuff so I can contribute for the Mac portion of it as well if required. As to the implementation itself, would it be viable to use something like rust which already has cross platform support so that the server component can just be a single codebase instead of platform specific?

[–] juja@lemmy.world 0 points 6 months ago (1 children)

Please don’t crucify me but is there a way to do this on windows ? I just have a handheld gaming console that came with windows and it’s setup just the way I want but would be nice if I can also connect to Bluetooth using command line so that I can map it to playnite and have it automatically connect to my headphones when launching a game. I did a lot of research and tried some stuff like “Bluetooth command line tools” which worked a bit but somehow caused a lot of instability and caused crashes so had to stop using it.

[–] juja@lemmy.world 1 points 8 months ago

On thinking about this a bit more, I feel like you may be expecting the system to handle situations where your business requirement needs the new field to be used now, but used to work without this field before. Based on the example you provided, I am imagining something like a getTasksForUser functionality which previously might have just been filtering on userId but if the business now says that this functionality should now return tasks sorted by priority, you expect the system to somehow know the business requirement and force the developer to use this new priority field ?

If that’s what you’re hoping for, the problem is harder to solve although not impossible. Assuming the example as above , you could maybe just inject the priority field at the data access layer . Another way would be to make the modified entity private and expose a facade with helper functions that are exposed. Now when code that previously used to rely on the entity inevitably breaks , you can replace those usages with usage specific functions exposed from the facade and since the entity is now accessible only from the facade, you can easily update all usages within the facade and make sure no one can miss passing the priority field since the entity is private to the facade and all functions in the facade are known to use the new field.

[–] juja@lemmy.world 2 points 8 months ago

It still doesn’t make sense. Obviously your whole explanation hinges very heavily on what exactly you mean when you say “not used/handled” . Depending on your specific use case this could mean anything. As with any code related question, there’s only so much that people who haven’t seen your code can do to help. I think the easiest way to avoid this confusion is to just show some code so we are all on the same page about what the issue is.

[–] juja@lemmy.world 2 points 8 months ago (3 children)

I am still confused about what OP is looking for. Even in typescript, if a new field is added and not used in other places, compilation will fail. Unless OP explicitly marks the field as optional.

There’s also the possibility that the codebase is littered with the “any” keyword (I’m not saying OP is doing it but I’ve definitely seen plenty of codebases that do this). If someone says they’re using typescript but their code is full of “any” keywords, they’re not using typescript. They’re just using plain JavaScript at that point.

[–] juja@lemmy.world 1 points 8 months ago

I have a rog ally and legion go but I only use the legion go for portable gaming so that’s the only one I’ve tried suspend/resume on and it has worked for the two games that I’m currently playing on it.

[–] juja@lemmy.world 2 points 8 months ago (3 children)

Got it. I think I see what you mean but I’m not sure if I just got lucky or if the games I play have accounted for it but I am able to just suspend and resume without issue on my windows handheld. Unless we have different definitions for what we call suspend. When I want to suspend, I usually pause the game and push the power button once and leave it like that for hours and then come back and push the power button again to turn the screen on and resume playing. I’ve done the same thing on a steam deck and it works similarly there as well so I’ve not noticed any difference. Unless you mean the ability to somehow take a snapshot of the running games state and store in on non volatile disk and completely power down and turn it back on to resume. If steam deck can do that out of the box, that is indeed impressive.

[–] juja@lemmy.world 3 points 8 months ago (5 children)

I understand this is lemmy and comments like this are to be expected but does it have to be for every post that is related to windows ? In general, I agree that windows has quite a few drawbacks compared to Linux but for gaming pcs, once the initial setup is done, you can just launch a game and it just works without any tinkering. I don’t understand the argument that people should throw away a whole OS and switch to a different one and lose the ability to play a bunch of games in the process. Doesn’t context matter when discussing the pros and cons of something? Or is there some massive drawback to windows for gaming handhelds that I’m not seeing ? Or is there some magic sauce in Linux that makes every single game playable without tinkering ?

view more: next ›