Early Easter Quiz Question !!?? .....

Public forum to share code snippets, screen shorts, experiences, etc.
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Early Easter Quiz Question !!?? .....

Post by robert »

4242?
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Phil Hepburn
Posts: 743
Joined: Sun Sep 11, 2016 2:16 pm

Early Easter Quiz Question !!?? .....

Post by Phil Hepburn »

Nice try Robert, but slightly less than Karl's

I like the number you chose however ;-0)

But 24242 would have been much closer! (I know, it messes up the '42' idea,)

The total I found to be in all those assemblies, but one, (the Galasoft 'extra' would not load in the method) was as seen in the next image - yes, 22 thousand, 4 hundred and 49 :-

My own guesstimate as I 'penned' the original post, and got the original idea, was 2 to 4 thousand. So it is quite staggering really, even I was a LONG way out!

Check this out :-
MasksAndEnums_41.jpg
MasksAndEnums_41.jpg (75.92 KiB) Viewed 456 times
Yes, in this "work in progress" test code things are still messy but accurate I feel.

Soon I will have an interactive WPF form, with better presentation of details.

One further screen will have a data grid with rows for Assemblies and their names and enum totals as column details.

Watch this space.

Oh! - point being, if we only use a handful of Enums in our own .NET code, could it be that we are missing a trick or two (or indeed thousands of tricks) ?

Keep on reading these posts, together we may learn something ;-0)
Cheers,
Phil.

P.S. can Karl be counted as the winner when he was 17,449 too low ?
Frank Maraite
Posts: 178
Joined: Sat Dec 05, 2015 10:44 am
Location: Germany

Early Easter Quiz Question !!?? .....

Post by Frank Maraite »

Phil,
Karl Faller wrote:Now then, some 5k i'd suspect.
I read this as 5 times 5k equals 25000 :-)

Frank
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Early Easter Quiz Question !!?? .....

Post by FFF »

dr philip h. hepburn wrote:P.S. can Karl be counted as the winner when he was 17,449 too low ?
Ha ;)
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Phil Hepburn
Posts: 743
Joined: Sun Sep 11, 2016 2:16 pm

Early Easter Quiz Question !!?? .....

Post by Phil Hepburn »

Hi Karl and all friends and X# colleagues,

I have a slight confession to make - something to do with a small piece of NASA type spacecraft code getting into my solution.

So my craft got to Mars when I was headed for Venus, or even the Moon ! ;-0))

So numerically speaking LARGE became 'large', and it looks like all of you guys who guessed will have to fight it out between you for who gets the champagne to drink.

Yes, now that I have made a new clean demo app for Enums, Assemblies, Classes and Masks etc. it would appear that a small error on one line caused me to count all Types in the assembly, for the grand total - SORRY !

The answer is actually 2363 and can be clearly seen in the image below :-
MasksAndEnums_53.jpg
MasksAndEnums_53.jpg (190.2 KiB) Viewed 456 times
If you wish to check the code I have left the image attached but not displayed in the body of this post.

What I will add to the post itself is the code to open and display the blue form - its done in the classical way an MVVM form should be displayed.
MasksAndEnums_55.jpg
MasksAndEnums_55.jpg (103.26 KiB) Viewed 456 times
The assemblies in the data Model are injected into the ViewModel and the VM bound to the View. Easy!

Now then, if you inspect the top blue line in the grid you will see a number you know well by now - 22449 - yes, it is actually all of the types in the collection of assemblies.

However, we still have almost 11 % of all assembly types being of type Enum - so it is still quite substantial.

The unfortunate thing from my point of view was that my first (and correct) try gave me 499, which led me to false expectations for the group of assemblies - that's my excuse.

Anyone seen a space ship cruising around ? If you have then send it back to me please ;-0)

Have a nice day,
Phil.
Attachments
MasksAndEnums_52.jpg
MasksAndEnums_52.jpg (101.32 KiB) Viewed 456 times
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Early Easter Quiz Question !!?? .....

Post by robert »

Phil,

Here are the nominees:

Frank: 150
Robert: 4242
Karl: 5000

Correct answer: 2363

Frank: 2213 to low
Robert: 1879 to high
Karl: 2637 to high


So the winner is: Robert

:) :) :) :) :)

You can bring the champagne and the statue to the conference !
oscar.jpg
oscar.jpg (81.35 KiB) Viewed 456 times
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Phil Hepburn
Posts: 743
Joined: Sun Sep 11, 2016 2:16 pm

Early Easter Quiz Question !!?? .....

Post by Phil Hepburn »

Robert - somehow I had a funny feeling you may come to this conclusion ;-0)

However, rule #1 of all competitions states that no member of the management 'TEAM' can enter or win !

So maybe you get a round of applause, but no cigar ;-0((

I will buy you a beer in Cologne as recognition of your genius etc., etc..

Have a nice day,
Phil.
Wales, UK.
Post Reply