@gregsdennis@dotnet.social avatar

gregsdennis

@gregsdennis@dotnet.social

Husband, father of 2.
#dotnet developer, focusing on JSON tech
#TexasHockey fan (Go Stars!) in New Zealand

This profile is from a federated server and may be incomplete. Browse more on the original instance.

gregsdennis, to dotnet
@gregsdennis@dotnet.social avatar

Just a reminder that if you'd like to promote continued development of JSON tech like and others in , please consider sponsoring the .

https://github.com/sponsors/gregsdennis
https://github.com/gregsdennis/json-everything

Also goes for any project.

gregsdennis, to random
@gregsdennis@dotnet.social avatar

JSON Path RFC 9535 was released back in Feb. Since then it's been crickets. We're building a around the specification: https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/issues/521

If you want help with , come ask your questions. Open to users, tooling providers, and everyone else!

gregsdennis, to dotnet
@gregsdennis@dotnet.social avatar

I'm deprecating JsonSchema.​Net.CodeGeneration. An attempt was made ⭐, but there's something better.

https://blog.json-everything.net/posts/dropping-codegen/

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

This guy gets it.

gregsdennis,
@gregsdennis@dotnet.social avatar

@khalidabuhakmeh personally I'm happy with VS with R#.

standupmaths, (edited ) to random
@standupmaths@mathstodon.xyz avatar

I'm hosting "Mathematics: A Quick Revue" in San Francisco on Friday, January 5th. Organised by Dan Margalit and Nancy Scherich, it's running alongside the JMM but anyone is welcome! https://www.eventbrite.com/e/mathematics-a-quick-revue-tickets-744572525467

gregsdennis,
@gregsdennis@dotnet.social avatar

@standupmaths is it a revue or a review? Like are you performing sketches and dances, or are you answering the question, "Was math really worth the effort?"

chucker, to CSharp
@chucker@norden.social avatar

is easy!

var array = new[] { 1, 2, 3, 4, 5 };

There you go. An array with five items. Let’s take the first!

var first = array[1]; // returns 2

Wait what? Oh. Zero-based indexing. That makes no sense at all but sure, we’ll go with it.

first = array[0]; // returns 1

Great!

Now we want the last item… for that, just add a caret ^, because legacy! And zero-based again, I bet.

var last = array[^0]; // throws IndexOutOfRangeException

…oh.

https://sharplab.io/#v2:EYLgZgpghgLgrgJwgZwLQCUJk1AJgewDsAbATwBoYQE5DzcQBqAHwDcoEACDhKUzgLydCEAO4BtALqcA3pwCM5TgCYlAZiUAWJQFZOAXwDcAWABQZ9lzABLBMhiDuCXqXHzJJ86Zt2HQnnziAAweZhYcnMRQ9o4BrgB6IZ5AA===

gregsdennis,
@gregsdennis@dotnet.social avatar

@chucker what language are you coming from that uses 1-based indexing, and why is 0-based difficult to use?

Also, yes, as pointed out elsewhere, [^i] is [length-i], so [^0] is [length], which throws.

gregsdennis, to random
@gregsdennis@dotnet.social avatar

Updates for JsonSchema​.Net and vocab extensions.

Exposed all JSON serializers for public types. This was required to support JSON source generation in client code. No functionality updates, though, so if you're not using source gen, you can skip this one!

gregsdennis, to dotnet
@gregsdennis@dotnet.social avatar

Calling all JsonSchema​.Net (and other json-everything) users! What .Net version are you using?

There are a lot of good reasons to update to newer versions of .Net (i.e. 6).

If doing this would break you or cause you pain, I want to hear about it.

https://github.com/gregsdennis/json-everything/issues/390

gregsdennis, to dotnet
@gregsdennis@dotnet.social avatar
lowqualityfacts, to random
@lowqualityfacts@mstdn.social avatar
gregsdennis,
@gregsdennis@dotnet.social avatar

@lowqualityfacts I thought this was common knowledge

lowqualityfacts, to random
@lowqualityfacts@mstdn.social avatar

Subscribe to my Patreon for a free copy of my 100% effective gum-based workout plan.
https://patreon.com/lowqualityfacts

gregsdennis,
@gregsdennis@dotnet.social avatar

@lowqualityfacts duration of chew not specified, so this fact is actually high quality. Unsubscribing.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines