Live data from Hacker News

Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

github.com

1–10 of 54 posts

Re: Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

#4
The one issue I see with bringing Flux/Redux to iOS is that iOS shipped with unidirectional data flow from day 1 with KVO: view => IBAction on controller => model method (incl. any API or CoreData work) => controller is notified of changes via KVO => rerenders view via a pure function. I don't think it was struggling for a new, clean solution here in the same way the web was.

That said, for people used to the React patterns, this could be a somewhat easy way to make the transition over to iOS programming! So that's cool :D

Re: Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

#6
I found the following repo example of something React inspired too, but using f#. There's also a youtube video with a great explanation of the concepts on the repo. This guy also created an IDE for F# for the iOS. It is a great resource too... github: https://github.com/praeclarum/FunctionalMeetup youtube video: https://www.youtube.com/watch?v=_Qk7ZcyYZwA ios app: https://itunes.apple.com/us/app/continuous-.net-c-and-f-ide/...

Re: Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

#8
This feels a bit like a solution without a problem, or maybe more like a giant sledgehammer-sized solution to 10 or 15 smaller ant-size problems.

I guess I'm just not sure what advantage I'd get by taking a (frankly) mind-bending approach to building an iOS app instead of following normal iOS conventions. And just to be clear I've done React development on the web, and I've thoroughly enjoyed it. Modern web development is mind-bending enough that React (and other approaches) felt like they brought some sanity to the table, but this doesn't feel like that. It feels overly complicated for iOS development, which feels like a largely solve problem.

What am I missing? I'm really not trying to be critical, I'm really trying to understand why you'd recommend I use this approach over standard iOS patterns. In the 8 years I've been developing for iOS I've never felt like I needed anything I've seen in here (or in any of the getting started tutorials I read through), but I'd like to try to see what I'm missing here.

Re: Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

#9

I'm one of the author of the framework :) please let me know if you like our approach to apps development we internally use it for creating our own apps at Bending Spoons ( http://bendingspoons.com )

This is great! Is there a way to use with an existing project?

Re: Katana – Modern Swift framework for creating iOS apps, inspired by React/Redux

#10
post #7

Looking cool, I think iOS development in general could learn a lot from React + JS ecosystem. :+1:

What problems do you think the React + JS ecosystem could solve in the iOS world that haven't already largely been solved by standard iOS development approaches? I'm legitimately asking here - I been developing for iOS for years (and more recently with React from time to time for the web), and I've never once felt that standard iOS conventions/patterns were lacking compared to the React/JS ecosystem, but I would like to understand your point of view.
Post reply on HN