|
Gosh, and yet I'm not the one complaining for no reason when I could just keep scrolling.
Or creating an account just to say that. Get a job.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Let's be honest here, all you ever do in the forums is whinge
|
|
|
|
|
Says the guy that created an account specifically to whine.
Pardon me for saying so, but you don't seem very bright. Maybe you're just having an off day.
Unemployment will do that.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: Says the guy that created an account specifically to whine.
Myself I just figured that person was not brave enough to use their real handle.
|
|
|
|
|
I figure if on a Monday - regular or not - if he has time to be creating new accounts and posting on codeproject just to complain about someone he probably doesn't have anything more productive to do - on a Monday.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
lol...ok.
But it is Turkey week so maybe the person has the week off (probably where they just phone it in anyways.)
|
|
|
|
|
Yet you still read it...because it may be over your head does not make it rubbish.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
He finally bumped out. I don't think he expected me to stuff him in a locker.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: He finally bumped out. Good riddance.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Lets be honest here, you are always whinging about something, or, it's 'look at me, look what i'm doing, aren't I wonderful!' It gets very tedious. Go back and look through your posts and tell me where you're not whinging or self gradiosing.
|
|
|
|
|
As a counter example to your assertion right now I'm not doing any of those things. Right now I'm making fun of you.
Let's be honest here. You need a job. All you're doing is whining.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 20-Nov-23 13:28pm.
|
|
|
|
|
|
honey the codewitch wrote: Does Microsoft already produce a JSON entity framework type thing that gives you typed access to JSON data?
Edit: NVM, I finally found one. Microsoft didn't write it, but it's much more ambitious than anything I'd come up with.
Rather curious about that.
Transmitting data over the wire guarantees that there is no type. Because of course type is really an artificial construct that is enforced by code (compiler, loader, etc.)
One can create data constructs that add type. For example (not a viable one but good enough.)
"type": "int",
"DValue1": "13"
"type": "string",
"DValue2": "xxx"
But is has the same problem if one doesn't do it in that the 'type' itself might not be known at the other end.
So what is the solution that you found?
|
|
|
|
|
JSON Schema, like XML Schema allows you send something like type information over the wire. Like XML Schema it operates and validates in lexical space rather than value space, but it's good enough to impose "typed" validation on one's data.
But even if you didn't send it, creating hard typed JSON entity objects on say, the C# receiving end allows you to validate that JSON that came from the wire, and apply strict typing to it via the properties on the generated entity objects.
TL;DR version: The solution is similar to XML.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: I finally found one.
You said that so I was hoping you would post the link.
honey the codewitch wrote: receiving end allows you to validate that JSON
Ok but of course any deserialization for any message type is going to apply some validation. And myself I would likely code some other validation myself.
Before using any other validation I am also going to want to see what a failure looks like. I know XML failures can be miserable to figure out until one has seen enough of them to know what to look for.
And then there are microservices where one cannot just drop the message on the floor because of a validation error. So one needs to be sure an intercept is possible.
|
|
|
|
|
|
|
|
Update: It was my fault and I feel like an idiot. I went over my code with a fine tooth comb before posting this, and I could have sworn it wasn't me. It was, and I just somehow missed it. My fault.
Microsoft has this tech called the CodeDOM that is an object model for an abstract syntax tree representing generic code independent of language. It can render the trees to C#, VB.NET or another .NET language like perhaps IronPython or whatever - anything that can be used with ASP.NET, because that's where Microsoft employs this tech.
It's ancient code and should be battle tested at this point.
I found a bug with their VB code renderer:
This is how doc comments end up when declared on a type. Everywhere else they are fine. Only on the type declarations are they messed up.
But because of that, Rolex generates incorrect VB doc comments, and there's little I can do about it, because it's not my code that is broken.
I might be able to do a workaround but it pains me to even think about given what it requires.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 19-Nov-23 8:12am.
|
|
|
|
|
Oh well, even Homer nods.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
honey the codewitch wrote: It's ancient code and should be battle tested at this point.
Err...facts not in evidence!
honey the codewitch wrote: This is how doc comments end up when
With doc comments? That would of course be the least tested.
|
|
|
|
|
Well as per my edit, it turns out the problem was with my code.
I don't assume other people's code is the problem until I feel I've exhausted the possibilities of it being my code.
However, this time I missed it despite my efforts.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Wordle 883 4/6
⬛⬛⬛⬛🟩
⬛⬛⬛⬛🟩
⬛⬛⬛⬛🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
⬜⬜⬜⬜🟩
⬜⬜⬜🟩⬜
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|