this post was submitted on 17 Jun 2023
16 points (94.4% liked)
C Sharp
1528 readers
1 users here now
A community about the C# programming language
Getting started
Useful resources
- C# documentation
- C# Language Reference
- C# Programming Guide
- C# Coding Conventions
- .NET Framework Reference Source Code
IDEs and code editors
- Visual Studio (Windows/Mac)
- Rider (Windows/Mac/Linux)
- Visual Studio Code (Windows/Mac/Linux)
Tools
Rules
- Rule 1: Follow Lemmy rules
- Rule 2: Be excellent to each other, no hostility towards users for any reason
- Rule 3: No spam of tools/companies/advertisements
Related communities
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think that would be great! I started working on a Azure Functions bot and started a DI dotnet client that I put on nuget https://github.com/ydinkov/Lemmy.Net
It's super wip right now, but Ill be adding more models, tests and error handling.
Just out of interest, why not use refit for something like this? You could get a basic client going much faster - unless there's some specific behaviour you want for the client (which would require painful customisation with refit).
I've come to be quite a fan of refit recently purely for how quick you can get a basic, working client
I like refit too! It's super nice, but very quickly i realised the API does some weird undocumented stuff and isn't very consistently implemented. I feel more comfortable doing the boilerplate my myself (chatgpt helps) while i figure out the funk.
Ah, that's fair - haven't encountered anything weird with it yet. I can imagine with chatgpt it's become much easier though - I need to start giving AI tools a try. Do you have a particular set up for using chatgpt with rider or anything?
No setup at all, just strip-mine the sourcecode for the existing TS client, have it generate curl requests. Run the curls, ask it to create POCOs for the results, and adjust.
@[email protected] wrote a pwsh module for lemmy and can attest to the troubles =D