HackerTrans
TopNewTrendsCommentsPastAskShowJobs

maticzav

no profile record

Submissions

[untitled]

1 points·by maticzav·11개월 전·0 comments

Rebrowser Patches – Patches for undetectable browser automation

github.com
1 points·by maticzav·작년·0 comments

The Math Behind Squircles

figma.com
3 points·by maticzav·3년 전·0 comments

Unleashing Genetic Algorithms on the iOS 7 Icon

blog.mikeswanson.com
2 points·by maticzav·3년 전·0 comments

User Interface Gallery

ui.gallery
1 points·by maticzav·4년 전·0 comments

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

1 points·by maticzav·4년 전·2 comments

Ask HN: Should I learn Docker in 2022?

2 points·by maticzav·4년 전·4 comments

Implementing Substitution in λ-Calculus

ucilnica.fri.uni-lj.si
2 points·by maticzav·4년 전·0 comments

SwiftGraphQL – A GraphQL client for Swift lovers

the-guild.dev
6 points·by maticzav·5년 전·0 comments

How to Be a Pirate: Quartermaster Edition

youtube.com
1 points·by maticzav·5년 전·0 comments

Start Programming in Java

notion.so
2 points·by maticzav·5년 전·0 comments

SwiftGraphQL – A GraphQL client that lets you forget about GraphQL

github.com
97 points·by maticzav·5년 전·86 comments

comments

maticzav
·11개월 전·discuss
i love the idea!

i know that https://expand.ai/ is doing something similar, maybe worth checking out
maticzav
·4년 전·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년 전·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년 전·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년 전·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.