« first day (3946 days earlier)      last day (985 days later) » 

12:47 AM
Hi folks, I wonder why Asp.net Core teams did not defined "[controller]" as either public static readonly string field or an enum member?
"[controller]" is a string literal that is prone to error and any typos cannot be detected at compile time.
@Squirrelkiller
 
 
1:14 AM
Mr. Five, how are you today?
Philippines got 1 gold medal.
 
 
2 hours later…
3:20 AM
f**k covid-delta
 
 
3 hours later…
6:18 AM
[Squirrel in Training] Also GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
6:55 AM
posted on August 03, 2021 by Scott Hanselman

I used to call this technique "type tunnelling" and noted its use in XML in 2005. When you are using a strongly typed language but instead your types are stringly typed, you are passing strings around when a better type exists. Here's some examples of stringly typed method calls: Robot.Move("1","2"); //Should be int like 1 and 2 Dog.InvokeMethod("Bark"); //Dispatching a method passing in a st

 
[Squirrel in Training] @JoshKitchens One is always creating more work than it's worth in programming usually.
[Squirrel in Training] Will you ever change the underlaying 3rd party libraries?
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] No? - Just expose them, but be aware, if they change you need to change the other part 2.
Yes? - Don't expost them.
Maybe? - Don't expose them, cuz else you are tied to hard to them and see the no part.
 
7:13 AM
you have to ask yourself / your team one question:
what is the benefit of having those separated layers?
if you dont know the benefit of your standards, your standards will always seem pointless, tedious and more work than is worth
if you do know the benefit of your standards, then you can evaluate if it is worth the work
as for your layers, I do use them... at work, we used to use more layers, but eventually decided to throw some out
 
 
2 hours later…
8:55 AM
[Squirrel in Training] sadface back in office
[Squirrel in Training] Well put wiet
 
PUT /well HTTP/1.1
Host: global.logic.net
 
9:16 AM
o/
I have a question regarding REST api per c# webapi
 
ok, cool story
 
the cool part is yet to come
 
slowpoke :p
 
because I have a hosting package from Vimexx, it now contains php REST api scripts
However, I prefer C#
Now I know how to set the php scripts on my webhost, but how do I set the C# WebApi active?
The program has to be ran I suppose, but how would my host server do this
Ok I just read I have to host it per Azure
Too expensive for now
 
9:45 AM
[Squirrel in Training] Host with azure functions
 
I see
I don't have that, but I already have paid for the host so oh well
 
[Squirrel in Training] azure funcitons and azure static app supposed 2 be super cheap
 
but my hosting package doesn't have it and im not going to pay for two hostings
they got all other kinds of stuff however
 
10:04 AM
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] oh seißa
noch ein niederländer ;O
 
sorry I don't do autographs
 
 
1 hour later…
11:22 AM
if vimexx provides you with a vps, then you can just install IIS
that is how we used to host our applications
now its all serverless except for the legacy stuff
 
12:22 PM
I always get amazed when reading the following code.
    class ActionResult<T>
    {
        public T Data { get; }

        private ActionResult(T t) => Data = t;

        public static implicit operator ActionResult<T>(T t) => new ActionResult<T>(t);
    }


    class Program
    {

        static ActionResult<string> Say() => "Hello World";
        static async Task<ActionResult<int>> GetId() => await Task.FromResult(100);

        static async Task Main()
        {
            string greeting = Say().Data;
            int id = (await GetId()).Data;
 
[Squirrel in Training] you're easy to impress
 
This code teaches me how the ActionResult works.
How to make me hard to get amazed?
 
12:46 PM
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] How to make you hard?
Drop by in discord and check out roels messages 😏
 
1:08 PM
visual studio ignoring my breakpoints is pissing me off
 
it's only for one page though 🤔
symbol status is "skipped loading symbols"
 
1:23 PM
Oh that can b cuz release
 
the box is set to "debug" if htat's what yu mean
so it seems to be a solution thing, but the objects don' thave the problem
nope nvm it's just the one page
I just noticed something here... "Another debugger has registered itself as the Just-In-Time debugger. Fix by enabling Just-in-time debugging or running Visual Studio repair"
 
1:43 PM
Q: how does ActionResult work?
A: it doesnt, just avoid using it.
 
mr5
1:53 PM
ActionResult is for HTML thing
 
still
no use
 
 
5 hours later…
6:30 PM
Folks, I can add a letter to a literal number which will make the number a certain type.
42f makes a float. 42d makes a double.
Is there a complete list of such modifiers?
 

« first day (3946 days earlier)      last day (985 days later) »