« first day (1969 days earlier)      last day (2969 days later) » 

8:00 PM
Woopdedewoop woop woop
 
(\/);,,;(\/) whoopwhoopwhoopwhoop
 
lol, half my code review comments right now are "you can use safe navigation for this null check here..."
 
.?
 
?.
 
@KendallFrey - I have two mugs :P
 
user47589
8:01 PM
? ?
 
how
oh right, you did another thing?
 
Yeah, I only got one from this round
 
user47589
i have two mugs, but one is for tea.
 
God sammit
 
@KendallFrey - Although one of them is a MSO mug so it is arguably not as cool as the SO one
 
user47589
8:03 PM
Mega-SO?
 
MEGASO
(meta)
 
cmd.CommandText = "SELECT * FROM JobListInfo WHERE AreaOfInterest = @AOI && Company = @Company && EducationRequired = @Education && LocationByState = @State";
 
//build is gonna be exciting this year. that is all :)
 
@Codeman How so?
 
@Greg can't say. just watch the live stream in a few weeks
 
8:05 PM
There we go lol
Best use of && I've ever seen
 
@Codeman - You get to attend build?
 
@Gabe you shouldn't use && in SQL, it's a bitwise operator. Use AND. Allows for much better performance. Bitwise operators make the query planner sad
@TravisJ not automatically. I can get in if I buy a ticket in the 4 minutes before they were sold out
 
@Codeman I know :P
 
but I am privy to certain things ;)
 
@Codeman - I'm being mocking of said person and you are very smarts
 
8:06 PM
@Codeman - Did they already sell out?
 
@Gabe I've just seen too many 4000 line sprocs in my day
 
/me pets @Codeman
 
@TravisJ they sold out in 4 minutes
only 5000 spots
 
@Codeman - I thought build was by invite only
 
no
 
8:07 PM
ugh
 
there are other things I can go to like TechFest put on by MSFT research
lots of employee only stuff
 
@Amy do you know of a way off the top of your head to get the SQL behind a particular query associated with the context?

Something like:
var closedCasesQuery = context.Cases.Where(x => x.ClosedDate.HasValue);
var sqlCommand = context.GetCommand(query);
 
@Codeman - Do you think they will sell more somewhere or have a contest or something?
 
Okay.
 
@TravisJ nah, they don't really do that
I'm thinking about going to I/O or a javascript conf or something this year
 
8:09 PM
That is a bummer, crazy it sold out in four minutes.
 
user47589
well they advertise Build in MSDN magazine, so I wouldn't think its invite only
 
@Michael you probably don't want the generated SQL anyway, but SQL profiler will probably give you what you want
 
user47589
there are two ways: 1) turn on logging in the dbcontext and look at the query generated. 2) write an EF interceptor. good luck with #2
 
Maybe I was thinking of a different one? Do MSMVP's get automatic invites to build?
 
@TravisJ no. Build is the MSFT equivalent to I/O
there's tons of other MSFT conferences
 
8:11 PM
Travis unlock origin
 
Well I want the sql such that I can call context.Database.ExecuteSqlCommand(); with whatever SqlQuery I want
withthe logging work in that situation?
I guess its more like, how do you get the SQL from a linq query
 
@Michael wait, what do you actually want to do? Do you want to see the generated SQL or do you want to execute arbitrary SQL?
 
user47589
either log it, or use profiler to get the query. but why do you want to get the query just to turn around and execute it as sql yourself?
 
@Michael - If you use .ToString() on an IQueryable it will give you the generated SQL.
 
@TravisJ oh really? I didn't know that
 
user47589
8:14 PM
ah, neat
 
@Amy so that I can execute a Query with any particular context
 
True story :)
 
@TravisJ Thanks, I'll give that a go
 
user47589
so you can execute a query with any particular context? what?
 
@TravisJ That's not necessarily true for all IQueryable implementations, but the MS ones do ;)
 
8:15 PM
@ReedCopsey - Yes, good point :) Although I believe EF was mentioned earlier so that was the context of the IQueryable comment.
 
@Amy I'm not sure what he's doing but it sounds painful
 
@ReedCopsey - Are you attending Build?
@mikeTheLiar - agree
 
user47589
@mikeTheLiar agree
 
29 mins ago, by Michael
@mikeTheLiar do you have any thoughts on passing a particular query to a form. But being able to change the dbcontext associated with it at any point in time?
 
@Amy I want to be able to pass in a query to a Method as a parameter.
Then use the query parameter to query the database with the context that is instantiated in that method.
 
8:16 PM
@TravisJ Nah
 
-16777216
 
@ReedCopsey - Me either apparently lol
 
This looks familiar?
Trying to find out what it means
 
user47589
it looks like a number
 
Although it is March 30 - Apr 1 and I am going to be out of town anyway during that time
 
8:17 PM
@Murplyx 0 google results lol
 
it's in a rendering function, it's like: somevalue &= -16777216 and it makes it alpha 255
 
@KalaJ hi
 
user47589
@Murplyx that number equals -0x1000000 in hex.
 
oh..
 
user47589
& is binary AND
 
8:18 PM
I thought it looked like a power of 2
 
hi Kush
 
How's it going?
 
speaking of conferences, anyone going to Xamarin Evolve?
It seems pretty cool
I'm alright Kush, how are you?
 
no.
that is #FF000000
 
user47589
no what?
 
8:21 PM
gadem
 
!!> Math.pow(2,24)
 
@TravisJ 16777216
 
user47589
well i gave you a negative hex number. take the two's complement to make it into a hex number the computer will understand.
 
user47589
apparently Google doesn't directly support two's complement conversion
 
user47589
it would be better if that function specified that constant in hexadecimal.
 
8:33 PM
@Amy - Do you use jsperf?
 
user47589
no
 
fineden
 
@KalaJ I would go if my boss would pay for it
 
It's the best part of the week! Monday's almost over
 
user47589
i've got a case of the mondays
 
8:39 PM
How can I check what type of application I have? Like given a random application, how can I tell if it's a winforms app or MVC API or whatever.
 
& is binary And, but C# treats it bit wise. It will not short-circuit logic statements.
 
2 and half hours left
until EOD for work here
 
@mikeTheLiar can you see the cs files?
 
@Amy - I believe you'd get your ass kicked saying something like that
 
Bon
If you have the project file there is a GUID id in it which tells you the type: codeproject.com/Reference/720512/…
 
user47589
8:41 PM
If anyone here wants to kick my ass, you'll have to get through my partner.
 
@juanvan yes but I was thinking more generically. Like "it's here in the csproj" or whatever
 
Bon
The nightmare I had to face a few months ago with some botched patches on the VS 2015 Cordova toolkit made me all too familiar with those project type identifiers...
 
user47589
I know :)
 
@mikeTheLiar in the csproject
   <Reference Include="WindowsBase" />
    <Reference Include="PresentationCore" />
    <Reference Include="PresentationFramework" />
 
user47589
8:43 PM
we should brew our own beer, call it "Mondays", and market it to nerds.
 
user47589
"I got a case of the Mondays at the store."
 
@Amy that's fucking brilliant
"Sounds like somebody's got a case of the Mondays"
"You're goddamn right I do"
 
Monday's for all
 
user47589
if you steal my idea and become a multi-millionaire, don't forget your friend Amy
 
I'm doing well too. Trying to learn about openstack
 
8:46 PM
Clip clop
 
everyone is happy on this Monday here - i blocked FB Hulu and all other local media outlets
 
user47589
lol
 
user47589
is that a hasty mspaint?
 
lol yes
 
8:48 PM
Travis da Vinci
 
@TravisJ genius with the Iqueryable.ToString(); that worked.
now I can basically do displayList = _dbContext.Database.SqlQuery<Object>(someQuery.ToString()).ToList();
 
\o/ yay
 
@juanvan start monitoring traffic
make reports
call each person into a meeting at the end of every month and go over what they were browsing
put swastikas on the wall
start calling yourself reichsfuhrer
 
@Failsafe - I just have my router redirect those urls
It just goes to another hastily drawn mspaint image that says "pack your things"
 
haha
You let them go through a few times first though
to give them the impression of winning
right?
 
8:54 PM
trying to convince a coworker that using virtual on a class that implements an interface is not a very good idea, thoughts? @TravisJ ?
 
Nope. Full invasive approach at that point. After a delay to ensure the message was read, their keyboard prints their last pay stub while the computer is kicked off the network and their login credentials invalidated.
@Codeman - The only time I use virtual is for nav properties. Is this not for nav properties?
 
user47589
i use it for injectable services with overridable methods
 
@TravisJ he wants to be able to change the behavior on different implementations
I'm arguing that you should define any contracts or behavior in the interface and allow each implementation to decide how best to do things
his argument is that he doesn't want to duplicate code for different implementations that do that same thing
 
@Codeman - Hm. I can see both sides.
 
my rebuttal is if your implementation of common methods is different, why are you providing default implementations for any of them in the first place? It's a good way to get spaghetti code
 
8:57 PM
@Codeman I would lean toward saying that different implementations that look the same by coincidence are fine to be duplicated. They have every right to vary independently of one another
If you have a shared implementation, then one changes but the other doesn't, you may find yourself having to pick apart an inheritance relationship to make the change
 
@Codeman - If he is going to be inheriting from his class with virtual defined, then that makes sense in my opinion. It should still exhibit the same behavior when overriding the method in that small set, but perhaps there is a micro set that is going to be different than the defined behavior.
 
from Eric Lippert...
61
Q: Should I mark all methods virtual?

Georgii OleinikovIn Java you can mark method as final to make it impossible to override. In C# you have to mark method as virtual to make it possible to override. Does it mean that in C# you should mark all methods virtual (except a few ones that you don't want to be overridden), since most likely you don't kno...

 
@TravisJ Might as well make the computer self destruct at that point
 
user47589
presses the HALT-AND-CATCH-FIRE button
 
@Codeman I agree with you
 
9:00 PM
@Failsafe - I considered that, but then I realized that the whole suggested situation here is making less sense the more I type :P
 
There are pros and cons to both sides of the discussion however
 
@Codeman - Even without virtual, it is possible to use the new keyword to override.
 
@TravisJ hooray hiding
 
@Codeman - He wasn't talking about every method though, right? Just this one.
 
SQL Server on Linux - the world must be coming to an end
 
9:02 PM
@ReedCopsey - Mind blown
 
@TravisJ he was saying he thinks every method should be virtual for extensibility
I told you that this month would be exciting ;)
just wait
 
@Codeman - Oh, every method? No.
@Codeman - That is just flat out wrong. I was talking about maybe one method that had a good reason for being virtual
 
Like if you had an interface for a generic representation of something, and then a specific representation of that which had one method virtual because of some nuanced super specific representation of that specific representation that wasn't necessarily standard to the whole set.
@KalaJ - That was so 5 minutes ago
 
damn lol
 
user47589
9:05 PM
wow, MS ported SQL to linux?
 
yeah! :)
It's coming
 
It's here
Heh, now when you tell someone you did a LAMP install you will have to specify MySQL or MSSQL
 
The preview is today, it said
 
Ah, it said private preview and I misinterpreted that
 
"Today I’m excited to announce our plans to bring SQL Server to Linux as well. This will enable SQL Server to deliver a consistent data platform across Windows Server and Linux, as well as on-premises and cloud. We are bringing the core relational database capabilities to preview today, and are targeting availability in mid-2017."
yeah true Travis :)
 
9:08 PM
@TravisJ I love that idea - would love to fire the lot of them and hire people that want to work for the company not for a paycheck
 
user47589
I want to work for a paycheck.
 
@juanvan - We don't have many tech savvy people here. So I just tell them all of their corporate computer interactions including email and browsing is being monitored for abuse automatically and they can see a log of their use if they want a printout. It isn't really feasible to implement but people think everything is being watched so there haven't been many problems with wasting time on that sort of thing.
Will work for beer or internet points.
 
None of them here are Super tech savie - well when they want to be they can be tricky. I added entries into the host file on the dns server. But there is always a way around that. Super shitty tho when I get done with 18 items in 2/3 of a day and they are getting 5 done in a whole day
 
lol no
 
wo
 
9:17 PM
Only citizens can install .NET Framework version 1.1.4322. Would you like to know more?
 
user47589
[X] Yes
 
> you must downgrade your operating system to use this software. Would you like to continue?
 
user47589
absolutely!
 
Bon
It is a hard line to walk between enforcing productivity standards and costs from onboarding new personnel with the risk they might not meet expectations.
 
@TravisJ damnit soo close, so IQueryable<Object>.ToString() only creates the sql for object itself and its scalar properties, no virtual properties for lazy loading.
 
9:19 PM
@Bon - Yes. That is a situation that many companies struggle with.
@Michael - hm
 
HEY GUESS WHAT
 
Bon
I'm of the opinion that companies are fine with firing people for financial reasons, so I can't begrudge them for working for a paycheck and giving less than 100% of their true potential. I'm super lucky that I get to work with my passion daily and because of that I feel I need to be more careful about not superimposing that onto other people. That combined with onboarding costs really helped me relax a hell of a lot after the first few years of frustration with underperforming colleagues.
 
@Gabe WHAT
@Gabe WHY ARE WE SHOUTING
 
@mikeTheLiar BECAUSE COOL KIDS ALWAYS YELL. ALSO, NOTHING I WAS JUST CURIOUS AS TO WHETHER SOMEBODY WOULD YELL BACK. YOU GET A STAR FOR REPLYING. YOU ARE A COOL KID
 
LOUD NOISES
 
9:23 PM
@mikeTheLiar BECAUSE MY MONITOR IS GOING DEAF
 
I AM A COOL KID MY MOM WILL BE SO PROUD
I am a good coder rub my belly
 
WANNA COME TO THE COOL KID LUNCH TABLE. WE'RE HAVING WAFFLES
 
user47589
please stop shouting. you're hurting my delicate sensitivities
 
@Gabe everybody knows the really cool kids have paninis
 
BUT AMY :(
 
user47589
9:25 PM
no dinner tonight for you, @gabe
 
@mikeTheLiar are you implying what I THINK you're implying
@amy why?! >:(
 
@Gabe that I brought you a panini, yes
 
user47589
go to your room.
 
and then?
 
3 hours ago, by misha130
masturbation is never a bad idea
 
9:26 PM
@mikeTheLiar :O Now I'm a cool kid? :O
 
and then?
 
@Gabe the coolness was inside you all along
 
@amy I REFUSE >:(
 
and then.
 
lol, I had to end the discussion
 
user47589
9:27 PM
then you'll answer to your father when he gets home.
 
@Codeman - The virtual one?
 
user47589
from the senate.
 
yeah
 
@TravisJ no more and then!
 
@Amy the space senate
 
user47589
9:27 PM
yes
 
@amy but my names not kylo D:
 
we went to CS101 INoiseMaker and Animal, inheritance and polymorphism
 
user47589
not the stupid lame senate here on earth
 
and I was trying to explain why multiple levels of inheritance are bad
and apparently "I have experience with codebases that use multiple levels of inheritance and it produces buggy code" was not enough
 
Anyway, I'm completely stumped on this issue. I dunno what to do now.
I've wasted a day and a half on a story that was supposed to take 20 minutes.
 
9:29 PM
@Amy - Oh, good. I have been watching him on CSPAN and I was really hoping to have a constructive conversation with him about not using physical props while trying to convince people of the technical implications associated with electronic trading.
 
@Codeman did I ruin your explainations? D:
 
@Codeman Then saying "Because using deep inheritance is flawed OO thinking that just causes problems" probably won't go over well either ;)
 
user47589
build software through composition, not inheritance.
 
@Amy build better software through panini
 
build software with >>=
 
9:31 PM
!!panini->asshole
 
@mikeTheLiar Working Software
 
It's just that easy.
 
user47589
i've been coding wrong this whole time
 
I build software procedurally. OO design is too mainstream for me
 
@ReedCopsey basically I said "if you're using more than one level of inheritance, you better have a really really reaaalllly good reason"
 
9:32 PM
You should see how many goto statements I use. It's marvellous
 
I just stay away from inheritance. I use dependency injection and IoC instead. Makes things easier to maintain and test
I basically said "it's my job to convince you, not tell you what to do, and I haven't convinced you in an hour of discussion, and it's your feature, so I'm going to let it go"
disappointed that I wasn't able to convince him. :/
 
tough to convince somebody who's entrenched in OO thinking, though
 
Sounds more like OOPs thinking
 
@Amy what effect does .AsNoTracking() have on LazyLoading?
 
user47589
nothing.
 
user47589
9:41 PM
AsNoTracking does what it says. EF won't track changes to entities.
 
user47589
that has nothing to do with lazy loading
 
As in it is not entered into the current EntitySet
 
oh okay.
 
@Codeman I personally rather DI over inheritance myself. I just find it easier to code personally
 
There is a ChangeTracker.Entries<T>() on the dbcontext, and it is populated with loaded or attached entities
If you use asnotracking then the loaded entities do not go in there
 
9:43 PM
@TravisJ okay thanks. thats pretty simple then
 
@Amy can I come out of my room yet?
plz :(
 
user47589
do you promise to be good?
 
@Gabe can you tell us what you have learned?
 
I've learned yelling is bad... and that If I want to be around the adults I have to respect them and not scream for attention. :(
I'll be good
 
Yelling isn't bad but it's for Outside, not Inside.
 
9:45 PM
@mikeTheLiar what if I'm a doomsday advocate telling you to repent or die
 
Guess I'm gonna die 'cause I am one sinningful motherfucker and I regret nothing
 
user47589
okay then you can come out of your room
 
What happened to the visit from the senator?
 
@amy :D
FREEDOM!!
shit..
 
user47589
now, because of my usage of XKCD Substitutions, I can't tell if @TravisJ said "senator" or "elf-lord"
 
9:56 PM
@Amy is there any way to create
 
I love Window's 10 new feature where the start menu stops working :D
 
user47589
no, you can only destroy.
 
lmao, good enough
to create a Linq query, that queries the DB without instantiating a context?
kinda odd question, I know
 
user47589
if you want to query the db without a context, then don't use a context. just use SqlConnection
 
butttt I still want to query a particular DbSet.

So like context.SomeEntities.Where(x=>x.name == "Ted"); except without the context
 
user47589
10:00 PM
then you need an instance of the context
 
user47589
there's no getting around that.
 
okay, fair enough. Thank you
 
@Michael - context.DbSet<EntityType>().Where(x = x.Name != "Ted")
 
user47589
nobody likes Ted.
 
@BrianJ that was a feature in build 9926, but they removed it because it wasn't yet good enough.
 
10:07 PM
hello, can we use a custom audio on Toast Notifications ?
for windows 10
 
@Bilal yes and no, I think it is user set only
 
user47589
well, i'm not sure. see the example here: blogs.msdn.com/b/tiles_and_toasts/archive/2015/07/02/…
 
Somthing like this "<audio src='C:\myapp\notificationSound1.mp3' loop='false'/>"
 
user47589
at the end of the example they have an audio element
 
user47589
beyond that i know nothing about toasts in windows
 
10:13 PM
@ReedCopsey but it's much better to avoid copying code in one or two places than to have a sane dependency graph /s
I mean, he straight up said he thought Java's OO model was best
so... dunno how much I can help with that
 
user47589
that's objectionable.
 
he was also arguing that multiple levels of inheritance was perfectly fine in most cases
 
ok , the article that you gived me : Mobile can use custom audio (ms-appx and ms-appdata), but Desktop cannot. thanks any way looks it's impossible .
 
so... shrug I just removed myself from the conversation as politely as i could
just frustrated that I couldn't translate my multiple years of experience seeing these things go badly into something that convinced him to change his viewpoint
 
nononono I meant refresh the page, not the whole OS, wtf Windows
 
10:20 PM
@CuddleBunny yeah it's a really nice feature
 
user47589
don't you want your OS refreshed?
 
Hmm I have a question but is more of an opinion based one than a technical one, it's about my personal project, interested in reading a wall of text?
 
Is it possible to implement a nullable date format? Since my application is going to be used by some social workers where they need to process refugees and most of the times they don't remember their exact date of birth or anything that has to be in date format. They might provide day and year, or year only and etc...
 
int? a;
 
user47589
10:26 PM
in .Net, non-nullable types like DateTime can be wrapped. Use the data type DateTime?, or Nullable<DateTime>.
 
user47589
DateTime? is an alias for Nullable<DateTime>
 
@Amy or just don't use nullables because nullable types make me sad
but... yeah, if you must
 
user47589
well we don't want codemaster sad.
 
Null types are handy though
 
^
 
10:27 PM
Currently, I've got 3 fields inside my table: Day,Month,Year. I save them separately.
 
But null checking makes me sad
 
@NoMore_CodeMaster why not just implement your own class with nullable day/month/year and have a method that calculates the default value given those assumptions?
 
user47589
if you want to allow them to enter partial date information, you should store them separately as int?
 
^ that, pretty much
 
user47589
why implement your own class for a nullable datetime? that's overkill.
 
10:27 PM
yeah just store day/month/year seperately
easier
 
user47589
that's what Nullable<T> is for
 
Looking for some thoughts on this from people in the know ;)

If I you had time to work on a side project..What two technologies would you use in that project? I know that depends on the project but in terms of what's most in demand at the moment. I was thinking SQL and .Net
 
@amy stop flexing your core lib knowledge. You're muscles scare me D:
 
@Amy so, my current setup would be working just fine.
 
user47589
@gabe rawr
 
10:29 PM
@Gabe Thanks
 
Bon
i prototype projects usually with owin webapi+sql+redis with a signalr front end
but i've got lots of project templates I can re-use for that stuff so most of it is just code re-use for core infrastructure
@bri
@BrianJ I mean to say
redis for caching, service bus requirements, signalR backplane, and refresh token tracking
 
@Amy :), even last week after seeing everyone's comment, I got more energy to trust my own work and method and few minutes after that I figured it out. So, I need to say thanks to you guys for encouraging me to find the solution on my own.
 
Bon
*i meant freaking angular front end, signalr front end wtf is wrong with me
 
@BrianJ I am working on a side project using ASP.NET Core and TypeScript
 
Thanks everyone for your quick reply.
 
10:34 PM
So back to me being a opinion based dude and my question. So I have viewer system right, it contains all profiled information received from twitch endpoints (follow date, name, loyality information blah blah). And I have a separate system that reads incoming irc messages for '!' commands and "parses" a message to be displayed in the chat.. The question is - do you think I should just consume the "parsing" logic and put it into my viewer system and just leave the command reader as is. Make sense?
I can put the logic within the viewer class as to what command pulls what information and create the output within there and leave the reader just as a simple reader. Just not sure if it'll be easier to maintain.
I SEE HOW IT IS, GABE ASKS A QUESTION AND THE CHAT DIES. ILL REMEMBER THIS WHILE I YELL :P
 
Die Chat Die
 
>:(
 
screwed up my dev machines by installing sql 2014 over 2012 :(
 
@juanvan is that German?
 
@Bon ok sounds cool, might be an idea for my portfolio. I'm working on a WP app at the mo.
 
10:42 PM
could be, I installed SQL server 2014 over SQL server 2012 and now Visual studio crashes when I try to add a new connection to the server
 
@CuddleBunny Typescript interesting :)
 
well a new ADO object
 
:( I hate when your plate of onion rings runs out
 
outback blooming onion?
@Gabe are you following SOLID with that design?
 
I have never seen them before, but they look amazing!
nope normal onion rings but they were tasty
 
10:46 PM
OMG you not in the states?
 
Ireland
 
ah - well when you make it this side, I recommend them, it is a heart attack waiting to happen
 
@juanvan Yes and no, the "viewer class" is sort of like a "manager class" of sorts. Think of it as the view layer, all logic for each process is encapsulated. Just only accessible through the viewer object
 
views should only do views - call to services that do logic
 
probably the wrong naming convention
Think about it like this. Each viewer object contains objects that handle different purposes. Like currency, follower information blah blah down the line. I'm just wondering if it's worth throwing a new one into the mix or just leaving it as is. This is just the first draft of everything and I'm just getting it up and running. Refactor will come later
 
10:52 PM
mock all the things?
is it important to this iterations? if not then skip it for now
 
Yeah it's probably premptive
 
or photochop it in later
 
I'm colorblind tho :P
Dude no lie. Once I picked out clothing for myself and came home with it and my gf was like "you know that shirt is pink and the pants are green right?"
Looked good on me at the store
I DIGRESS
I think I should slow down on the coffee. Minds running a bit to fast
 
@Gabe also peanut butter is not green
 
@mikeTheLiar - Usually I'm good with subtle puns but that one went over my head. You bostonites and fancy english
 

« first day (1969 days earlier)      last day (2969 days later) »