HackerTrans
TopNewTrendsCommentsPastAskShowJobs

maticzav

no profile record

Submissions

[untitled]

1 points·by maticzav·11 bulan yang lalu·0 comments

Rebrowser Patches – Patches for undetectable browser automation

github.com
1 points·by maticzav·tahun lalu·0 comments

The Math Behind Squircles

figma.com
3 points·by maticzav·3 tahun yang lalu·0 comments

Unleashing Genetic Algorithms on the iOS 7 Icon

blog.mikeswanson.com
2 points·by maticzav·3 tahun yang lalu·0 comments

User Interface Gallery

ui.gallery
1 points·by maticzav·4 tahun yang lalu·0 comments

Ask HN: Why are there so many spiders in Europe?

1 points·by maticzav·4 tahun yang lalu·2 comments

Ask HN: Should I learn Docker in 2022?

2 points·by maticzav·4 tahun yang lalu·4 comments

Implementing Substitution in λ-Calculus

ucilnica.fri.uni-lj.si
2 points·by maticzav·4 tahun yang lalu·0 comments

SwiftGraphQL – A GraphQL client for Swift lovers

the-guild.dev
6 points·by maticzav·5 tahun yang lalu·0 comments

How to Be a Pirate: Quartermaster Edition

youtube.com
1 points·by maticzav·5 tahun yang lalu·0 comments

Start Programming in Java

notion.so
2 points·by maticzav·5 tahun yang lalu·0 comments

SwiftGraphQL – A GraphQL client that lets you forget about GraphQL

github.com
97 points·by maticzav·5 tahun yang lalu·86 comments

comments

maticzav
·11 bulan yang lalu·discuss
i love the idea!

i know that https://expand.ai/ is doing something similar, maybe worth checking out
maticzav
·4 tahun yang lalu·discuss
Thanks! That helps a lot. Can you maybe recommend any good starting points besides just searching the internet for each of the keywords you mentioned?
maticzav
·5 tahun yang lalu·discuss
Thank you for adding the links!

The main difference between these clients and SwiftGraphQL is that SwiftGraphQL tries to abstract away GraphQL in favour of Swift language feature.

`relay-swift`, for example, relies on query strings which doesn't bring type-safety to your code;

`graphaello` is indeed very similar and I've tried using it before creating SwiftGraphQL. One of the goals of SwiftGraphQL was to let you easily separate the model from your queries. That's why we let you do complex logic in the selection itself. Otherwise, you'd have to first create a utility struct and then translate it into a model-type. I think that's the main difference between graphaello and SwiftGraphQL

Thanks again for sharing the links!
maticzav
·5 tahun yang lalu·discuss
SwiftGraphQL also generates API structs from the schema.

Maybe you are referring to generating the model from the queries. The problem we had with that approach was that it's hard to reuse the generated structures in your application model. You can read more about the idea here:

https://github.com/maticzav/swift-graphql#what-are-the-pitfa...
maticzav
·5 tahun yang lalu·discuss
SwiftGraphQL was actually inspired by Elm GraphQL! Dillon - the creator of Elm GraphQL - even helped me understand a couple of concepts he used in that library that we also use in SwiftGraphQL.