« first day (3939 days earlier)      last day (994 days later) » 

12:50 AM
 
 
3 hours later…
4:11 AM
Hello
 
 
2 hours later…
5:58 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
Good morning
 
6:26 AM
[Squirrel in Training] Gosh anybidy here experiencing 2hrs saving periods in EF for 5000 entities with children?!
[Squirrel in Training] Someitmes it takes 2min sometimges 2hrs
 
mr5
6:37 AM
Put the children to sleep so they won't bother you
 
mr5
have you tried async though?
Or just don't wait for the write to finish.
 
7:05 AM
you cant just fire and forget though
but yea, EF can be very slow with saving data
 
7:43 AM
Hi all,
I'm confused about something in ASP.NET Core configuration.
I want configuration for Debug/ release,
for debug I want one for dev/stg/prod, the same for release (dev/stg/prod).
via launchsettings, what I understood , it is for debugging on differe environment (set ASPNETCORE_ENVIRONMENT).
but I want to change the ASPNETCORE_ENVIRONMENT when I publish new deployment (release).
How can I have control on this?
 
Hi confused about something in ASP.NET Core configuration.
 
Is there something wrong with it?!
 
I feel like there's a dimension you're overlooking here
If you have different stages, you can scrap debug/release and instead have one per stage
i.e. we have debug/dev/test/release/stage/prod/fallback
 
8:21 AM
0.o
why so many?
 
debug for local development, dev where the develop branch gets deployed as soon as something gets merged into develop, test for internal testing, release for release testing (version done, no more features), stage for hotfixes and stage testing against live data shortly before update, prod is live and fallback in a different datacentre if prod goes down
Upcoming version is currently in release test, where every aspect of the application is tested to make sure there are no (new) bugs.
Currently developed version is on the test stage, where only tickets are tested by QA and customers.
 
[Captain Obvious] What are you using for CD? Because config transforms (to change environment, amongst others) can do that
[Captain Obvious] which are supported by most half decent CD platform.s
[Captain Obvious] Alternatively, it's not something you need to worry about. The actual environment that the code runs in can have the encironment variable set which will be a higher priority than whatever is in the config
[Captain Obvious] See this dev blog for details of prescedence
 
We're using web.config with transforms, so test has web.test.config and msbuild applies the transforms on build
Gitlab does the CI, CD is not on the road yet
 
We have 1 month sprint, so after that the develop goes to release/version-x.xx-0 and is deployed to release where the release test can commence for a month.
 
 
2 hours later…
10:31 AM
Jesus
 
11:29 AM
got the new phone....and it's the first iPhone I've ever had 😶
 
12:19 PM
Hopefully it's gonna be the last aswell
 
given how durable these things are, that might end up being true
 
mr5
model?
 
12
 
mr5
that is the newest right?
 
yep...for about 4 more months
 
mr5
12:34 PM
the iphone I have here haven't even touch for 2 months already lol.
 
what is iphone... and can I eat it?
 
mr5
it's kinda inconvenient to use iphone if your primary OS is Windows
 
@mr5 which I learned when trying to sync my music to it, so good thing I have a macbook
 
mr5
@Freerey m1 chip?
 
Hello,
Does someone know if
```
for (int i = 1; i < points.Length; i++) {
System.Diagnostics.Debug.Assert(points[i].X > points[i - 1].X);
}
```
Would be compiled in release mode ?
 
12:50 PM
@mr5 nah
what does "release mode" mean here?
 
In visual studio by default there is 2 mode when building an app, "Debug" and "Release"
 
mr5
34
A: In C#, is a Debug.Assert test run in release mode?

Jon Skeet What happens to the the Debug.Assert method when I compile in release mode? It's completely removed (including the call to ExpensiveTest), assuming you don't have the DEBUG conditional compilation symbol defined in your release configuration. If you look at the documentation, the declaratio...

@Freerey A1?
 
whatever verion of the A-chip they have now
 
Yes but I was wondering if it would still not be compiled in release mode when it is in a for loop
 
mr5
Probably if the only thing in the loop is assert, the compiler is smart enough to strip that away.
 
1:16 PM
Also Debug and Release "modes" are just the default configurations given to you with a new project - you can make as many as you want and call them whatever you want. The differences are, which build variables are defined, like #DEBUG or #TRACE.
 
okay I see..I had to deal with debug/release when doing a .net core project and I figured it was a VS thing....with that said, I don't see why that code would fail to run
 
mr5
Also the optimization thing. I think it's also true in .NET that it pads some memory on debug mode to make space for the breakpoints.
 
what does Debug.Assert return?
 
1:34 PM
@LeandroSaraivaMaia So, this gets a little complicated, if points isn't, say, int[] or List<int> or another well-behaved collection where Length is just a property reading a field... If that property access has side effects, the loop may remain, while the code in the Debug.Assert won't.
In the normal case, I would expect the loop to be optimized away... but there are no guarantees, either. The compiler sometimes chooses not to optimize something out for it's own reasons (or bugs), or determines the time spent working on the optimization is not worth the savings; bear in mind that C# is generally JIT compiled, so all time spent optimizing at runtime is runtime spent. Even in release mode, not much optimization is done when you build the project.
 
Debug.Assert returns void, it just throws when the given condition isn't true
@Zarenor You could make sure it goes away in release config by wrapping the whole thing in #IF DEBUG
That will work so strictly, even before compiling VS will grey out and completely ignore the contents when you switch to release config
 
^^ Definitely. If eliminating the loop in non-debug is the point, that's the way to go.
 
So I completely ignored the name and thought I was replying to Leandro lol
"Dark profile picture? Check."
 
Yo
I have 3 ViewModels - 1 Parent and 2 child's
I have a object List<SomeModel> SomeList that need to be accessed by the 2 child's.
2 child's can modify the List<>
But where is the appropriate location to declare this List<>? So both child's are able to update the list, and both to show latest version of the list.
 
Pass the list from the parent to the children
Since it's the same object, there won't be different versions
Also make it ObservableList
 
1:49 PM
Why ObservableList?
So it can notify the other child?
 
Exactly
 
That the list has been changed?
 
One changes the list, the other gets notified
 
Ok let me try that
        public List<PageViewModel> Navigation { get; set; }
        public ObservableCollection<AreaModel> Areas { get; private set; } = new ObservableCollection<AreaModel>();


        public BestBeforeDates_Areas_MainViewModel(IDatabaseService databaseService)
        {
            DatabaseService = databaseService;
            LoadAreas();

            Navigation = new List<PageViewModel>
            {
                new PageViewModel
                {
                    Title = "Best Before Dates",
Like so?..
Worked
Cheers mate
Shit
How do I undo delete of class
in VS
 
2:10 PM
First level: ctrl+z
Second level: git discard
Third level: git reset
 
Phew - was in recycle bin
 
Lol
Use source control people
Many small commits, then rebase before pushing
 
Last time I used it - made a huge mess and couldn't undo the shit I did
 
Not enough commits then
With git, you can undo anything
 
Probably - need to look into it again.
 
2:13 PM
Push the small commits to the server, then you can even undo an ...undoing
 
Roger roger
Btw what is role in your company :/
 
Software developer, although now working student
And also software developer during times without lectures
 
2:30 PM
Ah you at uni?
 
studying applied informatics
 
2:57 PM
What's that about?
 
3:46 PM
Basically from what assembly does and why to the maths behind everything to software architecture and distributed computing
 

« first day (3939 days earlier)      last day (994 days later) »