« first day (4050 days earlier)      last day (891 days later) » 

2:00 PM
I hate cheese
and defending my point is not very hard. Since it's just spoiled milk...
the more spoiled the milk is, the more exquisite the cheese is
 
lol
 
mr5
I used to like cheese, then I grow up
 
then the soy sauce is spoiled bean
 
user12761381
@Wietlol: Sorry to be bothering again but; 2 more questions arose.

While using a Constructor:
-Since Constructor Runs Before the Properties a Getter can be Set?
- Can the Constructor receive its Model as a Parameter?
 
user12761381
i.e:
public class ReservationModel
{
#region <Member Variables>
public int Id { get; }
public RoomModel RoomData { get; }
public GuestModel GuestData { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public TimeSpan Length => EndDate.Subtract(StartDate);
#endregion



#region <Constructor>
public ReservationModel(ReservationBookModel _reservationModel, RoomModel _roomID, GuestModel _guestData, DateTime startDate, DateTime endDate)
{
RoomData = _roomID;
GuestData = _guestData;
 
2:04 PM
depends
it can certainly get "a" model
your example does not show it uses itself
but even then, a class could have a parameter with its own type in the constructor, if
- there are other constructors that can be used to create an instance without another instance already being present
- the parameter is nullable
- you hack C#
 
user12761381
alright.
so: (maybe im wrong but): using itself would require an additional method to set the data
 
user12761381
something like

// All Guest Properties Here


#region <Constructor>
public GuestModel(GuestModel _guestModel)
{
GetGuest(_guestModel);
}
#endregion


private GuestModel GetGuest(GuestModel _guestModel)
{
return _guestModel;
}
 
uhm... no
something like this:
public class Person
{
    public String Name { get; }

    public Person(String name)
    {
        Name = name;
    }

    public Person(Person person)
    {
        Name = person.Name;
    }
}
 
user12761381
ouch. that simple
 
or something like this
public class Person
{
    public Person? Parent1 { get; }
    public Person? Parent2 { get; }
    public String Name { get; }

    public Person(Person? parent1, Person? parent2, String name)
    {
        Parent1 = parent1;
        Parent2 = parent2;
        Name = name;
    }
}
 
user12761381
2:15 PM
I see what I was getting confused at
 
user12761381
was a pointless question.
So the constructor in a Data Model is quite pointless, unless you need to make sure that all fields are passed through
 
the constructor in a data model is quite the source of truth
 
mr5
@Berig #regions are created for those devs that don't follow KISS & SRP
 
user12761381
ensures the data is passed
 
assuming immutability, it defines how your model looks like
 
mr5
2:19 PM
stop using it
 
if I had to choose setters/inits vs constructor, I'd choose the constructor
 
[Captain Obvious] Cheese isn't "just" spoiled milk
[Captain Obvious] It's been tactically spoiled to ensure it spoils in the correct way
 
it may be more duplication in that one class, but it is so much simpler everywhere else and robuster
 
user12761381
Alright. It seems clear now. Even though 'duplicated'
 
user12761381
@mr5: Regions help me fold code and keep consistency (yes I'm sure I ain't organizing code according with best practices - I do need to get there too).
 
2:23 PM
if you need help folding, try get a laptop?
 
user12761381
xD
 
user12761381
OMG
 
user12761381
Point Taken
 
user12761381
I dont understand why regions are so bad
 
if your class does not fit on your screen, yell at C# for being bad... or make a smaller class
if you have more than one class/struct/enum in a file, you should be whacked
 
2:25 PM
Yes stop using region, if you using them because you really 'need', you need to check if youre writing god object
 
user12761381
hmm
 
user12761381
more than 1 enum is bad?
 
user12761381
(protecting myself)
 
@Botler spoils in the correct way = ferment / brew...?
 
user12761381
roger that
 
user12761381
2:28 PM
regions made sense in winforms
 
user12761381
sometimes sorting the code was not easy
 
user12761381
WPF seems to help in a way (At least for what I've been learning so far)
 
@Berig in the same file
a file should be named identical to the type it contains
I suppose there are exceptions...
 
user12761381
Lots of design code going to xaml
 
user12761381
hmm you mean adding another class with same name
 
2:30 PM
for example, the Person class should be in a file Person.cs
and the Country enum should be in a file Country.cs
once you are used to keeping folders and files consistent with namespaces and types, it is really convenient to traverse the solution explorer
 
hey all those who use Java, do we have a Java equivalent of => in C#?
 
->
 
public A getData() -> this.data; correct?
 
not there, no
 
2:33 PM
for methods, I dont think there is
 
user12761381
alright. I believe consistency and namings are not a problem.
I do am facing myself with old bad habits vs good practices and I'm trying to adjust them. thus my noob questions trying to understand the reasons behind the good practices
 
then what is -> ?
Java equivalent of Lambda?
 
-> isnt C#
 
no, it's java
 
C# uses =>
 
2:34 PM
at least that's what wiet says
2 mins ago, by kesarling He-Him
hey all those who use Java, do we have a Java equivalent of => in C#?
there you go @nyconing
that's the question
 
No, idk, Im not using java
 
Also, on an unrelated note, did anyone try out GitHub co-pilot?
 
[Captain Obvious] @berig definitely don't task advice on C# being bad from wiet
 
It's freaking awesome!
 
2:35 PM
looks like it is still in draft
 
C# use => like ()=>{}
public bool IsHibernated() => !IsManaged;
 
user12761381
@CaptainObvious: You reading my screen?
 
user12761381
xD
 
@Wietlol hmm... dumb language
 
user12761381
2:36 PM
I actually removed that part on my notes
 
[Captain Obvious] Nah it's just he seems to hate C#
[Captain Obvious] But then hangs around here anyuw
[Captain Obvious] anyway*
 
user12761381
lol
 
@kesarlingHe-Him to be fair, I'd love it if they ditch that proposal and copy Groovy's approach
 
user12761381
Well I really like C#, and want to go further
 
C# is the best
 
2:37 PM
@CaptainObvious I hate all languages
 
[Captain Obvious] HERE WE GO LADS (v2)
 
user12761381
perhaps getting a job or something. (I guess Im way too far from that)
 
[Captain Obvious] maybe you should a new career
 
@Botler I have been using it for a month
 
[Captain Obvious] One which doesn't involve languages
 
2:37 PM
it's really buggy!
 
[Captain Obvious] No this is 17.*.1 preview*
 
@Botler instead, I improve my options
 
[Captain Obvious] Which I'm hoping will fix the bugs I have with """stable"""
 
[Captain Obvious] Like my nuget browser being totally fucked
 
2:39 PM
never use "stable", they have horse shit
 
I updated this morning
 
[Captain Obvious] Which is odd because it works fine in VS19
 
user12761381
@CaptainObvious: Well; that goes with personal life info. But lets say life has cut my wings and I couldnt get to learn properly. And where I live now its all about hotels and restaurants. IT is severely forgotten. And My wings were cut... Thus Pushing the hard as I can to learn by myself something I love doing
 
[Captain Obvious] I no the new career thign was to wietr
[Captain Obvious] jesus christ typing is hard
 
especially while eating
And I eat all the time
 
2:41 PM
[Captain Obvious] You're making me hungry damnit
 
user12761381
Not a good learning curve. But hey; considering ive been doingthis by myself.. I think im pretty great (or not). some days i feel like God, others like im so crappy
 
I found a slice of year old pizza in my keyboard the other day
@Berig join the line
 
did it have the rotten tomatoes topping?
 
[Captain Obvious] Nothing wrong with self-learning
 
2:42 PM
@Wietlol No, hold your horses, pineapple
 
user12761381
except that it is hard
 
sweet!
 
user12761381
sweet too
 
@Berig maybe try to learn a language that is easier to learn?
 
user12761381
nah
 
2:42 PM
[Captain Obvious] like what
 
mine :D
 
the worst is when I eat curry
 
"easier to learn" for me* :D
 
[Captain Obvious] Hard to learn a languge that doens't exist
 
user12761381
2:43 PM
ive tried c++ (still do for arduino), HTML, CSS (didnt quite like it)
 
it exists, just not published
 
[Captain Obvious] Does itwork? is it fully functinoal?
 
@Berig I said "easier to learn"
 
user12761381
ask an AI with neural network
 
user12761381
it will program for u
 
2:44 PM
@CaptainObvious define "fully"
 
user12761381
u think; it creates
 
[Captain Obvious] Can you create anything you can create in any other language?
 
user12761381
now imagine neural tech being developed properly
 
which other languages?
 
@Berig, don't bother learning Wiet's language. A day later, he'll probably say Java is still better :D
 
user12761381
2:44 PM
and dont need a keyboard
 
[Captain Obvious] Well the vast majority of languages can create almost anything
 
C#? probably... although C# might have quite a few interop thingies that I cant do yet
 
@CaptainObvious, they called turing complete languages, right?
 
Java? no, I'd still have to complete the annotation processing part for example
 
[Captain Obvious] Maybe? But at the same time powerpoint is "turing complete" so I'm not sure
 
2:46 PM
Powerpoint?!
 
user12761381
C# is a Language that actually runs on brain
 
but I can write classes with properties and methods, which basically means I can do 99% of what needs to be done
the sdk is where things start being a grey area though
 
I use Co-pilot
 
user12761381
How many of u after coding with C# became social engineers?
 
2:47 PM
@Berig Why? just why?
We got better things to do
 
[Captain Obvious] Social eningeering requires social skills
 
user12761381
or... How many started looking at the world as structural data; immutable variables (properties) etc
 
user12761381
well i did
 
@CaptainObvious, spot on
 
[Captain Obvious] 🤨
 
2:48 PM
@Berig example?
 
user12761381
or.. how wrong (bugged) are the social patters
 
there is an http/tcp client, a way to read/write files and a concurrency/parallelism api, but I havent written anything to send sql messages for example, I have no clue what the protocol is that they use or how the drivers come into play
 
user12761381
Calling Laws to Rules.
A Law is Immutable. A rule isnt
 
const int kesarlingsGirlfriends = null?
 
user12761381
Social Patterns: Causing bugged people; wrong ways of living.
 
user12761381
2:49 PM
Less productive lifes and work
 
That's it. I'm outta here. Happy whiling :)
 
@Berig a lot of things in real world are not mutable
I dont see why a law is immutable
 
user12761381
Are you familiar with Aristotle Natural and Nature Laws?
 
but yes, looking at the world in programming terms, that is one way of modelling your application... you just take a very small set of the real world though
the laws of nature? they are just human's understanding of how nature works
when humans understand more, the laws change
 
user12761381
A Human being has a set of working rules (so as a dog, a pen, a wall)
 
2:51 PM
[Captain Obvious] Absolutely wild that updating from 17.0 to 17.0.1 requires a restart but installing 17.1 fresh is fine
 
user12761381
the Laws all the systems impose
 
user12761381
go against the nature and natural laws
 
user12761381
its a chain for the masses
 
user12761381
now.. code against the functionality of that object
 
user12761381
it will cause exceptions, bugs etc
 
2:53 PM
[Captain Obvious] AAAAAAAAAAAAAAA ITS STILL FUCKED
 
user12761381
its a huge ammount of data I could write
 
bork
 
user12761381
but rather than explaining; you find it within yourselves.

Laws vs Rules:

In my honest sense of the word: "Law" is something immutable. Just like a constant variable.
It is permanently stored, has its value, but never changes.
It cannot be manipulated. IT is always there and will always be. It is the way it is. Cant be broken nor contested. Makes perfect sense. It is a perfectly programmed piece that works in harmony with everything else; without issues at all and in any circunstance. No hiding. no bugs.
 
user12761381
but u already know that. it is within everyone.
it like asking if you are free and Analise the data (specially government laws)
 
3:00 PM
[Captain Obvious] even more lol
 
user12761381
alt+shift+b
 
user12761381
using style cop?
 
[Captain Obvious] Nope, just Xamarin being Xamarin
 
user12761381
To Conclude my boring comment:
I may not be a great C# programming. However C# Brought me a S*** Load of understanding the Truth that is there but most can't see
 
mr5
which is?
C# is MS Java
 
user12761381
3:03 PM
p.s: I know it sounds arrogant. but dont take it so. Its not meant to be so..
 
user12761381
@mr5: lol
 
user12761381
I got to learn social debugging with C#
 
mr5
I assume that is the Truth you were saying xD
 
user12761381
no
 
user12761381
you shouldn't
 
user12761381
3:05 PM
you gotta find within yourself. else you cant prove it
 
user12761381
never take a word for nothing. Question everything
 
user12761381
unless you find it out and prove by yourself it aint true
 
user12761381
i.e: the crap people digest from news, governments etc
 
user12761381
famous quote: "you are free to do as someone tells you"
 
user12761381
is that right?
 
user12761381
3:06 PM
why?
 
user12761381
Should we do jobs that kills us inside?
 
> Question everything
 
user12761381
should we have needs abused?
 
Wietlol questions everything
Captain Obvious: "pls don't"
 
user12761381
do nature need money, power and manipulation to live in harmony?
 
user12761381
3:08 PM
using (SocraticMethods socratic = new SocraticMethod()){ LotsOfQuestioning();}
 
[Captain Obvious] Nothing wrong with questioning everything
[Captain Obvious] If you accept the answers
 
to await beAsync(); or to not await beAsync(); that is the question
 
mr5
are our eyes even real? @Wietlol
 
define real
 
[Captain Obvious] Are you even real
 
mr5
3:09 PM
cuz, they said mirrors aren't real
 
user12761381
try{ if (PlatoWasRight && AristotleWasRigh) { WorldInsane(); }
 
[Captain Obvious] @wiet I belive it's -2.147b to 2.147b ints
[Captain Obvious] ie int32
 
real is not decimal?
 
user12761381
catch (UnhadledException ex) { throw new UnhandledException("Life Being Destructed"); }

finally{NoMoreWorld(); }
 
user12761381
that would go for Greta
 
user12761381
3:10 PM
=)
 
[Captain Obvious] oh yeah
[Captain Obvious] reals are floats lol
 
user12761381
Das but true
 
real floaters
 
[Captain Obvious] > throw new UnhandledException();
[Captain Obvious] But what if I handle it?
 
3:12 PM
a real would be -∞ < real < ∞
 
user12761381
then I hope youre the best person in the world and please take charge of the world
 
user12761381
no one like people worse than them in charge
 
\[**[Captain Obvious](https://discord.gg/PNMq3pBSUe)**] catch (UnhandledException ue)
{
//waitthatsillegal.gif?
}
 
user12761381
A real good person, with proper intentions and developer mind should take charge of the world
 
mr5
lol
 
user12761381
3:13 PM
Am I Wrong?
 
no, but actually yes
 
[Captain Obvious] Develoeprs are stupid
 
mr5
McAfee tried
 
can confirm, Captain is a prime example :p
 
[Captain Obvious] yeah but he gos distracted by hookers and blow
 
user12761381
3:14 PM
I feel like world leaders are either corrupt, don't know what they are doing or they are way beyond pernicious.
 
usually, power corrupts
 
user12761381
indeed
 
so, whichever person you put in charge of leading the world, will become corrupt
unless you put batman in charge
 
user12761381
if you are the best person in the world and go to power... you will end like Kennedy
 
mr5
what if we put monke in charge instead
 
user12761381
3:16 PM
masses are separated so nothing would change
 
user12761381
return
 
if you want to help the world, try to remove nationalism
 
user12761381
true
 
user12761381
teams, parties, countries, cities and similar divide people
 
ironically, groups divide people
 
user12761381
3:17 PM
yes
 
user12761381
I rather think of it as a concept rather than rotulate
 
user12761381
how could man become part of something universal when here on earth we are divided?
 
user12761381
working against each other
 
user12761381
this debugging would kill current psychology and give a better name to real philosophy
 
user12761381
xD
 
3:19 PM
[Captain Obvious] This is absolutely not a topic that is right for us idiots to be talking about
 
user12761381
why do you say idiots?
 
user12761381
everyone has moronicstates
 
I would say that there aren't many topics that are right for US idiots to be talking about
 
user12761381
and bugs
 
user12761381
US United States?
 
user12761381
3:20 PM
US developers?
 
user12761381
note: I didnt call anyone idiot
 
yes, but I did
 
user12761381
lol
 
user12761381
ok
 
user12761381
I guess in a way you are right. we are all idiots
 
user12761381
3:21 PM
but we shouldnt blame anyone. we are taught to be so
 
user12761381
The Governments, Systems, Schools, Social Life etc... It is all bugged.
 
[Captain Obvious] I calleld the people in this room idiots
[Captain Obvious] Becuase most of us are
 
apes together strong
 
user12761381
We harm the next because we can. Bad seems to be something cool without a reason
 
[Captain Obvious] ooga booga
 
3:23 PM
being an idiot is based on perspective, everyone is an idiot if you find the "right" perspective for each person
 
user12761381
are we evolving backwards?
 
user12761381
...unhandled exceptions
 
[Captain Obvious] uhhhhhhh
[Captain Obvious] my nuget is making up versions of packages that don't exist
 
user12761381
Idiots are Unhandled Exceptions. They can't handle themselves
 
if (Person.IsInCSharpRoom){ Person.brainCells == null;}
 
3:26 PM
[Captain Obvious] oh wait it does exost
[Captain Obvious] It just didn't this morning
[Captain Obvious] no wonder shit doesn't work
 
user12761381
@Harry: Yes. We are crazy
 
what's that?
 
[Captain Obvious] Some xamarin package that don't work proeply
 
user12761381
we debug the facts so code runs properly (or as close to perfection as humanly possible)
 
[Captain Obvious] You want code to run perfectly
[Captain Obvious] wlp, looks like I'm out of a job
 
3:31 PM
you want code to run perfectly?
function main() {
    printLine("Hello World!")
}
done
ez pz
 
[Captain Obvious] SEGFAULT
[Captain Obvious] probably
 
you can send bitcoin to my address now
 
[Captain Obvious] function main does not return a value
 
@CaptainObvious if that is the case, it is either Kotlin's fault or LLVM's fault or Windows' fault
or a cosmic ray entered the machine and messed up a bit that should represent the function
darn cosmic rays
#answer-to-every-unexplainable-bug
 
user12761381
=\
 
user12761381
3:35 PM
"cosmic ray entered the machine and messed up a bit that should represent the function"

Loved that bit shifting part
 
user12761381
Not so many BSOD
 
user12761381
Not so much data being messed up
 
user12761381
Its Harder to get hit by one nowadays
 
user12761381
and have messed up data
 
user12761381
..it can still happen i gues
 
user12761381
3:43 PM
@Wietlol: u mad at me?
 
user12761381
If so... Well Sorry bud
 
Hi all,
Is using singleton to store a piece of data (lookup object) that needs to be updated during the run time, a good choice, or just use static class?
 
user12761381
@Wietlol & @mr5 Thank you.
 
@Berig why would I be?
@mshwf both no
 
@Wietlol why?
 
3:58 PM
a static class to store state is always a bad idea
a singleton to store state is also always a bad idea
an object injected into your service provider that is reused everywhere (using AddSingleton) is a good idea
 

« first day (4050 days earlier)      last day (891 days later) »