I would say 50 lines of header + 500 lines of. I think writing a JSON parser should be perfectly fine, it's quite a simple format (while imperfect and probably way overused). But if you can just do that anyways, the actual tests are less important. I've heard it described before that half of the benefit of unit testing in these languages is forcing yourself to structure code in testable modules with clean interfaces. Unit tests are a lot less important if you have a good type system and compiler checking things already. IMO, they're much more suited to building apps in dynamic languages. But if you don't care to do that, nothing's as fast and clean both to develop and for the end-user to use as every platform's native framework. Yup, it'll be a major pain to ever port to another platform. Writing GUI apps against the native framework. Maybe then it's okay to trade off raw speed for not handing a ton of formatting and syntax edge cases. I guess it's sort of okay if you expect to only be reading your local config files versus arbitrary web content. Rolling your own JSON, XML, etc parsers raises some eyebrows. Upvoted for a number of interesting and unconventional opinions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |