« first day (1252 days earlier)      last day (3700 days later) » 

8:00 PM
i think i'd rather fix stylecop violations than purge owners
tried the stylecop build thing that turned warnings into build errors today, worked nicely and worked in tfs also
 
Even Joel Spolsky was in here
Wow, the old transcripts are pretty interesting
 
Jon Skeet came once for a hat
 
And this is why IRC is dead, in fact was dead before this system came online ... TRANSCRIPTS!
 
haha
 
IRC dead? In what universe?
 
8:03 PM
what channels do you hang in?
 
In this one. I just joined C# channel on efnet, said "Evening". No reply from any of the 63 members for 15 minutes. No other message either.
 
@JohanLarsson thanks
 
So yes, IRC is dead.
 
No, just that channel. IRC is a great protocol and sees heavy usage.
 
8:03 PM
Don't believe you. Never will. Lalalala!
 
lol
 
user1804599
dude
 
On a second note, my cat just went out. Expecting him back later with a craving for (more) food.
 
Maybe he'll bring you food
A delicious bird
 
He hasn't yet. He's brought a few mice, but since I don't count that as food and apparently he doesn't either, then ... that doesn't count. I think he understands that he gets the best food he can get at home, so the need to eat prey is just ... bah
 
8:05 PM
@rightfold get robot & bear in here and we outrep c++
 
user1804599
No.
 
user1804599
Do it yourself.
 
bear is hibernating, tried & failed with robot yesterday
 
bear what, who, hmm?
 
a user named sehe with a bear in his avatar
 
8:07 PM
Sorry, what was indiscrete.
 
sehe, Netherlands
108k 9 130 196
different bear
 
oww my ear
my cellphone sucks at calls
 
user1804599
oww my bear
 
user1804599
@KendallFrey That’s what you get for not adhering to SRP.
 
Oct 22 '10 at 10:48, by Marc Gravell
my "fun" is poring over serialization code written in IL via meta-programming. Droool...
 
8:09 PM
room topic changed to C#: outrepping c++ [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
 
nice!
 
"outrepping"?
 
I just want enough decent questions to get 2100 rep
 
@LasseV.Karlsen sum of our reputation > sum of theirs
 
user1804599
I got like 35 rep today.
 
8:11 PM
Yes, deletion voting is at least somewhat worthwhile
 
user1804599
Fuck I accidentally put Kendall on my ignore list.
 
you guys are friends now right?
 
user1804599
No.
 
are you and i friends?
 
user1804599
FileNotFound.
 
8:12 PM
:)
 
NullReferenceException
 
user1804599
lol null
 
It's the kind of code that makes code reviews crawl up and die
 
how many of you can read a || b && c fluently?
 
user1804599
8:15 PM
It's the kind of code that demonstrates that the author is an idiot.
 
@JohanLarsson you mean ambiguous code? I'm a master at that!
 
user1804599
@JohanLarsson Nobody. It’s confusing and must be avoided.
 
@JohanLarsson me
 
user1804599
Don’t write bad code.
 
@rightfold yeah for sure
 
user1804599
8:16 PM
Use common sense.
 
but only because I know it means a || (b && c)
 
@JohanLarsson - a, or b and c
 
user1804599
clang emits an error when you do this.
 
user1804599
(And rightfully.)
 
True, False, Maybe
 
8:16 PM
stylecop complained at it
 
It isn't purdy
 
And rightly so
 
yeah
i think stylecop complains as a + b * c also
 
Any code I have to stop and think about (when reading it "for the first time") is per definition wrong, confusing, incorrect, badly written
 
staryes
 
user1804599
8:18 PM
@LasseV.Karlsen So, all Java code. :P
 
I don't read Java :)
And no, I'm only talking about C# :)
 
user1804599
If you did, you wouldn’t be here.
 
user1804599
You’d still be reading the code because it’s so much.
 
I could be crazy
I mean...
 
lol
 
8:19 PM
If I was reading java code
 
Help, I'm trapped in a powershell multiline string and can't get out!
 
wouldn't I be crazy?
 
The verbosity is about the same as C# to me
 
user1804599
@KendallFrey Control+C.
 
in Lounge<C++>, Mar 16 at 16:40, by rightfold
> For every complex problem, there is an algorithm that is simple, elegant, and wrong.
 
8:20 PM
PS C:\Users\Kendall> $TestIni = @'
>> [Test1]
>> Foo=1
>> Bar=2
>>
>> [Test2]
>> Baz=3
>> '@
>> '@
>>
>> "@
>>
 
user1804599
(If that doesn’t work: haha what a piece of crap.)
 
The verbosity, well, almost... the meaning? uhm, no.
 
wtf is going on
 
user1804599
Control+C.
 
i did
 
8:21 PM
@KendallFrey Well, let's recap. You're asking a question without using a question mark, and ... that's about it.
 
that doesn't answer my question
 
@KendallFrey - you are being punked
 
user1804599
Problem solved, then!
 
no.jpg
 
user1804599
Use heredoc syntax.
 
8:21 PM
 
@rightfold that is heredoc syntax
at least for powershell
 
user1804599
Oh.
 
hax
only responds to you?
 
user1804599
Meh. Use Z shell. :P
 
@TravisJ no
 
8:22 PM
There was no yes?
 
Correct
 
It all makes sense now.
 
That's good, that's good, that's GOOOOOOD! At least it makes sense to one person!
 
no.jpg
 
8:23 PM
 
@rightfold I saw heavy use of side effects today, it was so dumb and ugly it was hard to understand it was possible to write it that dumb :)
 
win
 
user1804599
Does anyone here not use C# at work?
 
user1804599
@JohanLarsson side-effects suck.
 
8:24 PM
@ReedCopsey This is my idea of an interesting question. Note the answers section.
 
user1804599
All function calls have side-effects. :P
 
1
Q: Regex to select INI sections is only selecting section headers in .NET

Graham PowellI am trying to return the sections of an INI file as an array of captures using a regular expression: \[[^\]\r\n]+](?:\r?\n(?:[^\[\r\n].*)?)* This works in just about every regex checker I have tried, including one using .NET, but when I try it in my program, it only selects the section header...

 
Did Caprica stop collapsing the one boxes?
 
@rightfold only if returning a value is a side effect
 
user1804599
They modify the result of new StackTrace().GetFrames(). :P
 
8:25 PM
@TravisJ not all of them
 
@KendallFrey What about that question?
 
see above comment
@LasseV.Karlsen Does Multiline really fix it? That seems unlikely
 
I don't think so, to be honest
 
oh good
 
But then I never had to parse an ini file with regular expressions, I've always used the Win32 api for that, but I guess that isn't portable in any way
 
user1804599
8:27 PM
@KendallFrey Dat regex.
 
anyway, I still haven't figured out the heredoc syntax for powershell
i can get in, but not out
 
user1804599
PS C:\Users\tojo2000\Documents> $multiline_string = @'
>> This
>>   is
>>     my
>>       System.String.
>> '@
>>
PS C:\Users\tojo2000\Documents\> $multiline_string
This
  is
    my
      System.String.
 
wat the heck
fu powershell
 
user1804599
7 mins ago, by rightfold
Meh. Use Z shell. :P
 
it's a powershell issue
 
8:30 PM
what's the problem?
 
see above linked question
 
They are making large changes to SO profiles btw
There is a discussion about it on meta
 
@TravisJ Link?
 
52
Q: The profile page is getting a makeover

Jeremy TThe Big Idea Create a page on the network that summarizes who I am as a developer, and lets me show off the stuff I am most proud of. Some of this information is only available by creating a Careers profile, but we want to open it up to everybody, even if you don’t have one. Background: The Pro...

 
^
 
8:35 PM
So not a change to profiles, just a change to what is presented to whom
ie. if I click on my own profile, what do I want to see, as opposed to what you want to see if you click on my profile
Hello Patryk, welcome to the channel of awesomeness
 
That new page looks great
 
Correct, the data held by your profile wont change. Just the way it is presented in the view, and how you navigate to certain aspects of it, will change.
 
To be honest, I don't use my profile page all that much anymore, I just use the inbox and reputation-graph dropdown menus at the top a lot more.
 
=/
We got flagged?
Explain your reasoning for flagging @lurker
 
What got flagged?
 
8:42 PM
@TravisJ Who flagged?
 
A plain text link to a sfw site
@Greg - Not sure
 
@TravisJ I hate responsive design, so much stylesheet bull shit.
 
@Greg - Not a fan either, I just try to make my stuff look good everywhere
 
What's the alternative? Different apps? No thanks
 
Mostly by making browser interactions have larger click areas. I think it helps to make it easier to click buttons, links, and inputs by making them larger anyway. This helps mobile users who use touch have a large area to hit, but also I think it reduces mouse search time for desktop users trying to navigate or do entry.
Although, this is from a business standpoint and not an entertainment or sales standpoint.
 
8:48 PM
My cat is back by the way, and he didn't bring any "food". He does look sleepy though.
 
Has your cat flayed items for you in the past?
 
Apart from a few birds, no.
 
You said mice before
 
When I was younger my cat came home covered in blood. It really scared all of us, but after 15 minutes of cleaning him we realized it wasn't his.
 
Yes, but "flayed"? No.
Lightly pounced to the point of death, sure!
 
8:50 PM
He would bring home all sorts of "trinkets" or partial remains.
 
"Feed yourself human"
 
lol
 
The cat doesn't trust that you have the skills to get your own food
 
Hey
 
Wow, you spoke before your icon even animated into place.
 
8:51 PM
I don't think my cat think I would eat the few birds he has brought home, but rather that he wants me to think of him as a great hunter. Though... when thinking about Elvis I'm not so sure...
I have one cat now, but had two cats about 6 months ago.
 
@Lasse - Awesome. My current cat is named Elvis too :)
 
I have finished the first class of C# that teaches the basics, all loops and important tools. But the class doesn't teach iterations, I've asked my friend whom lives in finland, takes the same class but in java, and they don't teach iterations aswell
Why?
 
Other one was named Elvis, he was 23 years old, and at one point he brought a bird by... dead one of course.
 
@user3123545 - Looping is iterating.
 
@user3123545 When a process or sequence in a computer program is repeated, this is an iteration. In a computer program, a common form of iterations is a loop, which repeats code to determine values for multiple variables or sometimes just a single variable (adding up multiple values together).
 
8:53 PM
yes but they never talked about iteration like for (Object b : objects)
 
I took a picture of it, but then, after thinking about it, I brought up older pictures of him, and found that it looked like he had brought the same bird by 1 month earlier
 
Iterate through People<> or Loop through People.
 
sorry if the syntax in worng, im still in a java scene lol
 
That would be an Enumerable :)
 
is*
 
8:53 PM
So I think he dug it down into the earth, to preserve it, and then brought it back to get more praise :)
 
Enumeration is a little different (although rather similar).
 
Maybe foreach (Object b in objects) ?
iirc
 
@user3123545 Better yet, Looping refers to code, where iteration refers to the process in which the content of the loop is executed
 
@user3123545 What is your question? (I really mean that)
 
@LasseV.Karlsen Why most C# classes doesn't teach foreach?
 
8:55 PM
foreach is just a mechanism to iterate hahaha
 
To be honest, I don't know. I am not up to speed on what current C# classes teach. Are you sure it didn't teach foreach in some way?
 
to understand foreach you have to understand collections
 
foreach, for, Parallel.For/Foreach, while, dowhile,
 
Nope they have never reminded it. Only while, do while, for
 
Those are all mechanisms you can employ to loop through things
or iterate
 
8:57 PM
foreach is a "special way" of doing a while, syntactic sugar, but again, I don't know why a class on C# wouldn't teach foreach properly.
 
foreach() in older languages like .NET 2 were avoided in large applications due to their expensive nature. This has been fixed in later versions of .NET where foreach produces much of the same IL that for(;;) does
 
From my experience, you use foreach if you need the values to be static (only read them), right?
 
@user3123545 you can't add or remove from the collection
 
Foreach uses a slightly different mechanism than simply an index.
 
yea
 
8:57 PM
"static"? Think you might have the wrong notion about what that is
 
@user3123545 No, foreach creates a pointer to the object in the collection you're looping through
 
or replace objects
You can change the properties on the objects though
 
@LasseV.Karlsen by static I meant like not to change, replace or remove/add, like just read
 
So foreach(ninja in ninjas)
{
ninja.Name = "Ryan Ternier";
}
is the same as
for(int i =0;i<ninjas.count;i++)
{
ninjas[i].name = "Ryan Ternier";
}
 
@LasseV.Karlsen No, you're incapable of thinking about the real definition of the word in English ;)
 
8:58 PM
@user3123545 - In C#, when you have a collection of objects, it usually derives from IEnumerable, and is considered enumerable. Enumerating the Enumerable is the process of getting the enumerator which allows iteration through the "MoveNext" mechanism. Foreach does this eternally.
 
@RyanTernier if ninjas is an array
 
`foreach` is syntactic sugar for this:

using (var X = collection.GetEnumerator())
{
while (X.MoveNext())
{
code here
}
}
 
Kendall, ninjas could be a List, or any kind of collection.
 
In which case it doesn't use the indexer, unless I'm mistaken
 
@Lasse - The enumerator implements IDisposable?
 
8:59 PM
@RyanTernier Ryan, in java there's an option that let's you to get the iterator object so you can remove the current index, is there a similar thing in c#? example:

Iterator<Object> itr = objects.iterator();

While (itr.hasNext()) {
Object b = itr.next();
itr.remove();
}
 
interesting
 
@user3123545 The really fun part about foreach is that you can loop through things that aren't collections
 

« first day (1252 days earlier)      last day (3700 days later) »