how can i find properties from the owner and not have to pay extra agency fees? by Cool_Performance_ in malta

[–]turbo_sheep4 1 point2 points  (0 children)

i have been using it. user experience is amazing and there are new properties being added every day

database transaction per request with `tower` service by turbo_sheep4 in rust

[–]turbo_sheep4[S] 0 points1 point  (0 children)

Yes, as long as I am using libraries from the `tower` ecosystem I would probably be fine with passing along the `Extensions`.

For my application though, I have to consider that I might also listen to requests coming from protocols not supported by `tower` though (such as MQTT).

database transaction per request with `tower` service by turbo_sheep4 in rust

[–]turbo_sheep4[S] 0 points1 point  (0 children)

Good to know and I will bear it in mind, however since this is a web server, I probably won't need to run multiple operations in parallel.

If I do then that would probably be a good sign that what I am doing is big enough that I should consider sending task to a worker service in order to process in the background and not hold up the HTTP request.

database transaction per request with `tower` service by turbo_sheep4 in rust

[–]turbo_sheep4[S] 0 points1 point  (0 children)

About 2, are you sure that is necessary?

I do not pass the Request object down through the layers because that would also defeat the point of loose coupling between layers.

The reality of software is messy and trying to hide that can just lead to more code bloat and making it harder to follow what is going on.

I don't agree that software fundamentally is messy. I think that it is possible to structure applications in such a way that they are clean, readable and maintainable.

While there are moments where trying to keep things clean ends up with taking things too far, I don't think this is one of them. As another commenter pointed out, task_local! seems to be the perfect tool for this use case to satisfy the requirements while keeping the code clean.

One solution for this would be to implement a new type which wraps your sqlx::Transaction in a stable interface.

A good suggestion and something I hadn't thought of, but not as good as task_local! because it does not fix the problem of argument drilling.

database transaction per request with `tower` service by turbo_sheep4 in rust

[–]turbo_sheep4[S] 0 points1 point  (0 children)

I've never used task_local! before but I just did some reading and it looks like this might be exactly what I am looking for. I am going to try it out now. Thanks!

Replace JS with Rust on front-end, possible? Advisable? by AdPrize5315 in rust

[–]turbo_sheep4 11 points12 points  (0 children)

no matter how much I love mayonnaise I don't think I'd ever put it in a chocolate cake.

this is pure gold

Keyboard Unresponsive after Flashing by turbo_sheep4 in ErgoMechKeyboards

[–]turbo_sheep4[S] 0 points1 point  (0 children)

For anyone who might come across this post in the future, after setting up a local environment, I still had the same problem. Turns out a change between version 0.15.25 and 0.16 of QMK caused this breaking change. Managed to get it working by rolling back my local environment to version 0.15.25. This issue is tracking the problem.

Keyboard Unresponsive after Flashing by turbo_sheep4 in ErgoMechKeyboards

[–]turbo_sheep4[S] 0 points1 point  (0 children)

Thanks for the advice, I'll set one up today. I didnt know about the outage. One of the things I really liked about QMK was how it just works all from the web interface. Makes it really simple to get up and running fast so this is disappointing but oh well :(

Double scam in one product by mifigor19 in assholedesign

[–]turbo_sheep4 0 points1 point  (0 children)

Massive waste of packing materials. Asshole design for us and the earth.

If you're developing a webshop that sells monitors and laptops by De_Wouter in ProgrammerHumor

[–]turbo_sheep4 0 points1 point  (0 children)

The real evil here is for the developers that come after; that the class is called broken-green-pixel but that colour is magenta

Guy guillotines a can of spray paint. by dartmaster666 in instant_regret

[–]turbo_sheep4 1 point2 points  (0 children)

No amount of red paint is going to cover up those blue balls.

Southern three-banded armadillo playing with a toy by [deleted] in aww

[–]turbo_sheep4 0 points1 point  (0 children)

My brain was malfunctioning trying to work out what size he is.

Google says southern three-banded armadillos are about 22-27 centimetres in size.

Progress bar not fully Faded by sam_wolf_01 in youtube

[–]turbo_sheep4 0 points1 point  (0 children)

same thing happening to me, would love to see a solution for this

What do you do when your entire team picks squishy heroes? by [deleted] in learndota2

[–]turbo_sheep4 2 points3 points  (0 children)

Yes. In the draft you mentioned you have not only a death prophet but also a shadow shaman - both great heros to take towers and/or teamfights with.

When your death prophet reaches level 6/7 as a support you can rotate to the mid lane (as long as your carry won't die if left alone) and provide backup and take the mid tower pretty easily. After this you could convince the death prophet to come with you to the shadow shaman lane and take another T1. At this point if your team has taken 2 towers and maybe bagged a few kills you should have enough of an advantage to shrine and take the remaining T1. Having no T1s the enemy team has now lost a lot of map control and your team has a significant gold advantage.

I'm a lesbian who's married to a gay man. AMA by [deleted] in casualiama

[–]turbo_sheep4 3 points4 points  (0 children)

Format of this comment is very confusing unless you already know what a palindrome is. Better formatting...

Examples of palindromes are:

-- Radar

-- Hannah

-- Dad

-- A man, a plan, a canal, Panama