« first day (2005 days earlier)      last day (2938 days later) » 

8:06 AM
Waaait
Specified lambda does not compile
The inner Where returns a sequence, so the lambda expression argument to the outer where doesn't match the required signature, it should return bool
 
Anybody know how fast iteration time is in a dictionary vs list? im wondering if its worth me duplicating the dictionary rather than iterating it
Nvm found somthing :)
1
Q: Which .NET collection is faster: enumerating foreach Dictionary<>.Values or List<>?

Doug DomenyAre one of these enumerations faster than the other or about the same? (example in C#) Case 1: Dictionary<string, object> valuesDict; // valuesDict loaded with thousands of objects foreach (object value in valuesDict.Values) { /* process */ } Case 2: List<object> valuesList; // valuesList...

 
I would rewrite as query.SelectMany(x=>x.OtherTable).Where(xx=>xx.SomeBool)
Assuming thats what you're trying to do, still not really clear
 
@Asheh A dictionary is a hash set so it's absolutely going to be much slower for sequential enumeration. That said, computers have come a long way in terms of performance and incurring the performance penalty for readability is often a good choice. Just profile and see if it's a problem!
 
Roel - according to the test its not really that much slower
I realise list is always going to be faster, but it seems its really not that much faster
So I wont worry
 
@TomW ooops, should be query.Where(x => x.AManyToManyReferencedTable.Where(y => y.SomeBool == true).FirstOrDefault() != null);
good eye there
 
8:13 AM
It depends on the size of the collection. On a small collection, sure, it won't matter too much. Skipping a bunch of null entries is quite fast. On large sets (depending on how the hash set is laid out at the time) it can be a huge difference. Keep in mind that a single test you read somewhere online is probably not an accurate representation of the characteristics @Asheh
 
Hello, can someone tell me how can i select the filtered row if i filter with : (refTofrPlanMain.dGVPlan.DataSource as DataTable).DefaultView.RowFilter = string.Format("Vodic = '{0}'", searchTBoxW.Text);
Where refTofrPlanMain is referance to form1 and dGVPlan is the datagridview
 
@RoelvanUden I expect the time dif in lookup would balance it out though over the long run, would depend how often you are looping comparied to lookups
 
Yeah very true Roel.
Ill have to optimize as I go. So far, it takes 21 seconds lol
Indexing 50k files is not easy
 
@AlexL Exactly. It's important to remember the way it works, and the characteristics that are attached to that particular data structure. Then it's important what you're doing with it. :-)
@Asheh That sounds excessive. 21 seconds...
 
@Asheh have you tried timeing how long it takes to convert to list and how long it takes to loop via that?
@Asheh I asume you have a very large dictionary or are doing something each iteration?
 
8:20 AM
never mind, solved :) Thanks anyway
 
someone got anything interesting to read ? @.Net
 
@SteffenWinkler .Any() would be clearer I think
 
how is programming organized? programming for data bases, programming for gaming/graphics, programming for education/interaction
how does one say ' im going to start here'
 
@AdanRamirez It's all the same in the end.
 
8:24 AM
databases vs interfaces? i dont think so
 
Where did interfaces come from?
 
o/
 
oh ok yea i see where you are coming from, what im thinking is how one creates them
its so different than creating a database vs interface
vs graphics
 
Again, where did an interface come from
 
8:25 AM
Think he means application.
 
Mm
 
the way you have to think in creating a solution in graphics vs creating a solution for a function for something else
it makes programming so dynamic
 
Really, it's all the same in the end.
 
unlike the other sciences, engineering
 
8:26 AM
^
 
chemistry
 
You can make chemistry dynamic.
Have you never seen Breaking Bad?
 
It doesn't matter if I work on web applications, custom databases, game hacks, games, or anything else. It all boils down to exact same skill set.
 
what have you created?
 
Lol
 
8:28 AM
i feel otherwise
 
Oh dear where do I start
 
Why do I feel like we have another Moonowl
 
when tackling a different solution, it seems like a whole other skill set is required
i can be wrong ofc, but what do you guys think?
 
Don't really know what you're talking about
 
Colleagues, what else do I need to do to satisfy the built-in VS static analyzer: pastebin.com/pvs6fQ3K
 
8:29 AM
that's what im trying to get across
it's critical thinking
 
I mean .. you can code without being able to think.
 
that warning appears right after I add the / a.Length expressio
 
PHP developers do it.
 
@AdanRamirez I've written many web applications for our company, from alarm systems to voting. I've written web crawlers, command line tools, mobile applications, game hacks, games, GUIs, mathematical solutions, GPU-accelrated programs, p2p distributed clusters, etc. It's really all the same.
 
I've done like 70% of that list
minus web crawler, mathematical solution and GPU-accelerated stuff :D
 
8:31 AM
so then.. is theere a fixed amount of skills you need in programming then? what are they?
 
@zerkms check a.Length for 0
 
Although I nearly wrote a GPU accelerated hash cracker running in a p2p distributed cluster
 
@RoelvanUden I do, with > 0
 
that's cool right? xD
 
That's cool yeah. Mine was for digital signal processing :P
 
8:31 AM
ofc
u and ur networking
@AdanRamirez Not really
 
hello
i have a question
 
Roel is arguing otherwise
 
@AdanRamirez Logic. That's all there is to it. Understanding all low level concepts is fundamental to being able to apply yourself to literally every field imaginable. Mathematics are more fundamental if you're doing math yourself, for math applications or game (hacks). But honestly, programmers rarely do the math themselves.
 
You need to be able to code. By that, I mean you need to understand how to apply concepts to programming. If you treat programming as a high level exercise, language becomes arbitrary. You should be able to write software in any language given time to learn syntax.
There you go
We agree.
 
@AdanRamirez Yeah.. I'm arguing that every field is the same in the end. How did you think I was saying they are different?
 
8:33 AM
how to create view in multiview on button click?
i don't need create in page load
 
@RoelvanUden Why do maths yourself when computers do it better? :D
 
i need create on button click
 
@zerkms A debug assert is not a valid check for the anlyzer, do an if a.length == 0 return 0 or something
@Sippy lol that was lame
 
Lol
 
any one can you help me
 
8:35 AM
@RoelvanUden in other cases it's satisfied with Debug.Assert (with null checks for example), why comparison with 0 is different for it :-S
 
@Adan you were asking about the difference in coding for 'interfaces' (let's call that front-end because everyone else does) and 'functional programming' (you technically mean back-end)
 
that's weird
 
The only difference is language and concepts.
 
Honestly for all the math that I have needed, other people have done it (libraries) or I had a math guy do it. Math guys are way better than us at math. Obviously.
 
If you have the skills to understand concepts in programming and apply them to a language, you can do front and back end easily.
 
8:36 AM
hello,
 
me and @Roel view programming very differently cos Roel does actual programming
I just make business applications lol
 
how can i inject UserManager in 3 layerd application,, ?
 
I was only cool at uni.
 
@Sippy I do too :P
But I have no life so I still hobby around\
 
@Kob_24 That is a really, really confused question.
@RoelvanUden roflmao
 
8:37 AM
i want to configure my Owin Startup class
 
I have no life so I fill it with gaming and ignorance!
@RoelvanUden Where on earth is your \ key
Next to .?
 
So much better. I just watch anime, game, program, play violin, and try to avoid sunlight at all costs.
 
@Sippy no solution for it ??
 
@RoelvanUden I need to learn an instrument
 
@Sippy next to enter
 
8:38 AM
Keep wanting to learn Piano
@RoelvanUden ewiee american layoutttt
 
@Sippy Just start! Schedule 10~15m per day to play it and in a few months you'll have a bunch of songs done.
 
brb buying piano
 
Start with a synthesizer or something.
 
@Sippy thn just chat shit on instagram and show a couple of belfies and you've got a music career
@Sippy then just chat shit on instagram and show a couple of belfies and you've got a music career
 
They are fairly cheap, electronic (thus silent with headphones), and easily stored.
 
8:40 AM
You ok there Tom?
 
Tom is breaking down.
 
(what is a belfy)
 
!!urban belfie
 
@RoelvanUden belfie a 'bottom [selfie]' - a photographic self-portrait featuring the buttocks, usually posted by female celebrities on social media networks.
 
brilliant.
 
8:42 AM
hmm, how do i use the modulus operator ? Appearantly I am retarded... I tried first with if(i%7) and then with if (i == i%7) (In a foor loop for(int i = 0; i >= 100; i++)) - But I just dont get the modulus.
 
It gives you the remainder. So, 1 % 2 is 1, and 3 % 2 is also 1. In a comparison, e.g. for odd equal, you could do i % 2 == 0 for even values.
 
ok
so, if (i % 7 == 0) is good ?
 
If you want to do something every 7 items, yes.
 
I remember when I overcomplicated my code too.
 
(Starting at the first)
 
8:45 AM
I mean the remainder of 7 % 7 = 0
 
@Sippy The good 'ol days.
 
Am i thinking the right way now ?
 
@Froxer Yep. And 8 % 7 is... ? ;-)
 
!= 0
 
Lol
He's not wrong
 
8:46 AM
:P
 
Ok, thank you @RoelvanUden
 
@Froxer what problem are you actually trying to solve with modulus
 
Well, I am trying to figure fizzbuzz out by myself
 
I'll be honest I've been coding for 4 years and never used it
 
8:47 AM
I knew I had to use modulus, and i knew i could do it with a for loop.
i showed my snippet to a friend
and he told me i didnt understand modulus
or i was using modulus wrong
but now thanks to @RoelvanUden i think i got it.
 
@Froxer github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition if you want to confuse yourself even further
 
@Squiggle Thanks, i will look into it.
 
@Froxer don't. It's the Enterprise version of FizzBuzz.
 
I always like to confuse the shit out of myself and come here and ask for guidance :) Great way of learning so far :P
ok, so i should NOT open the link ? :P
Now I am even more tempted to click it.
 
I mean
You can click it
 
8:49 AM
For some reason VS2013 defaulted to .NET 4.5 for all our projects. All our projects are 4.5. Is there a good reason to migrate them to 4.5.1?
 
@AvnerShahar-Kashtan hello
 
But what he linked is basically "If Fizzbuzz was an enterprise application, this is what it would look like after 5 years."
 
it's a thing of beauty
 
I mean
It's not
It's beautiful the same way a type 22 frigate on a peacekeeping mission is beautiful I guess
 
@RoelvanUden But have you fixed my problem?
 
8:50 AM
@AdanRamirez good morning.
 
No, no you haven't
 
I dunno where that analogy is going.
 
We'll never know what squiggle was going to say now :(
 
He didn't say anything very important lol
 
@Sippy on a peacekeeping mission? Ah, sorry no, that was the type 22 frigate, I guess.
 
8:52 AM
So TIL, the british government sold type 22s to 'interested parties'.
 
please...who would be interested in british ships? Those times are over...
 
"We're having a yard sale and we have these type 22s, anyone want them?"
Wanna know something funny? Those two megacarriers we're building won't even have planes on them for like 2 years cos we don't have any to put on them.
#ggbritishgovernment
 
@Sippy military intelligence at it's best
 
Ain't nothin intelligent about the British leadership these days lol
2
 
you can strike 'the British' right out of that sentence
 
8:55 AM
yessir
 
that's better
 
@Sippy to be fair that's not our fault
It's not us building them
 
I dunno why we committed to building megacarriers that we can't actually afford to deploy
Lol
 
There was a Joint Strike Fighter game published in 1997
By all accounts it was quite good
 
They will get decommissioned after 5 years when we stop being a sovereignty and become an American state. xD
 

« first day (2005 days earlier)      last day (2938 days later) »