React Native is a godsend.
React Native is a godsend.
Something which has nothing to do with the language.
Here's how you do it with a popular Swift lib:
let json = JSON(data: response)
if let userName = json[0]["user"]["name"].string{ .... }
let parsed: AnyObject? = NSJSONSerialization.JSONObjectWithData(data,
options: NSJSONReadingOptions.AllowFragments,
error:&parseError)I'm sure you get used to it. Every language looks horrible the first time, then you learn to live with it and maybe love it, but on first glance that looks pretty awful.
Java's problem is that C# exists and is a more expressive language.
If you compare it JSON.parse(x) or fromJSON x it's just awful.
okay here comes a function definition get ready
function MyFun() begin
return 1
end begin
end MyFun
end function okay we are doneI also don't get how a JSON parse takes half a day. If you know the language it shouldn't take that much time. If you don't know the language then a complaint wouldn't be intellectually honest would it?
Reacts philosophy is to learn once write everywhere. If you know reactjs then it is just as easy to write react native as it is exactly the same (clear and concise) but with different api's available. The instructions are written in javascript the rendering can be done in dom, obejective-c, java.. etc.etc.
Would it be intellectually honest to place a 30% snark if you don't know the language?