Re:Swift: Google’s Bet on Differentiable Programming
by tmpz22 on Thursday April 09, 2020 @03:05PM
(#22826022)
Ya it is UI bound (though you’d think that’s where a lot of the documentation would be!). I’d also say JSON handling and other data handling aspects are poorly documented, would you agree?
Re:Swift: Google’s Bet on Differentiable Programming
by dep_b on Thursday April 09, 2020 @03:18PM
(#22826164)
I agree Codable is one of the worst ways of dealing with JSON apart from manually parsing through dictionaries. I mean It Just Works on a very clean and consistent API, but if people started to mix snake_case with PascalCase, return "1" or any other garbage shit people write when they only thing they have to care about it JS clients then you're typing a lot of unreadable boilerplate.
Since we have custom attributes I will investigate soon if there's a nice framework around that can make it work a bit like the usual JSON libraries in for example C# work.
But anyway that's not a Swift problem. Swift itself is pretty easy to get into.