-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First impressions #4
Comments
Hey @martincostello thank you so much for the feedback and perspective here! We were hoping for information like this. @kfcampbell and I are going to have a look at what you posted and chat about it to see what we can apply and change. Please keep this perspective coming if you have the time. The whole octokit community will be loads better because of it! ❤ |
Hey @martincostello, We've been looking into your thoughts and comments. Thanks again. Just a quick update. not building. We had some ignore patterns that were colliding with our generated endpoints and models - those should be fixed now. Naming This is something we'll be tweaking - we went with some plausible defaults for generation - we're definitley going to drive to using PascalCase for publics, camel for private members, and so on. We'll also be implementing linting as a CI gate to prevent deviation. Namespacing Too right. That has to do with the way things nest, object hierarchy, and the tree walking that has to be done to generate things. Hopefully we can simplify this as we discover more... super good call out though. dictionaries/indexers We're still looking into this. indexer parameters are all called position 100%, hopefully we can come up with some formatters that will get this more "right" - wed definitely like to favor expressiveness - especially when it comes to the basics like this! RepositoryVisbility Missing enums. Yikes, we're still hunting this one down as well. Thanks for the head's up. |
Thanks for taking a look. Let me know when you've either pushed something to NuGet or pushed a bunch of changes worth re-review and I can take another look at it in one of the repos I use Octokit in. |
Hey folks - I've taken another look at things using the Octokit.NET.SDK NuGet package, and had another go at migrating one of my apps over to use it. Here's some additional observations from the partial changes I made in this commit.
|
It's interesting to watch this repository I also tried to do this based on the GitHub OpenAPI specification, but dotnet cli can't build it within the standard free worker on CICD: |
Hey folks,
I just took a quick look at pulling this into an existing application of mine and I thought I'd just give you some initial feedback. I didn't get very far as it was hundreds of compiler warnings, so just tweaked a small part of it to get a feel for things.
I realise it's very early and some of it might be things you already know about, so no worries if I'm not telling you anything new.
Also this is intended to be neutral feedback on first impressions, don't take it as positive or negative, just "huh, that's different" observations.
ALLCAPS
or have underscores in them. Maybe for a native .NET experience they match the API too closely and look out-of-place for the typical .NET library API surface and need some pre-processing being being emitted as code?Foo.Item.Item.Bar
)Dictionary<K, V>
type, rather than it just being deferred execution collecting values until you get to making the actual request.position
. Intellisense when using the API would be easier to reason about if they had the appropriate names (owner
,repo
,number
) etc.RepositoryVisbility
which in Octokit encapsulates the possible public, internal and private values.Here's an example of some of the above in a single snippet of code using the generated API instead of Octokit.net:
The Octokit equivalent of the above was:
I hope the observations are useful.
The text was updated successfully, but these errors were encountered: