[-] SmartmanApps@programming.dev 0 points 2 years ago

intentionally ambiguously written

#MathsIsNeverAmbiguous

learned order of operations to cause a fight

The order of operations are the same everywhere. The fights arise from people who don't remember them.

[-] SmartmanApps@programming.dev 0 points 2 years ago

Different compilers

Different programmers.

it’s going in parentheses

Unfortunately some places don't care where you've put brackets, they'll just go ahead and change it anyway. Welcome to my quest to educate.

[-] SmartmanApps@programming.dev 0 points 2 years ago

I’ll die on a hill that this is 16

Rest in peace

[-] SmartmanApps@programming.dev 0 points 2 years ago

both you and people arguing that it’s 1 would be wrong

No, they're correct Order of operations thread index

This problem is stated ambiguously and implied multiplication

It's not ambiguous, there's no such thing as implicit multiplication

This is all matter of

...following the rules of Maths.

[-] SmartmanApps@programming.dev 0 points 2 years ago* (last edited 2 years ago)

since 🐟 is no longer a number

It's still a pronumeral though, equal to 4, so the answer is still 8÷8=1.

[-] SmartmanApps@programming.dev 0 points 2 years ago

They are order of operations

No, they're not.

Multiplication and division are not on the same level

Yes, they are.

they are distinct operations which form the identity when combined with a multiplication

In other words, they are the inverse operation of each other - welcome to why they have the same precedence.

order of ops is an established convention, not mathematical fact

It's a mathematical fact.

[-] SmartmanApps@programming.dev 0 points 2 years ago

Under pemdas divisor operators must literally be completed after multiplication

Not literally. It's only a mnemonic, not the actual rules.

They are not of equal priority

Yes, they are. Binary operators have equal precedence, and unary operators have equal precedence.

[-] SmartmanApps@programming.dev 0 points 2 years ago

It doesn't make sense in BODMAS either. Expanding Brackets has precedence of... Brackets, not "multiplication" - "Multiplication" refers literally to multiplication signs, of which there are none in this question.

[-] SmartmanApps@programming.dev 0 points 2 years ago

All order of operation rules are made up

None of them are made-up. They are all a natural consequence of the way things have been defined. e.g. 2x3 is shorthand for 2+2+2, so if you don't do multiplication before addition then you get the wrong answer, hence the order of operations rules.

[-] SmartmanApps@programming.dev 0 points 2 years ago* (last edited 2 years ago)

You can if you wrote everything as just addition and subtraction, but then we made some shorthand notations for that, such as 2x3=2+2+2, and so now you have to do multiplication before addition otherwise you get a wrong answer, and if you wrote all multiplications before all additions there'd still be no problem, but as someone else pointed out, there are cases where it's easier to have a different order, and so voila! Order of operations rules.

[-] SmartmanApps@programming.dev 0 points 2 years ago

Actually multiplication and division are shorthand notations for addition and subtraction - e.g. 2x3=2+2+2 - so everything boils down to addition and subtraction.

[-] SmartmanApps@programming.dev 0 points 2 years ago

Well thanks to you too for a proper conversation. :-) There's a lot of people here wanting to pull out their pitchforks over the smallest thing.

17
Microsoft DevBlogs now federated (devblogs.microsoft.com)

cross-posted from: https://programming.dev/post/10535103

Microsoft DevBlogs has just been federated and can be followed at @msftdevblogs@dotnet.social.

Thanks to @mapache@hachyderm.io!

1
Microsoft DevBlogs now federated (devblogs.microsoft.com)

cross-posted from: https://programming.dev/post/10535103

Microsoft DevBlogs has just been federated and can be followed at @msftdevblogs@dotnet.social.

Thanks to @mapache@hachyderm.io!

1
Microsoft DevBlogs now federated (devblogs.microsoft.com)

Microsoft DevBlogs has just been federated and can be followed at @msftdevblogs@dotnet.social.

Thanks to @mapache@hachyderm.io!

5
4
2
submitted 2 years ago* (last edited 2 years ago) by SmartmanApps@programming.dev to c/dotnet@programming.dev

cross-posted from: https://programming.dev/post/9846368

Hello everyone. I just ran into an issue upgrading to MAUI 8.0.6 and thought I'd warn you to save some hair-pulling. Note that you can create a new MAUI app as 8.0.6 and it'll work - the issue only applies to if you have an existing <=8.03 app and try to upgrade.

As per my previous post, I ran into another issue with 8.0.6 (first time MAUI has gone the upgrade via nuget path - what could go wrong?!), and eventually I realised I already had a repo I could use for repro (I couldn't use the app I was working on), and all I would have to do was update it to 8.06 and... I couldn't (sigh).

If this comment is correct then it relates to Essentials. I tried their work-around but it didn't work for me.

So my status now is I need them to fix this, so I can repro the other issue in 8.0.6, so that they can fix that too and Flyout works again - I'm currently considering downgrading to .NET 7.0 until they get their act together with 8.0.

1
submitted 2 years ago* (last edited 2 years ago) by SmartmanApps@programming.dev to c/dotnetmaui@programming.dev

Hello everyone. I just ran into an issue upgrading to MAUI 8.0.6 and thought I'd warn you to save some hair-pulling. Note that you can create a new MAUI app as 8.0.6 and it'll work - the issue only applies to if you have an existing <=8.03 app and try to upgrade.

As per my previous post, I ran into another issue with 8.0.6 (first time MAUI has gone the upgrade via nuget path - what could go wrong?!), and eventually I realised I already had a repo I could use for repro (I couldn't use the app I was working on), and all I would have to do was update it to 8.06 and... I couldn't (sigh).

If this comment is correct then it relates to Essentials. I tried their work-around but it didn't work for me.

So my status now is I need them to fix this, so I can repro the other issue in 8.0.6, so that they can fix that too and Flyout works again - I'm currently considering downgrading to .NET 7.0 until they get their act together with 8.0.

3

cross-posted from: https://programming.dev/post/9780587

In MAUI 8.03 we had the Flyout bug where the NavigationPage Title wouldn't update from the first page you had been on. In MAUI 8.06 that bug has been fixed but has introduced a new one on Windows (sigh).

Starting on Page1 I can use the Flyout to switch to Page2. Then, on Windows, if I use Flyout to switch back to already-existing Page1 it crashes with...

System.Runtime.InteropServices.COMException (0x800F1000): No installed components were detected.

Element is already the child of another element

It works on Android, and it works if you are creating a new page each time, it just doesn't work on Windows to switch back to an already-created page (which defeats the whole purpose of having a Flyout menu - switch between 2 pages without making a new one every time).

  1. Does anyone know of a workaround to this? I can't find anything that relates to this in the context of a MAUI Flyout.
  2. Does anyone have a real simple Flyout template that could be used for the repro (to put in the issue I'm gonna need to create). The one I'm working on has a whole bunch of my own libraries in it, so I'm gonna need to tear them all out before I can use it to make a repro (and of course they don't provide a template, and their sample doesn't work due to different bugs - sigh).
1

cross-posted from: https://programming.dev/post/9780587

In MAUI 8.03 we had the Flyout bug where the NavigationPage Title wouldn't update from the first page you had been on. In MAUI 8.06 that bug has been fixed but has introduced a new one on Windows (sigh).

Starting on Page1 I can use the Flyout to switch to Page2. Then, on Windows, if I use Flyout to switch back to already-existing Page1 it crashes with...

System.Runtime.InteropServices.COMException (0x800F1000): No installed components were detected.

Element is already the child of another element

It works on Android, and it works if you are creating a new page each time, it just doesn't work on Windows to switch back to an already-created page (which defeats the whole purpose of having a Flyout menu - switch between 2 pages without making a new one every time).

  1. Does anyone know of a workaround to this? I can't find anything that relates to this in the context of a MAUI Flyout.
  2. Does anyone have a real simple Flyout template that could be used for the repro (to put in the issue I'm gonna need to create). The one I'm working on has a whole bunch of my own libraries in it, so I'm gonna need to tear them all out before I can use it to make a repro (and of course they don't provide a template, and their sample doesn't work due to different bugs - sigh).
1

cross-posted from: https://programming.dev/post/9780587

In MAUI 8.03 we had the Flyout bug where the NavigationPage Title wouldn't update from the first page you had been on. In MAUI 8.06 that bug has been fixed but has introduced a new one on Windows (sigh).

Starting on Page1 I can use the Flyout to switch to Page2. Then, on Windows, if I use Flyout to switch back to already-existing Page1 it crashes with...

System.Runtime.InteropServices.COMException (0x800F1000): No installed components were detected.

Element is already the child of another element

It works on Android, and it works if you are creating a new page each time, it just doesn't work on Windows to switch back to an already-created page (which defeats the whole purpose of having a Flyout menu - switch between 2 pages without making a new one every time).

  1. Does anyone know of a workaround to this? I can't find anything that relates to this in the context of a MAUI Flyout.
  2. Does anyone have a real simple Flyout template that could be used for the repro (to put in the issue I'm gonna need to create). The one I'm working on has a whole bunch of my own libraries in it, so I'm gonna need to tear them all out before I can use it to make a repro (and of course they don't provide a template, and their sample doesn't work due to different bugs - sigh).
1

In MAUI 8.03 we had the Flyout bug where the NavigationPage Title wouldn't update from the first page you had been on. In MAUI 8.06 that bug has been fixed but has introduced a new one on Windows (sigh).

Starting on Page1 I can use the Flyout to switch to Page2. Then, on Windows, if I use Flyout to switch back to already-existing Page1 it crashes with...

System.Runtime.InteropServices.COMException (0x800F1000): No installed components were detected.

Element is already the child of another element

It works on Android, and it works if you are creating a new page each time, it just doesn't work on Windows to switch back to an already-created page (which defeats the whole purpose of having a Flyout menu - switch between 2 pages without making a new one every time).

  1. Does anyone know of a workaround to this? I can't find anything that relates to this in the context of a MAUI Flyout.
  2. Does anyone have a real simple Flyout template that could be used for the repro (to put in the issue I'm gonna need to create). The one I'm working on has a whole bunch of my own libraries in it, so I'm gonna need to tear them all out before I can use it to make a repro (and of course they don't provide a template, and their sample doesn't work due to different bugs - sigh).
13

cross-posted from: https://programming.dev/post/9762490

cross-posted from: https://programming.dev/post/9762485

I've just run into a MAUI issue which is specific to Windows (works fine on Android), and so I looked for a Windows Lemmy Community and was surprised to find there wasn't one! So I have created one at !windows_dev@programming.dev

Of course you are still welcome to post about MAUI issues in !dotnetmaui@programming.dev but if the issue is specific to Windows (as I have just encountered) then there is now the Windows Development Community as well (and of course we already have Communities for Android and IOS development, for issues on those platforms).

view more: ‹ prev next ›

SmartmanApps

0 post score
0 comment score
joined 2 years ago
MODERATOR OF