Hello. I have a constructor which sets several of the instance's virtual properties. Virtual member call in a constructor tells me that this is bad. What if I assigned directly to the backing fields in the constructor? Is that an acceptable alternative?
A lot of the answers on that Q say to make my class sealed, but I want to investigate alternatives before I change my class' public features
@Kevin Assigning directly to backing fields would be fine but begs the question as to why you're allowing an override to be made on your method in the first place?
@RudiVisser If you're saying "properties shouldn't be virtual unless you have a specific reason to make them virtual", I was just wondering whether that was the case. I don't know why the original dev made these virtual, but I'm thinking of making them nonvirtual and seeing if anything catches fire.
Ok, a warning is fine. I'm monitoring my warnings pretty closely because that's exactly what I'm working on right now: getting the warning count as close to zero as possible. Nothing will escape my watchful eye.
are there any proofs to say that algorithm X has the lowest worst time case complexity possible for sorting? (For example, heap sort has the fastest worst case complexity possible of O(n log(n)) because X, Y, Z)
> Although somewhat slower in practice on most machines than a well-implemented quicksort, it has the advantage of a more favorable worst-case O(n log n) runtime. Heapsort is an in-place algorithm, but it is not a stable sort.
> Worst-case analysis has similar problems: it is typically impossible to determine the exact worst-case scenario. Instead, a scenario is considered such that it is at least as bad as the worst case. For example, when analysing an algorithm, it may be possible to find the longest possible path through the algorithm (by considering the maximum number of loops, for instance) even if it is not possible to determine the exact input that would generate this path ...
if the worst case scenarios are not proved to be "that must be the worst case", than it's not likely there is proof, that it's the best in worst cases
Been debugging why mail where not sent to mailtrap.io for some time, turns out the isp blocks outgoing port 25 to other mail servers other than the proxy provided.
I have a WPF project where I have a clickable UserControl inside the header of an Expander. The problem is when I try to click on the UserControl, it triggers the click event on the Expander header instead. I tried adding e.Handled = true to the MouseDown event of the UserControl, but it didn't work. In fact it never even got called. Anyone have any idea how to fix this?
When you guys see me here asking acadeic questions about MVC, that's what I'm doing, trying to learn new stuff. Oh, did I mention I'm not allowed to use C#?
So their logic is "if you do work in C# (or MVC, or EF, etc) then we will need to hire someone who knows that stuff in the future if you leave and it will cost us more."
I don't think it will be easier for them to find a VB.Net guy who doesn't want to use new language conventions. It's a ticket to getting low quality people.
My last job was way worse though, and I have a family, can't afford to play russian roulette with my mortgage. It took me 5 months to find this position last time...
@Wietlol Blah blah, Xamarin = good idea, bad execution, blah blah, let's make it all multi-platform, blah blah because people prefer Java Minecraft over C#, blah blah, screw .NET framework, embrace web assembly and make our own version of it, blah.
Does anyone know of a good place to download sample asp.net applications? I'm looking for an MVC app in C# that demonstrates parent/child relationships and master/detail forms.
Everyone's thinking "Oh god, I hope web assembly becomes a monster framework" and I'm here thinking "How about removing ads from pages and telling the user - dude, I'm going to milk your CPU while you're here, free website, no ads, but you let mine coins while here- and get rid of shitty ads"
Paraphernalia most commonly refers to a group of apparatus, equipment, or furnishing used for a particular activity. For example, an avid sports fan may cover his walls with football and/or basketball paraphernalia.
== Historical legal term ==
In legal language, "paraphernalia" is a term of art from older family law. The word "paraphernalia" is plural, meaning "things beyond the dowry". Paraphernalia were the separate property of a married woman, such as clothing and jewellery "appropriate to her station", but excluding the assets that may have been included in her dowry. The term originated in...