« first day (968 days earlier)      last day (4204 days later) » 

22:00
you should have a timer, and any time a request looks like its going to take over 200ms, put it in a backlog
if its already going over, no point spending more time on it!
If a cop swiped your drivers license, or you go to a hospital to swipe your carecard, they need that information back asap.
maybe the second one
let me rephrase - they don't "need" it.
they want it.
22:01
yeah i meant more about in context of me handing over my license or carecard
in BC they're the same
my DL is 3 years old
our drivers license is our care card. It's a BC SErvices card. Any service the BC Gov. gives out, gets put on that card
wtf when did those come out
ah yeah theyre new this year
neat ill have to get one at xmas time
@RyanTernier try a Tuple<string,enum,bool,bool> for fun, yes they are ugly
22:06
ohhh
that'll confuse my juniors
is the string always different?
@drch are you in BC?
i am in London UK but I'm from Vancouver
AH
i think i've only seen one person on here from BC
and I forget who that was
probably me ;)
22:08
have you been following the election?
did you*
not especially
at my current gig, they block all the normal music services i use, so ive been listening to cfox morning show. all my bc news i get from there.
so, yeah, not so much ;)
anything particularly special about it? other than the pollsters all getting it wrong
Cristy clark got elected as permier again, but doesn't actually have a seat because she lost her riding
so she running in Kelowna by-election to get elected so she is allowed to walk into her office in Victoria haha
yeah thats a big fuck you HST
so I have a class MyFileReader which I will pass my file path to, that will open either a File1 or File2 file. Would I declare my FileX classes as internal classes to MyFileReader?
probably private
internal means any other class in the same assembly can muck with them
streams are something you probably want the owning class to keep under wraps
22:13
streams are best kept private - @drch is right
you can keep them protected if you are relying on inheritance
okay, I read that on MSDN too. I have them as private.
what about a method in a FileX class then, if I declare them as public, they would only be public to MyFileReader right?
everything under the sun can access a public property
but technically couldn't be accessible to anything if I have: public class MyFileReader { private File1; private class File1{ public void Read(){} } }
private properties are just in reflective denial
public class MyFileReader
{
    private File1;
    private class File1
    {
        public void Reader() {;}
    }
}
22:19
You access anything you feel like if you really need to.
okay
yes that's fine although a bit unorthodox
the most common time you make a nested class is when it has to access private properties of the outer class
@drch what makes it unorthodox, the way I "wrote" Reader, or one of my keywords
and that's quite rare too
ahh okay
22:21
@N00B.NET what does the class do?
It parses a file and provides a container of data in the file
but each FileX is formatted different
so I wanted to separate the parsers
public List<XInfo> GetFileData()
{
    if (_file1 != null)
        return _file1.ParseData();
    else if (_file2 != null)
        return _file2.ParseData();
    return null;
}
FileInfo is a framework class I think
whoops.
You're right though.
@N00B.NET why not pass in the correct reader in
Well my MyFileReader contains the FileStream, and in the constructor I open the file that is passed.
if its file1 it uses a filestream, if its file2 it uses a streamreader
I have raw byte data in file1, so I couldn't use a streamreader
22:28
interface IFileParser {
   List<XInfo> ParseData();
}

class File1 : IFileParser{ }
class File2 : IFileParser { }

class MyReader {
   IFileParser _parser;
   public MyReader(IFileParser parser) {
      _parser = parser;
   }

   public List<XInfo> GetFileData() {
      return _parser.ParseData();
   }
}
makes a cleaner interface for the caller
Ahh I gotchu now. I knew there was something better I could do
it doesn't have to remember which parameter should be null for a certain behavior
thanks alot @drch
yw
22:43
whoa. I killed VS.
YOU BASTARD!
How?
He's american, do you need to ask how he killed something??? =D
23:02
@RyanTernier PATRIOT MISSILE
I was going to say Murray or Dr.Phil
23:54
well i'm going home to grab a drink, kill some uglies in Rift, do some work on my speach and talk to my kids
@RyanTernier how do you like rift?

« first day (968 days earlier)      last day (4204 days later) »