« first day (3194 days earlier)      last day (1746 days later) » 
02:00 - 14:0014:00 - 22:00

2:01 PM
"If there are no correlated elements in inner for a given element of outer, the sequence of matches for that element will be empty but will still appear in the results. "
I was trying to validate this
 
mr5
Sometimes I don't trust debugger. I would evaluate and print the result if I were you.
 
yes I did
no second Person in the final result
he does appears in the query 2 when I just select gj
 
mr5
@Shad isn't that what you saw in the debugger?
 
hmm
 
mr5
@Squirrelintraining are those your children
 
2:04 PM
ah
xD
 
mr5
What did you realize?
 
but why it disappears in the third query?
when I do
from subpet in gj select...
^ this only selects pets
from gj
so
from

{ pets = {System.Linq.Lookup<loj.Person, loj.Pet>.Grouping} }
{ pets = {loj.Pet[0]} }
{ pets = {System.Linq.Lookup<loj.Person, loj.Pet>.Grouping} }
 
Jay
I'm trying to create a list of strings and then add something to it, but intellisense doesn't think the list exists and it's not letting me do a .Add()
 
to this via another from
 
Jay
`List<string> lines = new List<string>();
lines.Add();`
 
2:09 PM
{ pets = {loj.Pet} }
{ pets = {loj.Pet} }
{ pets = {loj.Pet} }
{ pets = {loj.Pet} }
 
Jay
List<string> lines = new List<string>();
but
`lines.Add():`
isnt' recognized
 
@Jay only think I can think of is
 
Jay
and I don't understand the formatting here lol
 
have you added
using System.Collections.Generic;
 
Jay
lines.Add();
 
2:10 PM
at the top
 
Jay
@Shad yes
 
mr5
persons.Select(person => new Person(person) { Pets = pets.Where(pet => pet.OwnerId == person.Id) })
 
@Jay
well you need to add something to it?
lines.Add("xyz");
 
mr5
@Shad is your query the same as that? ^
 
@mr5 Nah, i'ma squirrelino
 
Jay
@Shad that's what I'm trying to do, but the whole line is underlined with red squiggly
it says lines.Add doesn't exist
in the current context
 
whoever is going through the transcript of this room and 10k flagging each instance of a curse word, please stop and just flag them for moderators, instead. Old stuff that isn't still a problem doesn't need to be acted upon by 10k users, if it's truly bad and actionable.
 
it shouldn't be possible to flag archived messages
that just seems silly to me
 
@Jay So what is the context? Are you in a function? are these lines right next to each other? Is lines variable in scope? For example if you declare variable inside a try block it is not in scope inside the catch block.
 
Jay
@BlackSquirrel I was just starting to wonder if it has to do with context somehow. I made a class and I'm declaring some variables, but I want one of them to be a string, like so:
`namespace Expense`
`{`
`public class ExpenseLines`
`{`
`List<string> lines = new List<string>();`
that's awesome, I give up on the weird formatting but you get the idea
and yes I tried typing lines.Add(); right after I created the list, does it need to be inside an event?
 
use the upload button
 
mr5
I'm on phone haha
 
that code looks about right. what framework are you targetting?
sometimes I get rid squiggles when targetting .NET Standard, until I do a build
 
have a nice day of you guys seeing you
 
mr5
you saw us? :o
 
mr5
@Jay type your code as is with no leading spaces in the first line. Before hitting enter, click the "fixed font" button next to "upload" button
Zig
    Zag
        Zig
            Zag
MPEG-DASH (YouTube, Netflix)
or
HLS (iOS)
 
has anyone cloned TFS to git before?
 
@Jay Needs to be inside a constructor, or method in the class. Or you need to initialize on same line like this:List<string> lines = new List<String>{"abc", "xyz"};
 
Jay
@BlackSquirrel okay that was my problem, I guess I'm confused about using lists in general then. Can I not use a list as one of my class variables?
@StephenKennedy idk which framework I'm targetting? but when I try to build it says that line is an error
and I'll try the fixed font button next time, I didn't know that's what it was for
 
3:04 PM
@Jay You're definitely confused. You can't call methods on class variables unless you are inside the curly braces of a constructor or method. As I tried to explain.
 
Jay
@BlackSquirrel thanks
 
Jay
3:30 PM
so how can I use a list as a class variable? declare it in the class like
public List<string> expenseLines = new List<string>();
but then populate it in a method later?
 
mr5
if you are going to expose your field, make it a property and use Pascal casing.
If your intention is to keep it private, then you only need to replace accessibility keyword from 'public' to 'private'
populating the list in other method is okay
 
Jay
I have an ExpenseEnvelope class and an ExpenseLines class and I don't know how many lines someone might have
I've never created a list in C# before and I'm struggle bussing trying to give them what they want using webforms because that's what they use here
 
mr5
You can paste your code there.
 
Jay
an expense line would be each individual expense all broken out line by line, hotel, lunch, gas etc
 
mr5
It's sometimes harder to explain in English what we are trying to say
 
Jay
3:40 PM
okay, I'll try that, thanks @mr5
I'm trying to use something I don't understand and it's not going well so far
 
mr5
The gist?
 
Jay
no, creating a class for the expense lines
 
mr5
class ExpenseLines { }
oh
don't forget the namespace
 
Jay
my brain thought a list would be a good fit but I don't know what I'm doing
 
mr5
namespace YourAppName.FolderItIsUnder
{
    public class ExpenseLines
    {
        public List<string> Lines { get; private set; } = new List<string>();
    }
}
 
Jay
3:49 PM
Okay that's awesome thanks @mr5. I have the class started with that exact structure and I have some other variables, it's really setting and using the list that's throwing me
 
 
1 hour later…
4:53 PM
posted on July 15, 2019 by ericlippert

Let’s sum up the last few episodes: Suppose we have a distribution of doubles, p, and a function f from double to double. We often want to answer the question “what is the average value of f when it is given samples … Continue reading →

 
 
1 hour later…
6:02 PM
Eric's still fixing Random eh?
 
6:22 PM
It's a pretty detailed series. The first 20 or so are pretty useful and immediately applicable. After that, we're getting really in the weeds on issues of efficiency, practicality, and correctness w.r.t. distributions over floating point values.
I like the series, but I haven't had the time to keep up since 35 or so - they've gotten pretty long and detailed. Not something I can read while I'm doing something else.
 
I've really only had a chance to check out a few, but they were good.
 
user10864482
@Sinjai are you still doing javascript stuff?
 
6:40 PM
Unfortunately. Why?
 
user10864482
6:54 PM
@Sinjai I remembered and I was curious if it was still the case
 
7:24 PM
Heh. I'm in support now, so I'm lucky if it involves any programming at all. But if it does it's god-awful JavaScript written by the customer.
"Why is my code breaking your platform?"
I dunno, probably because you're bad at your job.
 
user10864482
7:53 PM
@Sinjai do you like it?
 
8:45 PM
@user23333 Eh. It's less work than my old engineering job and pays way more, but it's not nearly as interesting.
 
I miss this chat room
Squirrels?
Anyone?
Finally someone, I am no longer alone
@user23333 how are you doing ?
 
user10864482
@CaptainCthulhu superb and yourself?
 
Overflowing with happiness
 
user10864482
@CaptainCthulhu I don't mean to leave you but I leave in 1 minute
 
9:03 PM
......this old cthulhu doesn't mind, young people should go and spread their wings wide
 
02:00 - 14:0014:00 - 22:00

« first day (3194 days earlier)      last day (1746 days later) »