« first day (2108 days earlier)      last day (2848 days later) » 

6:23 AM
Good morning, empty room.
 
Anyone know of a good .net alternative config library? something which supports multiple config sources / variable interpolation (possibly a port of the apache commons-configuration)
 
Sorry, nothing concrete. I usually just create a custom configuration class and then serialize it to json or xml.
Although we've reached the pain point here for configuration management (each deployment has several custom config files but many shared elements are duplicated, updates to shared elements leave older config files out of date)
 
gotcha
not the answer I was hoping for :-(
 
Others might have better answers, but it's Sunday morning and Christendom is sleeping off their Saturday excesses. :)
 
morning.
 
6:39 AM
@misha130 yo
 
here we are again on a sunday morning
 
6:51 AM
Ooh, Resharper has a "convert interface to abstract class" refactoring. Very nice.
I have an interface with about 30 implementing classes. Wanted to add a base class to add shared implementation for the all. Wham-bam-we're done.
 
resharper just cancelled my subscription cause it cant find my credit card
after I gave it, like 20 times
;_;
does it write the implementation of the abstract classes aswell :^)?
 
We're not far from the "Resharper, write my code!" even horizon.
 
well it could ask you what class to take as an example and just fill it all out
then you just change things to generics or whatever
 
Not sure I understood.
 
I am saying editing an implementation is easier than writing one
 
7:06 AM
Right now there's no shared implementation. I want to add something new (trace logging) to all of them, not take one of them as the template.
 
ah
 
I suppose it would be possible if I did have the implementation already somewhere - once I have the shared base class, I can use the Pull Members Up refactoring to pull the code to the base class.
 
 
1 hour later…
8:20 AM
Hey guys, do you know how can I find some answers at the following question, as I described in it? The people seem not to read it carefully : stackoverflow.com/questions/38411221/…
 
@meJustAndrew it looks like a primarily opinion-based question. 'Is this good?' can only solicit opinions.
All the answers so far look like they've understood the question, so I don't see what your complaint is.
 
8:41 AM
@meJustAndrew I'm with @TomW. "Is it a best practice" is a vague definition. What answer would you expect? Yes/no?
 
I am expecting, as I said in the second part of the question, only the downsides of that approach, not a theory.
 
And isn't that what most answers addressed? 1) performance. 2) Loss of data due to serialization fidelity, 3) Invalid comparison logic due to string comparison not equivalent to logical comparison.
There are a couple of bad answers, but several ones that clearly point out the drawbacks of the technique.
 
I'd argue that also the reason this is not such a great idea, and the reason the BCL allows the overriding of .Equals, is that the notion of equality is specific to a type. Suppose I have two Customer instances with the same Id but different PostalAddress and LastModifiedDate. Are they 'equal'? They represent the same entity.
 
8:56 AM
Also, SO is not a good place to poll for multiple answers to a question. Especially once you've marked your own answer as accepted .
If there's no Right Answer, SO isn't a good format for it. It's not a forum or a wiki.
 
 
1 hour later…
Ben
10:14 AM
When I open a database using this data tier class and then close it I cannot open the file again: gist.github.com/codeliger/d7226cba717413f8dcf7e9bc06e64c70
 
10:41 AM
how do you call the close
maybe let the class implement IDisposable
 
 
2 hours later…
12:32 PM
@Ben SQLiteDataAdapter implements IDisposable so you may want to call Dispose on that also in your close method. I'm not near a windows machine to check but there's some code in the SQLiteConnection's close method which checks if the connection is in a transaction scope... maybe the SQLiteDataAdapter leaves a transaction scope open. SQLite is non-autocommitting in a least one of the java or c# client libraries I've used before
 
 
2 hours later…
2:21 PM
Hello, pals.
What do I use in .Net Core Console App to store settings, like connection string etc?
In Standart Console App it is ConfigurationManager.AppSettings.
There is ConfigurationBuilder class, but it seem to be able only for ASP.Net Core projects.
Shall I just grab ASP.Net libs into my console app and use the same approach?
 
 
4 hours later…
6:21 PM
ConfigurationBuilder seems like the correct choice. docs.asp.net/en/latest/fundamentals/configuration.html
 
6:48 PM
Hello world.
 
 
2 hours later…
user47589
9:03 PM
i neeeds codes to add string to my datafile pls send codes please
 
Hey does anyone here work with Unity5
 

« first day (2108 days earlier)      last day (2848 days later) »