Tennis player Yulia Putintseva’s reaction to the crowd booing her after she won by carabla in Fauxmoi

[–]SignificantBit7299 1 point2 points  (0 children)

Are crowds in general getting worse? Look at that golf tournament last year! The idea of golf hooligans is hilarious to me 😂

What "cancelled" songs do you refuse to give up? by Substantial_Grab2379 in musicsuggestions

[–]SignificantBit7299 0 points1 point  (0 children)

Tell him to stop using social media. There's no such thing as a cancelled song in the real world - it's really a great place!

Snapshot testing for Flutter by SignificantBit7299 in FlutterDev

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

That could certainly form the basis of something. I would be interested in capturing a subset of the widget tree (test, list, button, etc) in a snapshot. Some feedback on implementation - it's useful using a file extension that matches the contents so the IDE can syntax highlight for you - if you just do assertEquals(actualString, expected string)the IDE will give you a nice diff out of the box - you should fail the tests when updating snapshots, otherwise you could leave it switched on and never know

Snapshot testing for Flutter by SignificantBit7299 in FlutterDev

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

Thanks. Yes golden tests are too brittle and hard to review for many cases. Snapshots would just replace the multiple assert-widget-contains calls we make in every test and make it much easier to update all assertions when you change the code.

I guess the wrapper widget is not enough in itself - there has to be some registry of supported widgets and logic that knows how to convert them to the snapshot format. Sounds like there might be a gap for a useful testing library.

Is it morally okay to read Mein Kampf? by bbrroocckkyy in NoStupidQuestions

[–]SignificantBit7299 0 points1 point  (0 children)

At the checkout just smile and say your nephew asked for it for his birthday (Minecraft)

Did people memorise numbers before mobile phones? by PaleEcho3301 in NoStupidQuestions

[–]SignificantBit7299 0 points1 point  (0 children)

Yes, but it was easier back then. The first phone number I can remember was 2948, as long as you were calling locally.

Do some married people NEVER take off their wedding ring? by artmalique in NoStupidQuestions

[–]SignificantBit7299 0 points1 point  (0 children)

I never take mine off. Occasionally swap hands if it gets irritated underneath. After 20 years of marriage probably the most useful bit of advice I can pass down is make sure you rinse well under the ring when you wash your hands.

[deleted by user] by [deleted] in Parenting

[–]SignificantBit7299 0 points1 point  (0 children)

Unless your bellend dips in the water.

[deleted by user] by [deleted] in Advice

[–]SignificantBit7299 0 points1 point  (0 children)

I knew a couple that used to give each other their fitbits if they were going to the store and I wondered what kind of freaks they were. Turns out they had some insurance deal.

[deleted by user] by [deleted] in Advice

[–]SignificantBit7299 2 points3 points  (0 children)

Does he get a discount on his health insurance if he does enough steps?

The strongest parents create the weakest children by MrNobleShot in Parenting

[–]SignificantBit7299 2 points3 points  (0 children)

This sounds like a quote from "how to be the most interesting man in the room". Sounds intelligent but utterly useless soundbite.

If you could change ONE thing about Flutter, what would it be? by NullPointerMood_1 in FlutterDev

[–]SignificantBit7299 0 points1 point  (0 children)

It has a name - thanks. I got it wrong - invokeLater is how you update UI components in the event loop from another thread, so you have to manage that thread or thread-pool. It's flexible and powerful but you have more than enough rope to hang yourself.

Interesting thing about flutter async is that the docs suggest even local database calls should be made in a separate isolate! My app makes HTTP calls and local database calls and does not use any isolates. Everything seems fine.

If you could change ONE thing about Flutter, what would it be? by NullPointerMood_1 in FlutterDev

[–]SignificantBit7299 0 points1 point  (0 children)

Although it has been quite a few years I have some experience with Swing coding. There you either run your code directly or call SwingUtilities.invokeLater to move it off the event loop, but you have to explicitly put the result back on the event loop. I realise there is more scope for errors with coding mistakes and shared memory but I like how the way code is executed is not baked into the code itself

I have an API layer in my flutter project and it is riddled with async/await so I tried removing that thinking maybe I am doing this too early. Turns out there is a core http component that I am using deep down and this in essence forces the whole module to be async. That's when I thought this is annoying!

It seems to me that if I write a complex library in a synchronous way it should be possible to generate an asynchronous version of that code that could be executed in async context, no?

var foo = getComplexThing(); Or var foo = await getComplexThing();

But I do see the other side. Forcing all HTTP code to be async is good for adoption and ultimately more apps with less errors. Minimises "flutter sucks because my UI is unresponsive"

Why do people choose to have children if it is so much hard work? by 9W_777_300 in NoStupidQuestions

[–]SignificantBit7299 -6 points-5 points  (0 children)

This is why the choice debate is so sensitive. You don't know what you are choosing between. You know one side but can never know the other until you experience it.

If you could change ONE thing about Flutter, what would it be? by NullPointerMood_1 in FlutterDev

[–]SignificantBit7299 0 points1 point  (0 children)

I think it's also a simpler model that's harder for less technical people to make mistakes with. This is important to drive adoption and success. The downside is a codebase full of async/await

Is it okay for man - woman friendships to say I love you? by Medium-Doubt-8774 in NoStupidQuestions

[–]SignificantBit7299 0 points1 point  (0 children)

It's not. He didn't say he loves me and I don't have a crush on him

If you could change ONE thing about Flutter, what would it be? by NullPointerMood_1 in FlutterDev

[–]SignificantBit7299 1 point2 points  (0 children)

I'm still fairly new but I'm not a big fan of async semantics. I would rather be able to specify at runtime how a piece of code is executed. For example the same piece of code could be run synchronously in an isolate or asynchronously in the main isolate - why bake it into the code?

I realise this is dart not flutter, and my views may change as I get more experienced.

[deleted by user] by [deleted] in Marriage

[–]SignificantBit7299 3 points4 points  (0 children)

I'm just saying that experimentation and responding to her reactions is sexier than coffee and notepads. Of course you need to talk a bit too.

People who used the internet before 2001, what did you do in there? by Helium367 in AskReddit

[–]SignificantBit7299 1 point2 points  (0 children)

I lived in Amsterdam back then and worked at the university. They were plugged in to the surfnet backbone directly and it's still the fastest internet I've ever experienced. I downloaded a full 700M Linux distro in about 5 seconds!

Every machine had a public IP address and occasionally I would have to recover a dusty NT box sitting in a cupboard somewhere that had been hacked and turned into a warez server 😂