« first day (1623 days earlier)      last day (3324 days later) » 

8:00 PM
@ReedCopsey Thanks, that's pretty good to know, when and if I understand this stuff well enough to use it regularly.
 
Does anyone know the syntax for generic members in XML documentation?
I'm guessing ``2 means a 2 generic parameters to a method
and ``1 is the second one
and `2 is generic type parameters?
 
!!google generic member xml
!!you disappoint me with your speed
 
that's what she said
 
lol
culvers for dinner
large fry
and maybe, just maybe, some irish car bombs
 
any idea where I'd find XML documentation for .NET assemblies?
@SteveG right here, sir
 
8:11 PM
/// <returns>IEnumerable&lt;T&gt;.</returns> with ghost doc
but thats not the same im guessing
 
@CharlieBrown that's plain text
I mean the actual type references
 
<member name="T:FluentValidation.AbstractValidator1">`
 
yeah, that
fuck markdown
 
<member name="M:FluentValidation.IValidator1.ValidateAsync(`0)">
 
wait huh
 
8:14 PM
should just be a single backtick before 0
 
is that ``0 in ()?
oh
make more sense
 
markdown was killing it
 
i know
 
<member name="M:FluentValidation.DefaultValidatorExtensions.LessThan``2(FluentValidation.IRuleBuilder{``0,``1},``1)">
 
M:System.Linq.Enumerable.Where``1(System.Collections.Generic.IEnumerable{``‌​0},System.Func{``0,System.Boolean})
dat syntax
it makes sense, but it's gonna be hell to work with
 
8:19 PM
@charliebrown for lambda i've struggled with that presenting recently. 'a function that accepts x and calls something with it" is the best standard for a pronunciation for " x => something(x)" that I've found so far. :/ (Yes, that's a degenerate case that could be a bare 'something' . discussion example)
 
that's a dumb lambda :P
just use something
 
points to the end of that statement
 
pointfreedom
@TetsujinnoOni i can't read that far :(
 
@KendallFrey Ah. I pointed out that it was a dumb lambda used for the example of "how do you read a lambda definition out loud" - it was a pain point I hadn't thought about when I was teaching predicates to some VB.Net / WebForms devs on this contract.
 
8:23 PM
Tim's kid, probs
the fuck is a qooB
 
8 year old spelling of "job" using "goob" as the spelling?
and a very badly formed "G" that looks like a Q because attempting cursive.
 
@ton.yeung See the examples here: http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/27/three-cool-powershell-service-tricks.aspx
Combine with filtering from here: http://ss64.com/ps/get-service.html
 
and why does Calvin care where you work
and why are there butt plugs
(I'm so sorry Loren)
 
Can anyone tell me if there's a better way to debug this issue. I have an object with a property that gets set to the value I want it to. LOTS of javascript code happens afterwards jumping through jquery, angular and application code. When all that code finishes the property has been set to null.
How do I figure out where that's happening? Stepping through code is getting extremely unpleasant.
 
@SpencerRuport angular has a feature where you can execute code whenever the value of a variable changes, i dont remember what it is, but it exists, maybe that'll help?
 
8:35 PM
@SteveG - It would except I believe that change will be detected after all other code finishes.
So it won't tell me where it happened. Just that it did.
 
ah
true
 
(Knockout would tell me. :P JUST SAYING)
 
@SpencerRuport -
var propValue = someDefault;
Object.defineProperty(objName, 'propName', {
  get: function(){ return propValue ; }
  set: function(newValue) { propValue = newValue; console.log(newValue); if(newValue == null) throw new Error(); },
  enumerable: true,
  configurable: true
});
okay there
 
In a WndProc is it a bad idea to loop though a list to check if the current message is the one you want to handle? Or should 'if-else' or 'switch' be used instead?
 
@TravisJ - Will that work in chrome?
 
8:37 PM
yes that will work in ie9 and beyond
not ie8
 
@Jyrka98 If you're handling multiple messages, a call to a Dictionary.TryGetValue is often cleaner
you can have a Dictionary<int, Action>
 
@SpencerRuport correct, $watch will execute after the digest, so you might miss the change anyway
 
where's my emoticon
NOOO I'M NOT CRYING! I'M NOT A BABY!
c_c
 
@ReedCopsey the amount of time I spend implementing Dictionary<string, Action> or Dictionary<string, IStrategy> to leave for full-time-permanent employees to fill in the strategy implementations is very high.
 
lol
 
8:41 PM
mmm... IStrategy seems like overkill, but an action is pretty much "nothing to implement"
it's shorter than a switch statement in many cases ;)
 
@SpencerRuport - jsfiddle.net/ax730rv7
 
omg @TravisJ I think this might work.
 
kbye all, have a good weekend
 
@ReedCopsey The IStrategy implementations are usually DI property holders for the actions to have service access.
 
u2kthx
 
8:43 PM
lol
kthnxbye
 
bai steve
 
@TetsujinnoOni you do that for a WndProc implementation, though? that seems crazy
 
See you in April
 
DI on WndProc level seems scary to me
 
april? :o
 
8:44 PM
@SteveG - Yeah I wont be back til the 6th :)
 
have fun!
 
vegas!
 
@TravisJ - Ughhhhhhhhhhh
 
woooo, never been
 
Whatever is nulling it out is destroying the property.
 
8:45 PM
@ReedCopsey Oh, hell no, I was making the observation that message-processing-loops using Dictionary<MessageType,Handler> is such a prevalent pattern in modern .net
 
@SpencerRuport - lol no way
 
Yes.
This fucking blows.
This is the second bug I've had like this.
 
@SpencerRuport - It must be using delete?
or a new instance is replacing it
 
Maybe. It's probably a deserializer or something
I am very unhappy. Last time I tracked down a bug like this it took me three days.
And I'm sure there's gonna be more.
 
Not sure how to track that down
I know how to hack a possible workaround, but not sure without looking what is going on
 
8:49 PM
(confused, not looking for a dogpile...) How does this question have 10 upvotes? stackoverflow.com/questions/19448690/…
 
dogpile!
 
@TetsujinnoOni - SO needs to stop trying to shut down / delete certain question types. Despite being a pretty poor question he got a good answer. Now if anybody searches for that again (and 23,000 visits says they do/will) they'll find the answer instead of asking the question.
Meta SO is fighting the current and just making everybody miserable in the process.
 
@SpencerRuport It's a perfect example of "I don't know how to break a problem down into steps despite having already solved the complicated part" questions, and the answer could use improving if it's going to be canonicalized. Thus my confusion at the stats....
 
@SpencerRuport The problem is simple, everyone wants to ensure that their penis is far larger and superior to everyone else's. Stack Overflow, the place where your dick measurement is bound to ensue.
4
 
I am applying for jobs in US
 
9:05 PM
lol @Greg
 
@Rusty It is totally true. There is always some douche bag to knock you off a pedestal or display some sort of power / authority.
 
I guess I never made the mental connection between my penis length and my abilities as a developer.
 
@Greg did you mention my manager ?
 
@SpencerRuport Metaphor, the My dick is bigger than your dick debacle.
 
I know. haha it was a joke.
I'm bad at humor D:
 
9:10 PM
@SpencerRuport Oh. I fail at sarcasm, it is dead to me.
 
why talk about it? screw it. i'm just going to walk around the office pantless
 
The agony, seriously... What the?
-10
Q: Why is there no catch block for the using statement?

BVernonI'm just wondering why would the C# language not allow you to include a catch block after a using statement like so: using(var MyObject = new MyObject()) { // do work } catch(Exception ex) { // log/handle exception } This issue has been around for a long time, and it seems like a featu...

 
@Greg - All he needed to do was try
 
jon skeet commented on that question. :P
 
!urban mansplaining
 
9:22 PM
@Greg The especially great part is him trying to tell Guvante that it's less simple... and being amused by how much downvote he's getting from the question.
 
@Greg it's actually not a terrible question - it might help some newbies understand that a using block is for managing resources, not exceptions
 
@Pheonixblade9 it's a terrible question, but you have a point on the reason for using.
 
@Greg I think that is a decent question myself
I upvoted it too
 
the title needs to be rephrased as "how should I do exception handling with a using statement?"
 
Restricting the site to strictly pure Q&A will reduce the usefulness of this site. The discussions that happen in comments are sometimes the most useful thing.
2
 
9:32 PM
I edited the title
 
@Pheonixblade9 that is a better title, but gosh are we being picky as all get-out here
 
meh, downvote train is a real thing
 
If the OP asked that question in a room full of developers, would we all stand up and shout "Stupid question idiot!"
 
"That's not what that language feature is for" would be pretty loud, and might involve "you idiot" suffixes.
 
Why not just "A using statement is for resource management, use a try...catch for exception handling."
It's part of this stupidity The Hating Game
 
9:38 PM
Guvante's answer is perfect, and it's valuable
 
It was more the insane backlash.
 
@CharlieBrown good article.
@CharlieBrown you have the exact same problem with teams. A lot of engineers have a hard time seeing the good in something - we're problem solvers, so we always want to find the dialectic to improve something. It's very difficult for us to just say "this is awesome!"
there was a great article recently. It was a guy that interviewed for two positions - one was a senior/lead developer position, the other was chief data scientist or something.
 
the comments are the best part
 
of mine or yours?
 
the article, yours
 
9:45 PM
gotcha
 
it reminds me of a position I am considering, where they keep reminding me about the overtime they all work.... i get the feeling the work/life balance sucks, but no one wants to come out and say it
 
@CharlieBrown - Don't laugh.
But do you know how this might happen?
I don't know where why or how that's happening.
 
_operations.restore()?
 
No
Where the arrow is pointing.
 
9:51 PM
ok, im missing it. what about it is weird?
 
I don't want that to be the name of the property.
 
@JohanLarsson yeah, thats the security system at your favorite website
 
A big part of the problem is that programmers are constantly trying to one-up each other (see: feigned surprise) and prove their superior knowledge, drive, and intelligence.
 
@SpencerRuport ah, ok. Name it something else.
 
I wanted it to be windows { workPlanReAssignments: { grid: { widget: {
 
9:52 PM
it is
 
By lowering each others’ status so reliably, and when little to nothing is at stake, programmers lower their status as a group.
 
No it's not?
 
looks like it to me
 
its ["windows.workPlanReAssignments.grid.widget"]
 
where are you setting it?
i see what you mean, that is odd
 
9:54 PM
I have the directive as an attribute and I put attr="windows.workPlanRe..."
 
ok, stop doing that
 
Can't. That's how kendo does it.
 
then nothing you can do?
 
No there's just a bug somewhere. Just curious if you had seen something like that before.
 
no, its odd, it doesnt look intentional unless they really want to do window["crazy.dot.shot"]
or $scope[""], whetevr
why would you use that in an attr?
 
9:58 PM
Hello friends!
 
Because I need to access the widget that gets created and that's how it gets assigned =\
 
What are you working on @SpencerRuport?
 
cant use the name?
$element, or angular.element(name)?
 
@CharlieBrown - No because then I lose the angular functionality.
 
so confused why that would break, that is angular
 
10:00 PM
Because it's not the html element. It's the widget that kendo creates.
 
@SpencerRuport I'm pretty decent at angular, what kind of bug are you encountering? Chat doesn't go far enough ):
 
@SpencerRuport yeah, kendo is killin you
 
Oh I'm aware =\
 
@SpencerRuport well, im outtie. its weekend time
 
aight
thanks anyway
 
10:04 PM
@SpencerRuport can i try to help you now? : D
 
balyak
experimenting with ioc...
mvc page wont, even load
 
What in the world are you talking about @Rusty?
 
i em lost myself :(
Question: Does EF creates its own database/tables?
 
Code first? yes.
Or "sort of"
 
i have an existing db, how to merge it into EF
 
10:16 PM
Easiest way?
 
yep!!!
 
!!Google "Entity Framework - Database first"
!!google database first entity framework
 
@Rusty - create the map in c#, set initializer to null, hook connection string to existing db. win
 
@TravisJ probably is better at EF than i am.
@TravisJ isn't this how the google-bot works?
 
Damn right @TravisJ, thnx thnx thnx!!!
 
10:18 PM
Oh, and don't forget that all of your naming conventions must match EF's expected structure. If they don't you will have to manually compose the relations with the fluent API which is a massive pain
 
[Table("Hurrdurr"] and [Column("INT_ID"] inc.
 
@diemaus - Yup.
@diemaus - hurrrrrrrrdurrrrrrr
 
Been there, done that.
 
Were you referring to tequila?
 
that connection string point!!! Yes i wanted to know that precisley :D
 
10:19 PM
@Rusty who mentioned a Connection-string?
 
Tequila Herradura (officially Grupo Industrial Herradura) is a tequila distiller located in Amatitán, Jalisco, Mexico. It was formally founded in 1870 by Félix López and the business remained in the family for over 125 years. Today it is owned by US beverage maker Brown-Forman, but the tequila is still made in the same place and facilities under a Mexican subsidiary. Tequila products sold under the Herradura name are still 100% agave, made in the same traditional ways as those of the last century. The company makes other tequila products such as El Jimador a tequila blend spirit which is the best...
 
@TravisJ Guru
 
@Pheonixblade9 That's a VERY interesting article. It speaks to some things I've been saying to the stakeholders at the firm I work for.
 
@Rusty - Your db should have the connection string readily available. What type of db is it, is it hosted?
 
nah just experimenting stuff, local sql server
i can,t afford that stuff!!!
 
10:24 PM
^^
 
@TetsujinnoOni yup. It's a good read
 
@Pheonixblade9 hey, what article? ^^
 
Added to pocket, will read on the can or subway or smth.
 
10:47 PM
Anybody working on anything cool?
 
continous struggle
only now em motivated!
 
that sounds awesome
 
@CharlieBrown - Ugh. $scope["windows.workPlanReAssignments.grid.widget"]. WHAT IS MY LIFE???
 
11:04 PM
@SpencerRuport nice work man. Who did that? xD
 
Me :(
I had no choice.
 
BUT THAT. THAT WILL MESS EVERYTHING UP
x['a.b.c'] != x.a.b.c YOU WILL KILL EVERYBODY
 
@diemaus - The center cannot hold
 
@diemaus - Lol I'm aware. Unfortunately the code that is setting that value is somewhere deep in the bowels of kendo and I need to access the value.
 
why not
 
11:06 PM
Why not what?
 
$scope.windows.workPlanReAssignments.grid.widget = $scope['windows.workPlanReAssignments.grid.widget'];
 
That's what I'm doing :P
 
haha, 'mazin
 
oh yeah. I'm so proud D:
 
You shouldn't be.
 
11:08 PM
That emoticon has been extremely relevant today.
@diemaus - I know. I was being sarcastic.
 
I know man ^^
 
Ah okay ;D
 
"I was being sarcastic" is possibly the saddest phrase to exist on the internet.
 
@KendallFrey - sarcasm sucks, tautologies are better
 
this is generated using ildasm
 .locals init ([0] object CS$1$0000,
           [1] object[] CS$0$0001)
the same as
il.DeclareLocal(typeof(object[]));
?
 
11:15 PM
what is your question?
 
@ReedCopsey you should come mountain biking with me this weekend - meet you halfway? :P or maybe @Greg
 
hehehe, can't really, but would be fun ;)
 
@KendallFrey this method is generated using ildasm i need to write the equalivalent using reflection.emit
 
@someone try that code, see if it does what you expected
 
i've been trying for 8 hours i keep getting operation could destabilize the runtime :)
no meaningful message
to check where i'm wrong
 
11:17 PM
what does your generated il look like?
or does it not even generate?
 
it does generate but when i invoke it i get this error
 
so what do you see when you open the generated code in ildasm?
 
someone broke the toilet on my floor
 
i'm sorry
 
@ReedCopsey do you have one? I'm getting into it, know there's lot of trails in your neck of the woods, I'd be willing to drive up
 
11:20 PM
@Pheonixblade9 - wtf lol
 
@KendallFrey this is the generated ildasm
.method public hidebysig instance object
        callIt(object hello,
               string world) cil managed
{
  // Code size       38 (0x26)
  .maxstack  4
  .locals init ([0] object CS$1$0000,
           [1] object[] CS$0$0001)
  IL_0000:  nop
  IL_0001:  ldarg.0
  IL_0002:  ldc.i4.2
  IL_0003:  newarr     [mscorlib]System.Object
  IL_0008:  stloc.1
  IL_0009:  ldloc.1
  IL_000a:  ldc.i4.0
  IL_000b:  ldarg.1
  IL_000c:  stelem.ref
  IL_000d:  ldloc.1
  IL_000e:  ldc.i4.1
  IL_000f:  ldarg.2
 
@Pheonixblade9 - Oh, I get it now.
 
no, they literally broke the toilet
there's no joke here
 
the method is simply this
public object callIt(object hello, string world)
{
   return myMethod(new object[] { hello, world }, "test", "test");
}
 
just an amusing observation of life in a consulting firm
 
11:22 PM
I think @TravisJ thought you were asking Reed for a new toilet.
 
@someone Have you tried starting with a simple working example, and adding things until it breaks?
It shouldn't be too hard to narrow down the problem that way
 
Someone has been using their foot (more than likely their right foot as most people are right-handed/footed) to lift the seat. However, it rests up, poorly, against the plumbing at the top and the metal housing where it rests is rather worn indicating that it has been being hit repeatedly in the same place. Over time weakness built up in that part of the seat and eventually it created a stress fracture which finally broke as the seat was jarringly dropped back into place at some point.
@SpencerRuport - No my initial wtf was in the style at which the toilet was broken.
 
@TravisJ talk about design-flaw.
 
@TravisJ what are you, an engineer?
 
hahahahaha
 
11:25 PM
@KendallFrey the problem is that most of those instructions cannot be narrowed down if i remove a single instruction it will just stop working can you point me to a good tutorial at least ? that explains stlocs and these instructions with examples ? i've been searching a lot but didn't find a good tutorial
it's just one line of code :)
 
I was asking if he had a mountain bike so I could drag him along on some misadventures :)
 
@someone Is that the code you wrote, or the code from the C# compiler?
 
seeing things from @TravisJ 's perspective thinking I was asking Reed for a new toilet... that is extremely hilarious
actual laughter was produced
2
 
@KendallFrey the i wrote the method and checked the output via ildasm after compiling
 
11:28 PM
@KendallFrey laughter buddies! high five
 
@someone The problem is in the IL you generated by hand, right? How can I figure out the problem if I can't see the code?
@Pheonixblade9 o/*\o
 
that's the code
public object callIt(object hello, string world)
{
    return myMethod(new object[] { hello, world }, "test", "test");
}
 
no, the code that has the problem
I can't fix code that works
 
:P ok
 
@Pheonixblade9 - UI general outline is done, just need to fill in the inner parts with already built controls and connect the moving parts. i.imgur.com/YDY5OzF.png
 
11:30 PM
@TravisJ nice :)
I'd personally remove the left padding on the "For X" tabs
it'd probably look better without any space there, dont you think?
 
@Pheonixblade9 - You mean the indentation? It is a legend in a fieldset with a little extra styling. The naming of the For X tabs is also slightly different, I changed it for demo purposes
It is consistent with other parts of the application :)
 
ugh. super high performance SSD and GIMP still takes 30 seconds to open
 
lol
That is kind of a long time
 
not in comparison to VS
 
@TravisJ like that
 
11:39 PM
@Pheonixblade9 what the hell?
 
or that
@diemaus what?
@KendallFrey VS takes about 5 seconds to open, if that
on my VM
 
@Pheonixblade9 i prefer #2
 
WICKED GIMP SKILLZ
 
@rlemon you have been summoned
 
\o/
wut?
 
11:47 PM
    .-'"'-.
  / `. ,' \
 |  ,' `.  |
 |   ___   |
  \ ( . ) /
   '-.:.-'
     .:.
     :::          lf
     :::
     ::.
     '::
      '
                  BBEEEUUUUUUAAAAAHHHHH...

                    %%%%%%
                   %%%% = =
                   %%C    >
                    _)' _( .' ,
                 __/ |_/\   " *. o
                /` \_\ \/     %`= '_  .
               /  )   \/|      .^',*. ,
              /' /-   o/       - " % '_
             /\_/     <       = , ^ ~ .
             )_o|----'|          .`  '
         ___// (_  - (\
        ///-(    \'   \\
just giving you guys a preview of my night
 
user1881400
I don't even know what this is.
 
user1881400
(How did I get here?)
 
I need some financial advice
should I include my Magic card collection in my net worth in Mint?
 
okay, am off til apr 6th
o/
 
@Pheonixblade9 hmm. No? Yes? Maybe? Do you want to? ^^
 
11:58 PM
hahahaha
I'm just kinda signed out
 
I guess so
@Pheonixblade9 you good a naming stuff?
 
what's wrong with it?
 
The name is in plural, but it's not a collection.
 
11:59 PM
apart from the fact that it should probably be a struct
 

« first day (1623 days earlier)      last day (3324 days later) »