« first day (3196 days earlier)      last day (1751 days later) » 
06:00 - 13:0014:00 - 21:00

2:02 PM
I'm on holiday @CaptainSquirrel
I've been away since Sat
 
mr5
@CaptainObvious we are using a similar system Monkey Cache. It uses Newtonsoft's JSON serializer under the hood. Good for storing GET responses.
 
@Harry ahh i see
nice for some
 
hi, why does the switch on my async result never get reached i have this var identificationData= await _domain.GetIdentificationData(id); and a switch on the result
but as soon as it comes back to the await
the api returns that its null
 
@tahtoh are you able to place a breakpoint inside your GetIdentificationData?
 
yeah
that functions
call the repository functions
which returns null
 
mr5
2:16 PM
@tahtoh happened to me once. I figure out it was the debugger issue. Try printing the value in the console
 
So GetIdentificationData returns what it should?
as in the variable you return in that function is populated correctly?
 
nah thats the thing the repository returns null
GetIdentificationData doesnt return a thing
it stops there
 
Then the logic inside it is fubar?
 
normally it works fine when there is a result
but when i added logic for when its null
so that the api returns a custom message
it just breaks
 
mr5
@CaptainSquirrel learned new word today
 
2:21 PM
@mr5 and what was that new word?
 
mr5
fubar
 
You learned that or i did?
 
mr5
I did
 
mr5
I thought you were referring to "foo" "bar" placeholders
 
2:22 PM
It's actually an acronym
Stands for F(ouled) Up Beyond All Recognition (or Repair)
Military in origin
Same with snafu
 
mr5
but Google recognizes it as a word
 
It's become part of the argot
Adopted into the lexicon
 
mr5
argot
argot = jargon. got it
lexicon = dictionary. got it
why is there a lot of English words I still don't know til today
 
Snafu stands for "Situation normal - all fucked up"
Because English is terrible for stuff like that
 
mr5
2:29 PM
Do you think writing an APIs for other developers should be put into another field of its own?
I often stumble on APIs that is badly written, highly abstracted, learning curve is ridiculously high and the list of negative things goes on and on.
 
I didn't know about snafu tbh
 
mr5
An API writer is a technical writer who writes documents that describe an application programming interface (API). The primary audience includes programmers, developers, system architects, and system designers. == Overview == An API is a basic library consisting of interfaces, functions, classes, structures, enumerations, etc. for building a software application. It is used by development teams to interact with and extend the software. An API for a given programming language and system may consist of system-defined and user-defined constructs. As the number and complexity of these constru...
Oh there is an official term for it.
 
Oh a technical writer
 
mr5
But those service producers doesn't seem to hire good API writers
 
I thought you were talking about writing an API and was kinda confused
 
mr5
2:34 PM
oh wait
wrong
how the hell are you going to hire an API writer that writes something in document if they didn't create it?
> About 60% of the time spent in the writing process consists of analyzing and understanding the source code and planning the document(s). The remaining 40% of the time would typically be spent writing and reviewing the document(s). It is often the case that the analytical, planning, and writing stages do not occur in a strictly linear fashion.
I doubt this kind of job exists
The one who wrote the code is the API writer
...analyzing and understanding the source code what if the code is for Chemists or any specialized science branch? Shouldn't they also have a background knowledge before understanding the source code and validate it.
Oh. There are no references. I shut my fingers
 
2:52 PM
its going to be a person who sits on the developers head
and ask him questions
its like people who write requirements from clients
 
mr5
3:03 PM
so there is no official word for "programmers who wrote API for other developers" yet since API writer means a technical writer.
 
An API writer is a 60% waste of money
 
mr5
A sum of Google APIs is really really badly written although props for their documentation. But most of the time, when you start to use it, your code would start to get messy. One may decide to create a wrapper out of it just for the sake of hiding dozens of classes and parameters.
I admire how most of the NuGet packages I used (not including bindings for iOS and Android) are easily understandable and learning curve is pretty low.
I think it's fun to tell things about your code to someone.
 
i love google docs because at least they have an export button
they are so comfy
 
mr5
They really put a ton of effort documenting stuffs. Too bad, their "programmers who wrote API for other developers" doesn't do really well.
 
@mr5 what would you prefer, an API that is great to work with and shite documentation
or shite api to work with and great documentation
 
mr5
3:14 PM
I prefer an API that I can understand with little or not at all looking at their documentation.
Examples: Xamarin.Essentials, Newtonsoft's JSON serializer, System.Linq (is this an API?), Monkey Cache, PropertyChanged.Fody, ...
 
What exactly is Monkey cache meant to do
 
mr5
So, part of writing an API is researching and comprehensively understanding about this specific thing. If other developers who uses your API also spends the same or comparable amount of time as you did, you suck at doing your job.
@CaptainObvious I basically use it only for storing GET responses with expiration. For example, a search query result in your search box.
I make a wrapper out of it. Exposing only the .Add, .Remove, .Get, .ClearByKey, .ClearAll
 
Anyone know if there is an inversion of the null coelese operator? Like "if x is null, return null, otherwise evaluate this expression"? I can of course do testing and if statements, but syntactic sugar is always nice.
 
mr5
For example, if you want to store the response of "products?categories=shoes&page=1&pageSize=10". You may want make that query as a key and its value the response. Ez pz
Store it for like 5 minutes or so
 
3:44 PM
@mr5 Kind of, but null-safe dereferencing only works for callable objects on that type. I need to return an expression
 
mr5
can you give us a glimpse of how it looks like?
 
posted on July 17, 2019 by Phil Haack

In my last post, I showed how to flow claims from an external identity provider to your application. My post walks through how to bring over the claims every time the user logs in. But why would I want to do this?

 
Here's an MVCE of the concept.

double? dbl1 = null;
//dbl1 and dbl2 are double?'s
double? dbl2 = (dbl1 == null) ? null : (double?)Math.Pow(dbl1.Value,5);
 
Is there a good free alternative to Team Foundation Server? A version control server that handles things like bug reports and team assignments?
 
I can't call Math.Power directly from the double itself, so dbl1?.Math.Pow() doesn't work
 
3:50 PM
@Hypersapien Git?
 
I wasn't sure what else the git server handled besides just version control.
 
mr5
@Hypersapien You're looking for GitTea
 
Gitea?
 
mr5
yeah
gitea.io
It's like an open source version of GitHub
 
Cool.
 
mr5
3:52 PM
Wait. It GitHub opensource?
This is the motto of GitHub: "Where open source communities live · GitHub"
Below the Google search result: "...GitHub is closed source"
@Sidney make it an extension then
 
Bummer. I was kinda hoping something like that would exist already. Oh well, extension it is.
 
mr5
I don't think it's kind of a good idea to make that as an extension though ^^
 
Evil code and all that?
(bear in mind, I'm not actually working with doubles? it's just easier to explain that way)
 
mr5
what? noo!
@Sidney ugh for the sake of other developers?
 
Bold of you to assume other devs will see my code :)
 
mr5
3:59 PM
I always don't want to be judged by other developers.
"This guy's code is fucking ridiculous, lemme search him in SO and downvote all his posts"
 
Any ugly code you write should have comments to explain why its so ugly
I.E. Feature x only works with the code like this etc etc
 
mr5
I am working on an IT solution so I always assume other devs would see my code and judge me for that.
 
For the moment it's internal, but I do see your point about extensions.
Which brings me back to wishing this were just part of the framework.
 
mr5
Well, if you're making an extension for a type other than "primite" types, then go for it.
 
 
mr5
4:03 PM
I just feel it's not right to create an extension for those "primitive" types.
 
4:20 PM
Realistically if I did it it'd be an extension method that takes a nullable object and a labmda and returns the result of the lambda, but that's not great either.
 
4:42 PM
Woah :D
 
big brain moment
should i call a method in a class "attempt"
no i shant
 
 
3 hours later…
user10864482
8:02 PM
good afternoon
 
8:12 PM
Aaaaaaaaaaaaaaaaagh
That moment when you get tortured by your family, when are visiting, "son when are you going to bring a wife home", "Son, I want my grandchildren......" And the K.O phrase "Son,......it doesn't matter if you are gay or not you can always adopt....".
 
@CaptainCthulhu are you gay?
Why would they start with the other 2 first?
 
Shall I finds a random wife???, because my parents questing my sexuality is creepy
 
or just running the bases?
ahh ya running the bases
I would argue that every wife is random >_<
 
@juanvan well this talk about getting a wife has been going for the last 2 years, (we marry young in or family), and I was avoiding it.
 
Ya most of my aunts/uncles grandparents were married before 21
I got married at 34
 
8:21 PM
Same here, I have a younger sister who has a child now
 
said no to babies my Whole Life.. and now have 2
 
LOL ya one of those things
 
You say, but fate has another say in every matter
 
But it's been worth it, the waiting and everything
yep that it did
 
8:23 PM
Honestly I don't feel I am responsible enough to have a family, sigh
 
you'll figure it out, it's human nature to succeed
 
user10864482
" it's human nature to succeed". Yes but no.
 
user10864482
@SamuelWakeman are you there?
 
8:43 PM
It is tho, if we knew we wouldn't succeed we won't try
 
Unless we're just stubborn
 
06:00 - 13:0014:00 - 21:00

« first day (3196 days earlier)      last day (1751 days later) »