2
piperguy
81d

I have this love-hate relationship with strong typing.

Right now, the types are shared between:
Postgres <-> DB Data Models <-> GraphQL <-> TypeScript <-> MobX-State-Tree

Comments
  • 3
    In which case strong typing is very much a help to prevent un noticed mistakes.

    Of cause, you will need good error handling and testing and might look at auto generated type classes to make it easier to keep in sync.

    Especially if many people are involved and you might have multiple parallel task being developed.
  • 0
    Thank god for good old PHP frameworks, so you only have to maintain types in DB and ORM model. Or even better just in ORM model in case of using Doctrine Migrations.
Add Comment