« first day (1971 days earlier)      last day (2960 days later) » 

1:00 PM
@misha130 it's not easy. Believe me. Check this one. It took me ages... stackoverflow.com/questions/29609955/…
 
I downloaded source code of the pluralsight I am doing and gonna compare it line by line
but thanks
found the problem :^)
in the template I didnt give it a =0
virtual QVector<T*> filter(QVector<T*> items, ISpecification<T> &spec) = 0;
kill me now
 
lol
ok
 
@scheien I've been through a number of businesses like that. It's the old-school management mentality, that a software product can actually be "completed".
 
@Squiggle yep. Me too, unfortunately.
 
@misha130 why is it a problem? That should be working if the struct is not abstract as well...
 
1:05 PM
on some sort of linkage stage it needs the default value
I really can't comprehend
I do believe same thing happens in C# when you write virtual methods
 
morning gentlefolk
 
@Squiggle That's one of the reasons I'm trying to get my own stuff up and running. :)
 
@misha130 no. C# is different. C++ doesn't have the keyword abstract. If the class/struct have a method = 0 ending, it will be compiled like abstract
C# would just declare abstract
C++ doesn't even have interface
 
@scheien :) that's one of the reasons I'm really glad I have almost 3 years experience in AngularJS!
@scheien how's the business plan/tech stuff going?
 
Tech is going great. Running angularjs + webapi + ef + mssql on azure.
 
1:09 PM
yea but isn't this the issue? I mean it compiled it as virtual with no return because I didn't set = 0 and not as abstract?
 
Business plan, not so much. I'm no salesman.
 
@Squiggle you excited for ng 2.0?
 
I know I know we are doing make belief everyhing
"interface", "abstract"
 
@Failsafe I wouldn't say "excited', but things are moving in the right direction for sure.
 
@misha130 without the = 0; it's like in a header file. So yes. The linker can't see the body of the filter method
where to fall back if it's not overridden
 
1:13 PM
@Squiggle Though I have a couple of customers, it's nowhere near being a fulltime gig. There's a gap in the market I'm trying to fill, but I really suck at selling stuff. I guess I'm too honest.
 
> LINQ to Entities does not recognize the method 'Boolean StartsWith(System.String, System.StringComparison)' method, and this method cannot be translated into a store expression.
 
@ntohl Its really weird if I think about it.It failed on the constructor of Filter not IFilter which has an override.
 
oh great
 
WELP BEATS ME
 
@scheien been there, done that. Happy to talk it through if you need some feedback!
 
1:16 PM
Thanks @Squiggle, I'll keep that in mind. :)
 
@misha130 linker need the full implementation of filter only at the constructor of Filter. It's ok IMHO. We could supply the implementation of the backup virtual filter method some other time.
 
!!goodmorning
 
@Michael I'll decide for myself what kind of morning it is, thank you very much.
 
!!rude
 
@ntohl That didn't make much sense. Use the !!/help command to learn more.
 
1:23 PM
!!passive-agressive_response
 
@Squiggle That didn't make much sense. Use the !!/help command to learn more.
 
Thanks, Cap.
 
I'm so screwed
 
  var c = entities.Classes
                .Include(a => a.Students)
				.Where(c => c.ID == id);
can I select only 3 columns from Students entity ?
e.g. only FirstName, LastName, and Location, and ignore rest columns like Age etc..
 
use select new
 
1:25 PM
@Learner .Select(s => new { s.Prop1, s.Prop2, ArbitraryName = s.Prop3} )
 
@StevenLiekens :( how can I help?
 
@StevenLiekens VB i assume
 
@scheien that gives me this error
The Include path expression must refer to a navigation property defined on the type
 
Can you show the whole query?
 
that is whole query, am i missing soemthing ?
 
1:27 PM
can you?
@Squiggle find all usages of string.StartsWith(string, StringComparison) in LINQ methods that query a DbSet
 
!!/hi
 
@greenhorn Hello
 
!!/ how are you bot?
 
@greenhorn 0/10
 
for example db.Users.Where(u => u.Name.StartsWith("J", StringComparison.Ordinal))
 
1:28 PM
!!/ are you retarded
 
@greenhorn That didn't make much sense. Use the !!/help command to learn more.
 
@Learner Does Classes have a navigation property called Students?
 
@StevenLiekens why do you need that?
 
because that overload is not supported by EF6
 
!!/ what are the room polices
 
Ha
 
> LINQ to Entities does not recognize the method 'Boolean StartsWith(System.String, System.StringComparison)' method, and this method cannot be translated into a store expression.
 
!!polices
 
@TomW That didn't make much sense. Use the !!/help command to learn more.
 
Huh.
 
1:29 PM
StartsWith(string) is supported but StartsWith(System.String, System.StringComparison) is not
 
@StevenLiekens do you need the StringComparison parameter there?
aye
 
@scheien this works
 var c = entities.Classes
                .Include(a => a.Students)
				.Where(c => c.ID == id);
 
!!/ room policies
 
@greenhorn That didn't make much sense. Use the !!/help command to learn more.
 
but it only doesn't works when I add new.... like you said
 
1:30 PM
!!/ you stupid bot ;)
 
@greenhorn That didn't make much sense. Maybe you meant: nou
 
@Learner Then what doesn't work? Can you show the whole query with the .Select() ?
 
because StartsWith(string) is culture-specific
 
.Ordinal is a "character-by-character comparison of code points", which is difficult to translate to SQL...
 
!!/ i have a doubt in c#
 
1:31 PM
@greenhorn Input not matching /awesom/. Help: User-taught command: am
 
yeah but we also use StartsWith outside SQL
 
Helllo
 
@greenhorn No swearing! :(
 
:)
 
@scheien i kidded
 
1:32 PM
@greenhorn :)
 
basically I did a solution-wide search and replace for StartsWith(string) and replaced it with StartsWith(string, StringComparison.Ordinal)
 
@StevenLiekens it looks like String.Equals Method (String, StringComparison) might be supported. Perhaps you could combine that with a Trim() and compare that way instead?
 
and now my queries are broken
 
@JakobMillah program crashes ... Its a feature I implemented to make sure the user takes breaks from my application periodically.
 
!!/ bye
 
1:33 PM
@greenhorn Cya looser
 
.Take
 
Hey i am testing my Saving functionality. I made fake class that hides functionality of the real class but I am not sure how to test SaveForWeb() function without copying the code from the real class. Should i do this?
 
!!/ hahah
 
@greenhorn That didn't make much sense. Maybe you meant: haha, ahah, hahano, hahgay
 
@Vlad what is up with you and these "fake" classes?
 
1:34 PM
When using EF, be prepared to make compromises.
 
I was thinking of using resharper's pattern search to find all usages of StartsWith inside LINQ queries but the syntax is tricky
 
!!/ who named you?
 
@greenhorn <
 
!!/ what?
 
@greenhorn That didn't make much sense. Maybe you meant: what, what's, wat, wat2, wat3, wat4
 
1:35 PM
@scheien Here it is
 
@Michael I became too fake :)
 
var c = entities.Classes
                .Include(c => c.Students.Select(s => new { s.FirstName, s.LastName, s.Age} ))
				.Where(c => c.ID == id);
 
Is it good to copy functionality from my real class the the stub class?
 
@Vlad why would You need that?
 
Because I don't know how would I test it, its saving data to a file
 
1:36 PM
 
@Michael You're not doing that? If you're american you can get sued for that you know!
 
anyone know how to rewrite $bool$ so that it finds only StartsWith?
 
@Vlad why cant you test with your real class?
 
Moq framework helps with the kind of tests if the method was invoked or not... Other possibility of unit test I can think of is checking the output of a method, and that doesn't require modify
 
@Michael because it inherits MonoBehavior which does not allow var myObject = new MonoBehavior();
 
1:38 PM
@Vlad As we already stated before, the file is a Stream. You could check Your MemoryStream's actual state
 
you cannot use new keyword to make new MonoBehavior.
 
@Learner AFAIK you can't do it like that. You would have to put the .Select after the Where().
 
I'm very confused. @ntohl do you understand why he is talking about fake classes? I've never really heard of that before
 
@Learner: What are you trying to accomplish? What data do you want to select?
 
Yes I found solution to the MemoryStream. The thing now is that I have to copy functionality from the real class to the stub class. Is that ok? But its stupid :)
 
1:39 PM
@Vlad You don't have to test the MonoBehaviour. It's tested. Your class have a bunch of public methods. Test those
 
@Learner: Do you want to get the firstname, lastname and age of all students in a given class? or all classes? Or maybe something else?
 
@scheien you can do a Select() after a Where()
 
@ntohl yes I know that.
 
@Michael yep, isn't that what I said?
but you can't put a select inside a Include() afaik
 
oh I see
 
1:41 PM
@Michael the problem was about using not real file, but some fake when saving to disk. We had a solution to change the classes FileStream to Stream. And use MemoryStream instead
 
here is an example
 
@ntohl Okay, makes a little more sense
 
public void Init()
	{
		if (gameState == null)
		{
			DontDestroyOnLoad(gameObject);
			gameState = this;
		}
		else if (gameState != this)
		{
			DestroyImmediate(gameObject);
		}
	}
 
I figured it out
 
This is from SaveLoadGameData: MonoBehavior, ISaveLoadGameData
And this one is from the stub:
public void Init ()
		{
			if (gameState == null)
			{
				GameObject.DontDestroyOnLoad(gameObject);
				gameState = this;
			}
			else if (gameState != this)
			{
				GameObject.DestroyImmediate(gameObject);
			}
		}
SavelLoadGameDataStub:ISaveLoadGameData
the difference is I call GameObject class, static methods, DontDestroyOnLoad and DestroImmediate
 
1:44 PM
is Init the public method that should be unit tested?
 
is it ok to copy whole function
to the stub, coz I have no idea how to test Init from the real class
 
is there any documentation of which string methods cannot be used in entity framework queries?
 
yes. It creates a singleton of the SaveLoadGameData object and keeps it inside one and only one GameObject
 
IMHO it's not ok. You need a GameObjectProvider
 
So make a class that creates gameobjects?
 
1:47 PM
and both should use that. One have a fake instance in it, other is the real one
yes
 
I am so freakin satisfied right now.. Holy crap
 
ok, will check that, but still, I need to copy functionality to other stub functions as well :)
 
@Vlad check if that helps with some theory background: blogs.unity3d.com/2014/06/03/…
 
I know that tutorial and that is what i implemented. It hides the Unity functionality by using separate class that calls MonoBehavior related methods
 
theverge.com/2016/3/9/11184362/… Google's DeepMind won at Go.
 
1:56 PM
great...
Half an hour after purchasing the license for PostSharp I find the first bug >.<
 
user47589
you're good
 
:)
 
I hate it. Seriously, this is the third time in a row we purchase a license for a product I want to toy with need and in a matter of hours I find a bug that breaks it for me.
 
user47589
it would have taken me a few days to find the first bug
 
user47589
whats the bug?
 
1:59 PM
System.FormatException: Cannot format the MessageText with id LA0138. ---> System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. during compilation
 
user47589
ouch
 
@Amy yeah, that's what I thought.
 
Isn't that a bit weird
 

« first day (1971 days earlier)      last day (2960 days later) »