« first day (2547 days earlier)      last day (2388 days later) » 

11:01 AM
Hello
 
@Nerdintraining It is.
 
11:21 AM
@Nerdintraining well.. it is true, but its not funny imho
 
@Nerdintraining :(
 
One more ping and i wil ASCII again!
 
do it
@Nerdintraining
 
damn that sounds frightening^^
 
@Nerdintraining hehehehehe typo, its Rebbeca
 
11:27 AM
welp that didnt work^^
 
Links dont really work with multiline
blame chat
 
2 messages moved to Trash can
 
 
mine dont fall out :D
 
11:45 AM
hey, great people, could you please look at this interesting question: https://stackoverflow.com/questions/46551528/which-type-of-encoding-encryption-is-this-phrase
have you seen this kind of encoding somewhere in the past? thanks
 
Wow legit not rebecca
 
Lol security through obscurity?
woah what
guys
go to your google search box and type ▄
alt+220
google actually seems to know wtf that is
 
Why wouldn't it?
also go to https://en.wikipedia.org/wiki/▄
ah shit the link broke
 
I mean, the suggestions actually give you ascii art kind of stuff
Those U+#### codes, how to use them?
I always wonder why they dont just put the alt codes there
 
I never use alt codes, they're mostly useless
 
11:53 AM
alt + 3
very important
♫♪ aswell
 
easy to remember too, since <3
 
charmap works, or perhaps some ascii art software
 
▄█
Shit, tetris is invading
 
whenever i need something not on my keyboard, I'll try to get the alt code
 
That's not a tetris
it's only 3 blocks
 
11:54 AM
YOU ARE A TETRIS
:(
 
@Metallkiller the U+#### are official designation for a given code point by the Unicode standard, the Alt+whatever is whatever MS comed up with
 
triplis
 
@Kieran my source code is GoL, baby
 
oo, pet names?
 
cmere Rover
 
11:58 AM
Hypnos
Iakovos
Iaokim
Ibycus
Ice
Ickus
Ida
Idalie
Idelle
Idette
Idurre
Igerne
Ignacia
Ignazio
Igrayne
Ike
Ilana
Ilde
Ilene
Iliana
Ilsa
Ilse
 
TRASH CAN
 
hey he asked
 
haha
 
Hi, I like if you have a look at my repo: https://github.com/mshwf/Charger
appreciating any feedback, and want to know, would you consider using it https://www.nuget.org/packages/Mshwf.Charger/ ?
 
@Metallkiller Given a code point, you can use it the C#'s unicode escape sequences to include arbitrary character in the source code like this Console.WriteLine("Hello, World \u00A9");
 
12:03 PM
@MohamedAhmed Is that just a worse way to do data binding?
 
It's a way far from data binding.. did you read the readme file?
 
Yes, that's why I asked
When would you use that?
 
It's not meant to do data binding
 
I usually use Func<Source, Target> to map objects to a different type
(trolololololo)
 
@MohamedAhmed Then what?
 
12:05 PM
I dont use type, i just var everything
KappaKappa
 
Ohhhhh
That is like the magic converter we talked about a few weeks back :D
Simply making one object into another, as much as possible, by copying properties that have the same name
 
variant
 
I use it a lot when I have an object but want to fill it with another object.
I can't find more words than I wrote in the readme file :(
 
eh fuck giphy
 
but I knew few days ago that there's already libraries like AutoMapper..
 
12:09 PM
@Kieran y u do dis to me?
 
@Wietlol do what?
 
use var
everywhere
 
@KendallFrey you see there's a better approach, or you don't know why and when to use it?
 
The latter
 
why in the world can my rest service not recognize input xml when the xmlns isnt specified??
 
12:17 PM
I created it inspired by a library we used at work : omuleanu/ValueInjecter
and now I use it it heavily in WPF, where DataContext is represented by a class, I'm serializing it to JSON object to save history about user inputs, but the data context class has many properties more than appeared on the UI fields , so I created custom classes that hold the minimum properties I need, they have same names and types, so to fill a my custom class with the datacontext I use `myClass.ChargeFrom(DataContext)`
 
Couldn't you just serialize only the properties you're interested in?
 
by ignore.. nope. there is more complex details behind this I went through.
also in my previous work, we had the model that holds data from DB, and there's ViewModel that's used by the UI, they also have the same name and type, and to fill the viewModel with the model, we used viewModel.InjectFrom(model)
 
I'd prefer to connect the VM and M directly, rather than copying.
 
@KendallFrey what do you mean by "connect"?
 
Probably by storing the model as a field of the VM
Then computing properties from that
 
12:28 PM
Which is actually the MVVM way. View shows stuff, Model holds stuff, Viewmodel takes stuff from model and makes it View-Readable
 
I'm sure there's better ways, that was my first job , the team lead wasn't a great programmer.
 
I'm having an issue here
 
@mark333...333...333 Clearly
 
But the id has value 16
 
12:41 PM
I wonder why it doesn't go to that id
 
Read the error message
 
I have an issue too
System.FormatException
when deserializing an xml string to an object
Issue is, it doesnt specify which value it was nor which property
not anything
just that it is invalid
and the xml string has 973 values
 
Can anyone give me tip here paste.ofcode.org/VU6Uq58ELBTcrrv7YehtdW
Is it possible to return in my "MapUpdateTest" method tester to be new object instead of getting back null value?
return in sense, that this still remains void method
so it would keep the reference to null object :P
 
why does everyone put "Dto" as prefix or postfix on his classes?
 
It is common naming schema for Data Transfer Objects that you use to send to client side
So they would end up in JSON or XML
 
12:56 PM
but why in the name?
that is totally not necessary
 
but where then?
 
in any case, your parameter is not an out nor ref parameter
you dont put it anywhere
maybe implement an interface IDto or something
or just put it in the summary comments
 
it would be hard to keep up with names, if you have Address and Address for example, but one of them is DTO
or you would need Models.Address and Dtos.Address or something similar
but with Dto prefix you can use Address and AddressDto
 
why have 2 Address classes?
just make 1
 
1 for Model and 1 for transfering data
 
12:58 PM
there is literally no need for 2
 
because you don't keep all the same data in both all the time
 
the model is supposed to be used for transfers
at least, in normal applications
 
Model is to store data, you can use it to transfer as well, but it can get really messy for more complicated data models
Dto is simple
 
but your dto is EXACTLY the same as your model
 
if you can, then you send only Id's instead of objects in it all the time
 
1:01 PM
in any case, you must either return your object in the mapper function
or make the argument a ref or out argument
but refs and outs are really bad coding conventions
the only place where you want those mappers is when you have two models for two different things with the same data
 
@Wietlol If that sweeping generalization were true, they wouldn't be added in the first place.
 
and you have to map them
 
mhm
 
@KendallFrey mistakes were made
not all are solved
if null is bad
then why does C# have it?
 
because
 
1:03 PM
@Wietlol I don't know, because null isn't bad
 
it is
at least according to half of the programmers
 
@Wietlol I'm guessing because Java had it and initially the designers didn't have any plans for the language except being a better Java
 
@KendallFrey if Thistype as generic is such an amazing thing, why doesnt it exists in C# yet?
 
@Wietlol Amazing things are hard to do
 
@milleniumbug I suppose so
they did disappoint me though
@KendallFrey not that hard
 
1:07 PM
the main problem I have with null isn't with that you have a value which usage causes crashes; rather it's the special case treatment
 
I almost only use Optional in Java now
 
Haskell's Maybe T doesn't have that problem, Java's Optional<T> also doesn't, C++'s boost::optional<T> or std::optional<T> also doesn't
but C# Nullable<T> does :/
thankfully there's always external libraries
 
special case treatment?
what is the difference between Java's Optional<T> and C#'s Nullable<T> ?
 
you can't have Nullable<Nullable<T>>
 
@milleniumbug y u no send mail to mike yet
 
1:17 PM
but you can have Optional<Optional<T>>
 
ah
I also wondered, in a language that doesnt have null at all
how do you implement an Optional?
 
Haskell's would be data Maybe a = Nothing | Just a
(so, Algebraic Data Types)
 
but what is Nothing?
 
a value - that declaration basically says "a Maybe a can have the following values: Nothing, or Just <any value of type a>"
C++, due to being memory unsafe language, can provide uninitialized buffers you can construct an object on top of it
 
@KamilSolecki why me?
 
1:21 PM
@Wietlol technically speaking, it's a data constructor. Just like Just foo returns a Maybe containing the value foo, Nothing returns a Maybe with no value.
 
Assume that I'm the Mike you meant.
 
so that would be template<typename T> class optional { bool hasValue; alignas(T) char buffer[sizeof(T)]; };
 
@mikeTheLiar is it crabby
 
I'd think of something like this: paste.ofcode.org/bvzgiKPuCwXq87wDPDMT2X
 
@KamilSolecki there's a shared admin account
 
1:22 PM
yeah I figured that much
 
@Wietlol That's a bit overcomplexified
 
but i dunno who is the other person(s)
 
@KendallFrey but it works and it is what I came up with :D
also doesnt require much language features
 
only inheritance, a common root object type and downcasting
 
@KamilSolecki the admins are a shadowy bunch.
I'll only say that there's more than two of them.
 
1:24 PM
@milleniumbug Java cannot do it though
afaik
you cannot cast on a generic
or maybe you can but it doesnt throw an exception when the cast is invalid
 
indeed, you'd probably need to store a Class<T> inside such Optional too :)
 
god deadmau5 is dope
 
in Java that is
 
That didn't make much sense, Did you mean c#?
 
but in other languages which include generics in the runtime, this would work
 
1:26 PM
!!tell Wietlol java
 
@Wietlol That didn't make much sense. Did you mean C#?
 
on the other hand, I learned a trick how to sneak Class<T> into a method :D
@mikeTheLiar I prefer Java though
 
@mikeTheLiar give me the number and imma tell you who that is
 
C# is giving me a headache
and it doesnt cooperate
 
>I prefer Java though
What kind of savage are you
Next you'll tell me php is good
 
1:27 PM
It make a lot of sense actually
 
I start to suspect people who do enough Java get allergic reactions to C# and vice versa :D
 
Most of what Wietlol says is fucking stupid
This is no exception.
 
only Jon Skeet seems to be immune AFAICT
 
I wouldn't go that far mike
 
@Kieran trust me, ill never tell you that php is good
 
1:28 PM
!!tell kieran quote get kieran
 
@milleniumbug just tired of exceptions with little to no information of what actually happened
System.FormatException: Input string was not in a correct format.
vs
java.lang.NumberFormatException: For input string: "abc"
2nd pls
 
@Kieran fuck off
hang on i can do that better
 
y dnt u go date jaba den
 
 _______  _______  _______  _______
(  ____ \(  ___  )(  ____ )(  ____ )|\     /|
| (    \/| (   ) || (    )|| (    )|( \   / )
| (_____ | |   | || (____)|| (____)| \ (_) /
(_____  )| |   | ||     __)|     __)  \   /
      ) || |   | || (\ (   | (\ (      ) (
/\____) || (___) || ) \ \__| ) \ \__   | |
\_______)(_______)|/   \__/|/   \__/   \_/
 
1:32 PM
if she so much bater
 
@Nerdintraining Whaaat. I was quoting Wiet
...I regret giving you the acsii generator
 
Ah ojkay
then hang on
 
Yo man you wanna be careful
If some ridiculously salty guy reports you
 
lmao
 
@Sippy because I use 11 different languages
 
1:32 PM
u might get banned from fake internet point land
 
Like our dead pirate?
 
and Java is only one of them
actually Java is 3
 
Pretty sure that already happened @Sippy
 
@Sippy i had 1 min ban yesterday^^
 
but that includes Groovy and Kotlin
 
1:33 PM
@Sippy only prime crabs have the right of speech
 
From ded pirtae guy
 
Want another? lel
 
Wow man you're really smart
 
who wants a granade up his ass
 
lies
 
1:33 PM
It's almost like programming languages aren't similar
 
NO LIES
ALL TRUTH
!!kieran2
 
similar indeed
but its not the similarities that are a pain in the ass
 
@Kieran got milk? time for pubg tonight?
 
Damn straight i do
If @Proxy comes along we should have enough for a squad
provided the guy we played with last time will be on as well
 
1:35 PM
@Wietlol But isn't this the C room where PHP is written in?
Kieran, i know enough dudes to form 3 squads^^
 
nope
just C#
 
All my doto friend got pubg aswell so we kind of moa then enough
 
jrh
Complete shot in the dark here but does anybody just so happen to have "Programming the Microsoft Windows Driver Model" (Walter Oney), 2nd edition 's companion CD , and if you do, can you see if the files in your Chapter 15 samples' devprop directory are all totally corrupted? I'd say my CD is just bad but most of the disk is fine except that. I'm curious to see if these CDs were just pressed bad at the factory or something.
 
at least... currently it is just C#
 
Why would somebody want a Nullable<Nullable<T>>? After all, Nullable...is nullable already. No need to make it more nullable.
 
1:37 PM
@Metallkiller Have a rant
 
"so you need to distinguish between a missing record, an existing record with a null value for int, and an existing record with a "valid", not null value of int "
 
Nullable's principle is different than the one of Optional though
 
If you don't get a record, you simply dont get any record. Result.Count = 0;
If you get null, Result.Count = 1 and Result[0] = null;
 
a record
not a sequence of them
also it applies to any kind of generic scenario really
 
why so?
you can do IList<IList<IList<IList<String>>>>
 
1:41 PM
ANy kind? ut that would mean I cant make a List<LIst<T>>
 
you can't use .FirstOrDefault() to distinguish between an empty sequence and a sequence with the first element which happens to have the same value as the default
 
First should return a Nullable
or Optional
as Nullable are not allowed to be used on class generics
 
Maybe is a bad name imho
 
Maybe not
 
1:45 PM
it's borrowed from Haskell
everyone using functional programming will know what it means
 
Haskell is a bad name imho
uhm...
nvm
 
jrh
@Metallkiller related -- Nullable is an immutable struct, it's not possible to set it to null. So technically the way to have a null Nullable field is to make a Nullable<Nullable<T>>, if that's really what somebody wanted...
it appears that the framework is hard wired to redirect Nullable<whatever> = <something> to Nullable.Value = something.
 
Nullable<Nullable<T>> is not allowed
 
a hypothetical FirstNullable wouldn't work for lists of Nullable<T>, so you need a non-broken Nullable
 
jrh
@Wietlol yep, you're right
 
1:48 PM
Nullable<Object> is also not allowed
because Object is already nullable
only on structs
 
jrh
I forgot that Nullable itself was restricted to only work on non-nullable types
(public struct Nullable<T> where T : struct)
 
Nullable's intention is Boxed<T>
because the boxed primitive types are objects, they are nullable
imho, Nullable does a bad job at it
 
Storing null in a int? is safer than storing null in a Java's Integer
 
why so?
 
thanks implicit dereferences
 
1:54 PM
int? also has implicit casts
public static implicit operator T?(T value)
public static explicit operator T(T? value)
 
no? you need to use x.Value
 
hmm...
nvm
read both as "implicit"
 
in Java true ? 5 : (Integer)null throws a NullPointerException (!) because instead of converting the 5 from int to Integer, it converts (Integer)null to int
 
still, safety here doesnt matter much
 
:popcorn:
@rlemon how come half of these don't exist
y u no
 
1:58 PM
🍿
 
i quit
what did you fools do to invoke the hideous wrath of Jon Clements?
 

« first day (2547 days earlier)      last day (2388 days later) »