New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample that shows AFNetworking in RM #9

Open
amirrajan opened this Issue Aug 22, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@amirrajan
Owner

amirrajan commented Aug 22, 2017

No description provided.

@andrewhavens

This comment has been minimized.

Show comment
Hide comment
@andrewhavens

andrewhavens Aug 23, 2017

What about AFMotion? Is the point of this to show how to use the CocoaPod or how to do networking?

andrewhavens commented Aug 23, 2017

What about AFMotion? Is the point of this to show how to use the CocoaPod or how to do networking?

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Aug 23, 2017

Owner

My gut says to push everyone to just use AFNetworking, but I don't have a clear view of how terrible AFNetworking looks in ruby (and how much better it looks in AFMotion). At a minimum we could start with "Here's what AFNetworking looks like in Ruby, if this makes you die a little bit inside, here is what it looks like using AFMotion."

Thoughts?

Owner

amirrajan commented Aug 23, 2017

My gut says to push everyone to just use AFNetworking, but I don't have a clear view of how terrible AFNetworking looks in ruby (and how much better it looks in AFMotion). At a minimum we could start with "Here's what AFNetworking looks like in Ruby, if this makes you die a little bit inside, here is what it looks like using AFMotion."

Thoughts?

@andrewhavens

This comment has been minimized.

Show comment
Hide comment
@andrewhavens

andrewhavens Aug 23, 2017

I think examples of both would be valuable. An example of how to use the AFNetworking CocoaPod and translating some Obj-C into RubyMotion would be a good tutorial in itself, but also documenting how to do it with AFMotion would give an example of how much nicer it can be using a RubyMotion gem.

andrewhavens commented Aug 23, 2017

I think examples of both would be valuable. An example of how to use the AFNetworking CocoaPod and translating some Obj-C into RubyMotion would be a good tutorial in itself, but also documenting how to do it with AFMotion would give an example of how much nicer it can be using a RubyMotion gem.

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Aug 23, 2017

Owner

Cool. I think that would be a great narrative. 👍

Owner

amirrajan commented Aug 23, 2017

Cool. I think that would be a great narrative. 👍

@hboon

This comment has been minimized.

Show comment
Hide comment
@hboon

hboon Jan 28, 2018

Collaborator

AFNetworking is good and AFMotion is great, but raw NSURLSession isn't that either too:

POST with NSURLSession in RubyMotion:
https://gist.github.com/hboon/5dc789454242e65434681b937ebc47e9

GET with NSURLSession + Basic Auth in RubyMotion
https://gist.github.com/hboon/15c093ec315019919e0a9185b2312f11

Collaborator

hboon commented Jan 28, 2018

AFNetworking is good and AFMotion is great, but raw NSURLSession isn't that either too:

POST with NSURLSession in RubyMotion:
https://gist.github.com/hboon/5dc789454242e65434681b937ebc47e9

GET with NSURLSession + Basic Auth in RubyMotion
https://gist.github.com/hboon/15c093ec315019919e0a9185b2312f11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment