Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> reverse engineering existing clients and servers by inspecting their requests and responses.

What a strange process... why not read the source code of an open source working library (easy to test, run a client made by someone else on its server, and vice versa) in a language close to the target?

Why not use then those tests as a way to verify your own work after?

FWIW I'm using WebDAV, both with clients and with my own self hosted servers, on a daily basis and... it works.



Author here, we wanted a clean room implementation and our own e2e test suite. There are some conformance tooling (like Apples calendar test suite) that we partially used (it's... very comprehensive), but otherwise we wanted to validate our library against existing implementations (manually, for the most part) and then write tests against our own implementation (for the interfaces, mostly to prevent regressions). We created a little CLI tool ("validav") that can spin up a mock server or expose the client interfaces to help with manual testing.

One niceish thing about WebDAV/CalDAV is it's pretty set in stone for now.


> One niceish thing about WebDAV/CalDAV is it's pretty set in stone for now.

I don't know if you've ever heard "Latin is a dead language"; many people think that statement is a somewhat negative-sentiment one, amounting to something along the lines of "there's no good reason to learn Latin, it's dead", but I've heard that it's actually supposed to be a positive-sentiment statement, something like "we can have confidence that contemporary interpretations of this text haven't changed in the last ~1800 years because the language itself stopped changing around then".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: