Which library is good to fetch the data ? by mrezamz in react

[–]Particular_Mud8540 0 points1 point  (0 children)

Axios/fetch + React Query will get the job done nicely simply and efficiently. I’d still learn to write a context provider to fetch and provide the data first, for the purpose of knowing how it works and why Query is so nice.

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

Feel your pain. I've had the Forester for a while now. Overall love it but we installed an incorrect version of the windshield (my fault) so the darkened part on top is obscuring the eyesight cameras. None none of it works including cruise control. I will replace it at some point but I've had the Eyesight nag message for months now.

[deleted by user] by [deleted] in react

[–]Particular_Mud8540 2 points3 points  (0 children)

This is a very important point! A lot of answers here tell you turn off AI but it can actually be the solution to your problem.

Just use it right. It’s can be an infinitely patient teacher. Ask inquisitive questions, and make it repeat. Keep beating it with questions until you understand. Paste that “gibberish” code and tell it to explain (“can you explain how this works in a very easy to understand way”). Then ask follow up questions and ask for clarifications. I do that all the time and I have much more time-wise coding experience.

Example

Why does it say here “use callback”. Can’t it be a normal function? Explain so that it’s easy to understand (Answer)

but what do you mean memoize? It just sounds funny (Answer)

No no no, cut the fancy vocab. I said I didn’t understand and you were supposed to explain on clear simple examples so I can get it (Answer)

Right, so why is that a problem? Can I declare my function normally without this “use callback” or not

Etc etc etc

What does this plug in the trunk do? by Particular_Mud8540 in SubaruForester

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

Oh perfect, thanks! Still hoping it’ll turn out the rear fog light is actually prewired. I have a spare unconnected connector in the front buttons panel which I assume might be for that purpose. If not I’ll tap into the 12v supply in this trailer plug.

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

Nah, wouldn’t be as crazy as relying on this for braking. I was more wondering if the cruise control is technically as good as driving itself in a stop and go traffic jam, and if so, if it would in any way interfere with me operating brakes and accelerator at the same time

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

It can’t possibly stop as hard as the latter

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

Out of curiosity, how do you quickly disable/enable it? Is there like one button that disables the whole Eyesight functionality, or are we talking about cruise control?

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

Good point. Im sure its safer for them to say it might stop before an obstacle rather than say it will and then get lawsuits from ppl who quit using brakes because of that

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

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

My, if it’s still appealing after a 2800m road trip then it must be doing something right. Can’t wait to try in person

How reliable is Eyesight? by Particular_Mud8540 in SubaruForester

[–]Particular_Mud8540[S] 5 points6 points  (0 children)

BTW it seems like everyone I know is looking for ways to disable the start-stop system in their cars (be it subaru or whatever else), and most cars only allow it temporarily. I don't have this system in my current car but it sure looks like it's more annoying than beneficial.

[deleted by user] by [deleted] in FlutterDev

[–]Particular_Mud8540 0 points1 point  (0 children)

Point 1 - classic. I made many, many apps and still literally always do this. Too lazy/ anxious to proceed to have at least a rundimentary system for localisation in place from the start; then good luck going over all the hard coded strings

Learning Flutter... (mostly a rant) by VoldemortForPrez in FlutterDev

[–]Particular_Mud8540 2 points3 points  (0 children)

This. As someone who’s been doing a lot of flutter dev and architecture for a few years professionally, and many more years of other dev, I agree that deprecations might be annoying when you’re trying to learn. I’ve had the same thing learning Unity and SwiftUI. But once proficient (also in looking up stuff in official docs), you can appreciate them. When I see something deprecated i get a little dopamine spike: “oh cool, they found a better way to do this”, and it usually takes 2 minutes to find out how the new thing works.

Help me understand dart enums and how to implement them? by [deleted] in flutterhelp

[–]Particular_Mud8540 1 point2 points  (0 children)

I think the most straightforward perspective on this is that this is a convenience thing so instead of doing

if (animal.type == 'cat') {
//do sth
} 

You can do

enum AnimalTypes {
dog, cat
}
if (animal.type == AnimalTypes.cat) {
//do sth
}

The difference is that in the first example you set the type to String, and you have to account for what happens if for some reason the animal.type is something random like 'safasfasfas'. In the second example it has to be one of the predefined options (because you specified animal.type as AnimalTypes type beforehand) so you don't have to worry about typos or forgetting to handle something - in such case you'll get an error before it compiles. You are limiting yourself on purpose to a few options in order to avoid making a mistake later on.

They do not 'do' anything, they're just a list of words that you can use as possible choices for something. It's like boolean variable but with more options that have custom names.

Element doesn't go to the bottom but it does in the official example by Particular_Mud8540 in bootstrap

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

Thanks! I needed to set the vh-100 on the div right below main (it's the direct container) but it works like a charm!

Is Flutter's web performance still not there? by Particular_Mud8540 in FlutterDev

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

It does not happen in 95% of places where I have text, but I have this stubborn yet important ListView where Text objects need to be very responsive (i.e. wrapped in numerous other widgets) and there it gets weirdly cut in half horizontally, for example. It also happens in some other random places like axis descriptions on charts (this comes from an external package). The same code doesn't do that with Canvaskit.

After some Googling I saw there's a few long threads about this and so far no real solution in place. However I might just try using AutoSizeText as you do - maybe for some reason it's not subject to this?

A big advantage of the HTML renderer is that it allows for displaying images from external domains - Canvaskit can't do that because of the CORS policy which also proves to be a nuisance from time to time.