« first day (3115 days earlier)      last day (2058 days later) » 

00:16
This wouldn't make a good property, would it?
    private bool m_isAwful;
    public bool IsAwful
    {
        get { return m_isAwful || m_isSmellsBad; }
        set { m_isAwful = value; }
    }
If I assign the the value and immediately read it back, I wouldn't necessarily get the same value.
The only way to legitimize this [that I can think of] would be to throw an exception in the setter.
mr5
mr5
01:25
@nyconing yes he said that. We're not sure if he's joking or not but to be honest, we are really not supporting that idea.
@NickAlexeev if I want a property that concludes something based on multiple properties, I would only make a getter for it and not a setter
for example:
    public decimal TotalPrice => purchases.Sum(item => item.Price * item.Quantity + item.Tax);
 
4 hours later…
mr5
mr5
05:48
is this real life...
 
13 hours later…
18:46
Anyone here?
I want to quickly brainstorm a loop...
Say I have this List<Tuple<int, int >>
where each Tuple holds a column and a row value
there are columns 1-3 and rows 0-10
the tuples are occupied values
I want to find the next free column and row
I could just iterate trough the columns and the rows and trough all tuples. But then I'd do 1k iterations by the time I'll determine all the locations are filled
If someone can turn this into an SQL query, I'd accept that too ..
 
1 hour later…
20:10
you need to sort them and then look for gaps
Anything you know of, that I could google, to do that easily?
oh morelinq, why u so bad
@RandoHinn you want to take your list, then do something like .SortedWith(comparer).Windowed(2)
that will give you a list of neighbours of your source
So, the free spaces?
then, you could do a .SelectMany() to provide the values between the left and right
that would result in a series of free spaces
the only exception is leading and trailing spaces
the window function is so limited that it only supports complete projections
so for the leading and trailing spaces, you should use a .First() and .Last() and work from there
leading and trailing as in all the outer edge ones?
20:19
yep
sort of
oh dear god...
me no like
or you could produce a full set and then use a double iterator to iterate through both collections at the same time, keeping the values paired
then you can also easily find missing values
(source should still be sorted then)

« first day (3115 days earlier)      last day (2058 days later) »