« first day (867 days earlier)      last day (4307 days later) » 

17:06
hey
have a question
is if(button.checked)
the same as if(button.checked==true)
Yes. They compile to the same thing.
17:19
I want to cry now. #expressionblend http://t.co/5lpZkjkRxK
hi guys...
17:32
hi
IComparer<String> comparer <--- thats in a method declaration, What the heck do I pass in there
String.compare() ?
hi friends
hey
what is the best equivalent for this idiom:
"Sharpen your pencil"
@Steve StringComparer.<whatevercomparisonyouwant>
@programmer1 Never heard that.
this idiom used in title of a book
Ah, yes, that one.
@KendallFrey the reason i ask is because of this: stackoverflow.com/questions/15098022/…
his method requires IComparer<TKey>, well doesn't require it, but allows you to put that in
I'm curious, why? I'm guessing for some sort of object comparer, but it relies on the key, and not the object its self
@KendallFrey please refer to this link
i wish i could delete all my cha messages, nvm
there is some practice after this idiom , in your openion is good using "Practice" in this state?
17:46
Seems to be the same as "get ready", "prepare yourself", etc.
@KendallFrey thank's
Why the hell can't VS figure out how to format initializers?
@Steve If you disconnect permanently from the internet, they will effectively be deleted.
Notepad++ can get this right.
n++ rocks
17:47
vim
emacs
VIM
EMACS
@KendallFrey :( no need to be mean
Anywho; aside from Retardsharper, are there any extensions that can get formatting right? Free is preferable as always.
17:50
Meat.
bacon
Strips.
no, no no
whar bacon
whar
17:50
Whale bacon?
I don't know how good that would be.
It would be heavenly.
There would be alot of it, I don't know how heavenly it would be.
pudding bacon
How did I derail a conversation so quickly?
I was just trying to be slightly helpful.
I don't care about the indentation anymore, everything can be in column 1 for all I care.
17:53
@TomW lmfao
ohh Rush
So, type constraints on an IEnumerable<T> extension method aren't observed by the implementing classes?
implementing classes?
Ok, given:
        public interface ITest {
            int Value { get; set; }
        }
        public class Test : ITest
        {
            public int Value { get; set; }
        }
and:
        public static class TestExtensions
        {
            public IEnumerable<T> TestExtension<T>(this IEnumerable<T> source) where T : ITest {
                return source.Where(o => o.Value > 2);
            }
        }
this:
                var tests = new[] {
                    new Test{ Value = 1 },
                    new Test{ Value = 2 },
                    new Test{ Value = 3 },
                    new Test{ Value = 4 },
                };
                tests.TestExtension();
Gives the ol' red line of doom.
Can't find it.
On the call to TestExtension()
17:56
@Bracketworks your extension method isn't static
oh my lord.
blargh!
@Steve Thank you kindly.
Steve, today you won 6.32 fake internet points. Congratulations.
haha no problem
17:57
Hmm, my non-test is still buggered up.
It'll have to go into a paste, too much.
Too much paste as a kid?
lmfao
Nope, @Steve was right again, this time the class wasn't static.
son of a bitch; I need to take a break.
herp a derp friday.
18:01
We're all sons of bitches.
this is why I don't want to spend time answering questions anymore:
0
Q: Why return is required in javascript function?

blue ghhgdttWhen i executed following JavaScript code, i got undefined var ns=new String('hello world'); String.prototype.capitalAll=function(){ this.toUpperCase() }; alert(ns.capitalAll()); // undefined But, when i add return, it ret...

lol...
It's a good question. Just asked at a very, very n00b level.
it depends on your criteria for what a good question is
So guys, everytime I'm hungry and I don't eat, I'm still hungry. Wtf?
Like the contents of my stomach are undefined.
18:04
the format is good, the question itself shows next to no research effort
and I really like how he answers his own question
How does one research something like that?
"But, when i add return, it returns a value"
He probably comes from a language where you just specify the value to return.
you google "javascript return" and pick the MDN link
@adeneo please don't say that something should be obvious. the op is asking because he/she doesn't know. we all had/have to start somewhere. — henry bemis 20 secs ago
There is no lower bound for n00bity.
If I seem in a strange mood, that's because it's Friday.
18:06
lol
Admittedly, I often find it hard to answer questions well below my level.
I find it hard to answer all questions, but not because i have trouble finding the answer, but because i have trouble understanding the problem
That's often a problem.
http://chat.stackoverflow.com/transcript/message/8011623#8011623

No idea what he was even asking
Yea, that was pretty unclear.
Spot on answer though ;)
18:11
nah its not just you, thats one of my down falls, understanding the problem
takes me longer than the average joe
Well, it probably warranted a bit more verbosity.
On that note; are type constraints enough to differentiate method signatures, or are they still ambiguous? I'm getting no immediate errors, but I can't compile to check cause other stuff is broken in the file.
hey peter
how to generate tables from the flat file....?
Put legs on it.
18:13
@Bracketworks Give me two examples.
@Bracketworks Lol
where do i start? how to generate tables from the flat file....any best approach...
void Foo<T>(T arg) where T : IBar { }
void Foo<T>(T arg) where T : IQux { }
^^ @KendallFrey
It should be fine
Unless IBar:IQux?
No, that should be ambiguous.
18:15
Or vice versa
I'm guessing even T : class and T : struct won't work, even though that's unambiguous.
Mmn why?
Because I'm guessing type constraints in general won't distinguish methods.
Confirmed.
class and struct are also ambiguous
Shame, cause the non-generic alternative is perfectly acceptable.
what alternative?
18:21
instead of where T : IFoo/IBar, merely defining the arg of that type.
IBar Foo(IBar arg)
I need something to run tests automatically.. ideas?
Hmm. What happens when you call the method with something that inherits both interfaces
@LewsTherin mstest or nunit
probably an ambiguous call; you'd need to cast I'd imagine.
@KendallFrey Nunit isn't automated.. or is it?
Depends what you mean by automated.
18:23
Like ncrunch, change a piece of code it runs your test automatically
yea, given:
        public interface IBar { }
        public interface IFoo { }
        public void TestMethod(IFoo arg) {}
        public void TestMethod(IBar arg) {}
and:
        public class FooBar : IFoo, IBar { }
you need to:
                TestMethod((IFoo) new FooBar());
or it's ambiguous.
What error does it give?
Error 3 The call is ambiguous between the following methods or properties:...
But that can be mitigated with the cast; which is fine. It's a shame the generic version doens't work; otherwise you could return T, working on the interface in the method body, with overloads.
18:33
everytime jon skeet comes out i stop trying to answer questions
Jon Skeet came out?
yeah totally, he likes men apparently
Don't make me laugh, I'm on the phone.
@KendallFrey at least you're not on video conference
don't lie, you just don't want to get aroused by the idea of being with skeet
18:35
@kush One-way conference. I'm not on video.
@KendallFrey mute yourself for a little bit yo
@Steve All definitions of Skeet.
what
!google skeet slang
I am new to visual studio....and c# guys
i just started a console application new project...
why can't i import these in the project : Imports System.IO
Imports System.Data
Imports System.Data.SqlClient
Error 1 A namespace does not directly contain members such as fields or methods E:\MyTextProcess\MyTextProcess\Program.cs 5 1 MyTextProcess
18:49
!!/urban jon skeet
You don't want to know.
@PeterJennings You're using VB.net syntax, C# uses "using System.Data"
cool...got it...
WITH A SEMICOLON, unlike that vile VB
Public Shared Sub Main()    what is this...???  and how is it different from static void Main(string[] args)
???
18:55
i think both are same starting points...one in VB and the second in C#
i dont see anything, just a scroll bar
@SteveKonves C# has SemiColons. VB has wend.
wend....
wend lol
aside how funny it sounds, what does that w stand for?
isnt' wend while end in old vb syntax?
i dont think semi colons are the same as wend in vb lol
18:58
@zneak While, presumably
while end
@Steve Yes.
while vb is crap
  it's always crap
wend
haha
; : C# :: (?<!_)\n : VB
19:03
people just throw themselves at jon skeets answers
TIL I am people
makes me jealous
People throw themselves at my programming languages.
I don't even understand REBTEL
I've had it shared on G+, reddit, and twitter.
@kush It's an esoteric language, silly.
19:06
I doubt I even spelled it right
@KendallFrey you are no jon skeet
Rebel. found it
@Steve But Jon Skeet doesn't know REBEL.
ahh touche
19:09
is REBEL that cool?
I learned about it a couple of days ago
it has the name REBEL, it HAS to be cool
I only published the page a few days ago.
oh I meant REBOL.
sorry about that.
DAMN.
Rebol is a dumb language.
19:11
har har
classic
@JonSkeet needs to come in here and pick up REBEL. Someone said something about you not knowing something about C#. Link: kendallfrey.com/projects/rebel.php
apparently BB10 got its first update. I didn't know it existed in production.
19:16
@ShotgunNinja That won't bring him.
hi guys
string[] files;
files = Directory.GetFiles("E:\\text", "*.txt");
string[] filenameMove;


string filename;
string file;


foreach (file in files)
{
filename = Path.GetFileName(file);
}
getting syntax error in the line foreach
var file in files
foreach (var file in files)
{
    filename = Path.GetFileName(file);
}
what does than mean word "Blown up" in this sentence: blown up this
window
magnify
Clearly, detonated with some form of explosive, such as TNT or dynamite.
19:25
file is already defined right....why i need to give foreach(var file in files)
Also, "Clearly" is my sarcasm tell.
Clearly.
@PeterJennings ...what?
We’ve blown up this
window below so you
have more room
Oh, man I love watching the confused replies to Peter.
19:27
please help me to mean this word "Blown up"
string file;
foreach (file in files)
I don't understand the context.
@programmer1 Kendall just told you
Hi Tom
ok but in that sentence i think the "magnify" word is'nt appropirate
19:30
i am trying to write the equivalent of this in c# Dim filename As String
Dim file As String
For Each file In files
filename = Path.GetFileName(file)
@TomW ok but in that sentence i think the "magnify" word is'nt appropirate
@programmer1 why not?
Dim files() As String

files = Directory.GetFiles("E:\\text","*.txt")
kendall in your openion the "magnify" is good in this sentence:We’ve blown up this
window below so you
have more room
?
@PeterJennings what is your question?
19:32
@programmer1 That depends what the sentence means.
@programmer1 please stop breaking sentences over multiple lines. It's difficult to read and there's no need for it
@TomW excecusme ok
@KendallFrey well, please tell me what is the best word for that? this sentence is related by Solution Explorer
CONTEXT. PLEASE.
this is not working ...why?
string[] files;
files = Directory.GetFiles("E:\\text", "*.txt");
string[] filenameMove;
string filename;
string file;


foreach (file in files)
filename = Path.GetFileName(file);
@PeterJennings is there an error message?
19:38
Error 1 The type or namespace name 'file' could not be found (are you missing a using directive or an assembly reference?) E:\MyTextProcess\MyTextProcess\Program.cs 28 18 MyTextProcess
Error 2 Type and identifier are both required in a foreach statement E:\MyTextProcess\MyTextProcess\Program.cs 28 23 MyTextProcess
So apparently we're going to be taking field trips at work...
@PeterJennings erm....read the error messages?
Error 2 tells you what the problem is
What a remarkable mess of a Friday.
We're turning Fridays into no-programming days.
@KendallFrey I've done some programming today.
19:44
Same here.
@KendallFrey please refer to this link:books.google.com/… and open page 9 and see top right
It was mostly copy-paste, and I really don't feel like testing any of it, or deploying it to the test webfarms, but whatever.
It doesn't help that I'm still sore from going out drinking and dancing last night.
@programmer1 Yup, that's magnified.
Ehehehe, a cute bartender chick closed my tab early, and proceeded to buy me and my friends two rounds of Apple Pie shots and a round of Cherry Bombs.
@ShotgunNinja rage
chicks, y u no do stuff for me
19:47
pass me a shot
@PeterJennings the declaration of file as a loop variable needs either var or string to identify it to the compiler. Do that and then the rest should be obvious
could you please let me know the equivalent code for this in c#
Dim files() As String
files = Directory.GetFiles("E:\\myfolder", "*.txt")
Dim filename As String
Dim file As String
For Each file In files
filename = Path.GetFileName(file)
@KendallFrey oh yes I did not care at all. Excusme and thank kendall
Didn't care??? Your English is confusing.
Oh, actually, no; the Apple Pie shots were bought by my roommate, and the bartender tacked on hers and mine on the house, and she poured herself and me a SoCo Lime shot.
19:52
It never ceases to amaze me how bad the code in this project is. :_(
We're almost regulars in there now, my roommate and I.
Every Thursday around 9pm, until about midnight.
We drink, we talk, we invite friends, and we usually dance a bit before leaving.
Woo, habitual alcoholism~
why do you dance?
@PeterJennings just do what I've just said, and read the error messages. It isn't difficult if you just follow the instructions
@PeterJennings Obviously you like VB.NET, why not stick to it instead of going C#?
20:20
I can find an argument for learning C# if you are used to VB
@ShotgunNinja alcoholism is no laughing matter. It affects your physical and mental capacity. It makes it difficult for you to remem... what was I talking about?
@kush woo, alcoholism
he says, steadily ploughing through a bottle of Jameson's
By the way, Kesha turns 26 today. Be sure to wish her a happy birthday.
@kush Aw shiet.
Here is a review of her album Warrior on the New York Times. She is really cashing in on the "in this economy" theme. If I was to create a mascot today, it would be named Spend. We'd say Go Spend!
21:02
:8013778

//C# laughs it's ass off at VB trying to be... something other than suck
string[] files = System.IO.Directory.GetFiles(@"E:\myfolder","*.txt");
foreach(string file in files)
{
 string filename = Path.GetFileName(file);
}
that's the simple version of it. you can get a bit more elegant if you want.
I'm not sure what you're trying to do, except get the filename of each file in that directory, if you are, what's your end goal with em?
21:39
When you work in a massive organization... it's wise not to use the phrase "Shoot so and So and email"... people get offended if you use the word shoot... (facepalm)
@RyanTernier Fuck that noise.
Don't use that either :P
@RyanTernier ...seriously?
tell whoever started that to grow up
Today We had a glorious moment when the mid-tier team got the Edge Servers working to contact our ESB... Finally there's light at the end of the tunnel... then we found out that light was a f'n train in full speed with no breaks when we heard the news they used the wrong end point on the Edge...
@RyanTernier Which endpoint did they use?
21:47
non SSL Secured :(
...
They need to be shot.
SSL (443) from Client -> Edge (reverse Proxy server) -> 443 to our ESB (Separate Zone)
they did it 443->80
Car.
CAR!

Y U NO START!
That was just aweful
lol
Breeding cats just outside my window...
21:58
...
My reaction exactly.
22:13
Apparently testing my code exposed bugs in someone else's code. Yay.
Hey Kendall, FOr WPF Data entry and DataBinding, are there any good frameworks/libraries out there to help with that?
@KendallFrey Love when that happens.
@KendallFrey Love when this happens, too.
Lao
Lao
22:42
Hey everyone.
I'm wondering if it's a good idea for a DAO and a BO to share an interface. Say an OrderBO and OrderDAO both use IOrder which contains the properties of an Order. Any thoughts?
@Lao objects implementing similar interfaces is not a bad idea, it's a good one. The question comes down to what is the interface?
My DAO and BO might both implement IDisposable
but I don't want my BO to implement IAwesomeSQLInterfaceStuff
Lao
Lao
No, I mean a custom interface that describes just the properties of an order. No DAL or BOL logic.
EG, an Order has an ID, a Customer and Line Items. Would it be a good idea to create an IOrder that has ID, Customer, LineItems and have OrderBO and OrderDAO implement it?
Then, in the OrderBO, I could have a method called Save that does something like this:
public void Save()
{
I guess it comes down to this:
- is there a need for some component that can treat those objects interchangably?
i.e. what is your intended consumer of IOrder?
Lao
Lao
well, it's for a web service (currently refactoring huge business project). Right now, they have no layer separation, and they send back to the client the exact same object as the one that's used to populate the database.
Now, what I'm thinking is pulling out the interface that describes an object (say an Order), and then sharing that among the three layers. The service layer would return just the data and handle logging of incoming data. BL would handle BL and DAL would read/write to the databases.
But because the objects aren't really changing very much as far as properties (obvious differences in implementation and such), I was wondering if it was valid to have the three layers communicate their values by sending themselves to each other via their shared interface instead of using DTOs.

« first day (867 days earlier)      last day (4307 days later) »