Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Poor Design #9

Open
NVentimiglia opened this issue Aug 14, 2016 · 2 comments
Open

Poor Design #9

NVentimiglia opened this issue Aug 14, 2016 · 2 comments

Comments

@NVentimiglia
Copy link

Here are some problems I ran into trying to do a simple address validation.

  • None of the Shippo properties are typed. This makes basic data entry impossible without referencing the documentation and is very error prone.
  • Examples sometimes use a factory method and sometimes use an object initializer. The first shipment example uses an object intializer while the validation uses a factory method. which one is correct ?
  • Address validation method takes a hashtable argument. Why am I responsible for converting your objects into hashtables ? Why not use an address object ?
@NVentimiglia
Copy link
Author

#11

@HakanL
Copy link

HakanL commented Sep 7, 2017

I made a fork where I re-wrote this to use .NET Standard 1.3 and started to clean up the interface as well (not using Hashtables, etc). Check it out: https://github.com/HakanL/shippo-csharp-client

Also uploaded to NuGet: https://www.nuget.org/packages/Haukcode.GoShippo

I'm in the process of testing it out so I'm sure there are a few issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants