7

What is the longest class name you ever wrote? Mine is:

AutoRenewTokenRetryOnceOnUnauthorizedAuthorizedServerHttpService

Comments
  • 4
    hope you didn't forget the `IAutoRenewTokenRetryOnceOnUnauthorizedAuthorizedServerHttpServiceProviderFactoryImplementationCollection`
  • 0
    @tosensei well there is indeed also an interface version of it, but not the factory stuff 🤣
  • 1
    @Frederick will explain later, started typing but no time anymore
  • 3
    @Frederick if he replies to you then he won't have enough time to finish off the next class name before sprint end :/
  • 0
    Sorry had a crazy weekend, @Frederick well to explain i have to break down the name and explain a little:

    It is part of a base http library I use in everything I make to make api calls really easy

    HttpServer is just a wrapper of a .Net http client that has no base adress.

    ServerHttpServer is with the base adress set to a server

    AuthorisedServerHttpService.... is with authorization handled and set. Calls made before authorization is finished will just wait.

    The above classes do also exists because e.g. the ServerHttpService is used to call the login api's to authorize the AuthorisedServerHttpService.
    They also have an interface version I*HttpService

    An IHttpService is supplied in the constructor of an abstract class CrudService, which has basic Get, Post, Put and Delete handeling.

    Now other classes extend this CrudService, e.g. LoginCrudService, UserCrudService, ProfileCrudService, in which tou define the API call with appropriate request and response models.

    Based on which IHttpService you provide in the contructor it goes to an specific base adress and handles Authorizarion.

    So when I start typing for example ServerHttpService Intelly sence wil show all the types of thosr and if i short it it will not and be really inconvenient.
  • 0
Add Comment