« first day (3938 days earlier)      last day (1001 days later) » 

5:09 AM
Good morning
 
 
2 hours later…
6:40 AM
So we had 5 people in our department
Just me left :D
 
7:04 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
7:34 AM
@Squirrel.98 Time to add Senior Dev, Software Architect, DevOps Engineer, Team Lead and maybe some other stuff to your CV :D
Who validates the model? The controller? The model itself? The business logic because the business knows what is valid? An extra "Validator" between controller and business logic?
 
I usually make a separate validator to contain all the validation logic
you wouldnt really want it in the model, especially not the type system
the controller might not always be your entry point
the business logic doesnt care about valid models... perhaps with the exception of assuming it is correrct
using the validator is the controller's job
because the controller knows how to return to the caller with the appropriate information of why the request didnt get through
 
7:53 AM
[Captain Obvious] @Squirrel.98 sounds like you need to leave too. Maybe you need to look for a new job
 
 
1 hour later…
9:00 AM
@Botler I meant because of COVID :D
@Squirrelkiller Only developer in the company :D I have too many jobs in this company
 
Put it all on linkedin and watch the recruiters swarm you
So then you can go "120k you say? I might think about it."
 
Yeah I probably need to create an account on there.. developers in that much demand right now?
 
I still need experience ..
Got a project using Xamarin soon - that'll be fun.
Something to put on my CV
 
9:29 AM
Do you guys use abstraction often?
If so - what sort of scenario do you use it in..
 
I suppose we all use abstraction... but rarely abstract classes/methods
 
Our application uses several different services, both webservices and databases. We use hexagonal architecture to abstract that away though: Our business logic basically injects an interface that has a "CalculateStuff" method, the adapter implementing it then cares about what DB or webservice to call.
Also we actually inject 26 instances for that interface, and the interface has a method "ResponsibleFor(input)" so the service goes over a list and asks each adapter if it's responsible for this kind of input.
 
Just reading through this w3schools.com/cs/cs_abstract.php - was interested to what you guys had to say.
 
@Squirrel.98 w3schools is a terrible resource. We suggest using MDN. Here's an potentially equivalent page: Details of the object model - JavaScript | MDN
 
lol
 
9:40 AM
Damn James
w3schools is nice for learning basic web stuff
 
Agreed
 
Good morning!
 
Morning Alex!
 
[Hans1984] meowing
 
Reading up on hexagonal architecture. Really powerful way to build an app: blog.ndepend.com/hexagonal-architecture
Hi Squirrel.98 and Hans1984
 
9:54 AM
@Squirrelkiller sounds weird
what kind of input do you have?
> Abstraction can be achieved with either abstract classes or interfaces
or... literally anything else
 
It is weird
 
there are many kinds of abstraction
some abstraction is as simple as having a few methods
 
Abstraction gives me the same vibe as an interface
 
Input is
1) personal data like names/birthdate,
2) data depending on section/category of insurance: life insurance needs hobbies/smoking?/job details, property insurance needs property info like size/location,
3) requirements the customer wants, which features the calculated insurance should have, how much he wants the pay or payout to be for life insurances, that kind of stuff
Depending on which section/category it is, it needs to go to a different adapter
It's really complicated to translate this stuff to english lol
"life insurance" means several different kinds of insurance here
 
but... wouldnt each type of data have their own entry point?
 
10:02 AM
Quick question I forgot how to bind to x:Name selected item
<ListView x:Name="nav" ItemsSource="{Binding Navigation}">
    <ListView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Title}" />
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

<ContentControl Content="{}"
 
like risk life is "you die -> family gets money", deathmoney (iDunno it's a direct translation) is "you -> insurance pays for funeral"
 
I cant recall any web service that has an endpoint "/dumpalldatahere" where you just throw anything and they will recognize if it is a customer model or a product
 
In the content controller, how do I set the content to nav.SelectedItem ?
 
@Wietlol Yes, then each entrypoint sends it to the same service, that service does some stuff to the common data, then fans out to the different adapters to do stuff to the specific data
 
@Squirrelkiller insured sum
"sumInsured" in the system we use
but we are weird
 
10:04 AM
insured sum is something only part of the calculation result in property insurances, but can be a customer choice (calculation input) for life insurances
 
"AFD 2.0" oh no
 
it is weird, but it works
for the time being
 
AFD is the german nazi alternative party
 
ah
 
10:05 AM
Hey at least you have an official standard^^
 
in the netherlands, AFD is a common standard for insurance data
many insurance companies use it
many insurance companies have their own variant of it
we... have to deal with all of them as mediator :(
 
        <ListView x:Name="nav" ItemsSource="{Binding Navigation}">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Title}" />
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

        <ContentControl Content="{Binding ElementName=nav, Path=SelectedItem.Content}" />
Got it
 
I see. Yeah we have exactly the same concept then, called BiPRO^^
 
Remember finding the Gang of Four's design patterns years ago: dofactory.com/net/design-patterns
They provide good examples for each pattern
 
This is a pretty cool website too refactoring.guru/design-patterns/csharp
 
11:04 AM
some of the pattern examples can be improved though
or have different versions/implementations
but it is certainly a nice website
 
Are you based in PL @Wietlol ?
 
no
 
I probably asked this before
 
I am not based in Public Law
 
But doesn't hurt to again - where you based?
haha :D I meant Polska
 
11:07 AM
I am based in localhost
or ~
depending on the context
 
What country, is your human body currently located at?
 
If you think about it, though, the earth is but one country. All these borders are arbitrary :)
 
if you mean where my plug is connected, that'd be in a house in the netherlands
the netherlands has great data centers
probably the best in the entire country
 
Ok - what is the longitude and latitude of your current location?
 
I cannot give you that information
 
11:11 AM
Don't be such a sealed class
 
I am not sealed, I am final
C# pleb
 
in my codebase, sealed means something different than in C#
sealed classes can be extended
in C#, sealed classes are final and cannot be extended
 
What do you mean by "Final"
 
final
 
11:16 AM
Haven't come across to it yet
 
In the Java programming language, the final keyword is used in several contexts to define an entity that can only be assigned once. Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object (this property of final is called non-transitivity). This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed b...
 
Why does this keep showing..
 
because one of your supertypes already defined a PropertyChanged property
 
supertype ?
 
supertype
more specifically, BindableBase
 
11:21 AM
So to fix this.. is this ok new public event PropertyChangedEventHandler PropertyChanged;?
 
it would hide the parent property
if you want that, then that is fine
but if you want that, you probably have to clap yourself in the face
 
Not really..
 
you already have a PropertyChanged event, you dont need another
 
I usually have a base view model
Where I implement it
But with devexpress there is a ViewModelBase
I believe that already has the PropChanged...
 
it has
indirectly... but it has
 
RaiseCanExecuteChanged
 
Berlin already had one
 
[Squirrel in Training] It was takn down my dear friend
[Squirrel in Training] Doesn't count
 
Had :)
 
11:26 AM
 
> Donald John Trump: Nobody builds walls better than me, believe me.
Emperor Qin Shi Huang: Where my popcorn at?
 
The Final article reminds me I saw somebody using the continue keyword in c#, which feels very Java to me
 
ah RaisePropertyChanged got it
 
continue is for guard clauses inside a loop
When you want to skip this entry for some reason but don't wanna stop the whole bulk
 
11:42 AM
some people just leave the braces empty if they wanna do that
 
[Squirrel in Training] thats cuz c# is a copy of java
 
oh ya I got a new chapter:
https://autorisedomain.com/2021/07/27/infiltration-p3-5/
 
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] foreach(newItem in itemsThatWhereGivenToMe) {
if (itemAlreadyImported_FYouForGivingUsItTwoTimes(newItem))
continue;

importTheCrud(newItem);
}
[Squirrel in Training] your welcome amyy
 
this thing's 86k words long now
 
11:46 AM
#not-on-the-discord-atm
 
12:01 PM
[Squirrel in Training] that channel doesnt exist!
 
12:18 PM
> Donald John Trump: Nobody builds walls better than me, believe me.
Dutch government: We build a wall that stops the entire atlantic ocean from non-stop invading us. I'd be delighted to see what you can do.
@Freerey in my mind, continue feels a bit C/C++ ish
because in Java/C#, we nowadays usually use streams and linq
no need for continue and break
 
I'm trying to figure out a way to get all the attributes of a custom c# class, but reflection isn't working too well...I just want the attributes and values, not the getter/setters c:
 
attributes or fields?
 
well I thought I needed attributes, but I guess not
I guess it's fields
 
12:35 PM
it's "properties"; figured it out x-x
 
12:45 PM
attributes are attributes :D
and attributes are properties :|
 
in any case, I figured out how to do what I was trying to do
 
1:14 PM
without reflection?
 
        List<string> fieldsLst = t.GetProperties().Select(f => f.Name).ToList();
        List<object> valsLst = t.GetProperties().Select(f => f.GetValue(obj)).ToList();
        for (int i = 0; i < fieldsLst.Count; i++)
            ex.Data[fieldsLst[i]] = valsLst[i];
still got reflection
 
So you want a dictionary where the key is the property and value its value
So basically...a javascript object
Just serialize it?
 
1:30 PM
purdy much
 
1:59 PM
Ryan Donovan on July 28, 2021
Dwarf Fortress is one of those oddball passion projects that’s broken into Internet consciousness. It’s a free game where you play either an adventurer or a fortress full of dwarves in a randomly generated fantasy world. The simulation runs deep, with new games creating multiple civilizations with histories, mythologies, and artifacts. I reached out to him to see how he’s managed a single, growing codebase over 15+ years, the perils of pathing, and debugging dead cats. Our conversation below has been edited for clarity. 
 
 
1 hour later…
3:08 PM
I just noticed my phone screen is starting to come off :D
 
 
2 hours later…
4:58 PM
Has anyone used WebDriver for web automated testing?
 
5:49 PM
nop
 
 
2 hours later…
7:35 PM
I experimented with web driver a bit
but not with edge nor C# tho
 

« first day (3938 days earlier)      last day (1001 days later) »