How I Start: Go
This article turns into the creation of a small web app, so while not exactly relevant, I'll ask here: are there any good form validation libraries for Go?<p>I ended up using this approach:<p><a href="http://www.alexedwards.net/blog/form-validation-and-processing" rel="nofollow">http://www.alexedwards.net/blog/form-validation-and-processi...</a><p>This is straightforward but also manual and low-level.<p>In comparison is Python's formencode library which is declarative and high-level:<p><pre><code>    class Registration(formencode.Schema):
        first_name = validators.ByteString(not_empty=True)
        last_name = validators.ByteString(not_empty=True)
        email = validators.Email(resolve_domain=True)
        username = formencode.All(validators.PlainText(),UniqueUsername())
        password = SecurePassword()
        password_confirm = validators.ByteString()
        chained_validators = [validators.FieldsMatch('password', 'password_confirm')]
</code></pre>
I thought about how you could design a library like this in Go, but couldn't think of a way that did not end up using reflection or plain maps, which defeats the purpose of using static typing.<p>Is this lack of validation libraries due to the lack of people writing web apps with the language or is it a problem of expressiveness with the language itself?<p>I ran into this issue several times when trying to write a web app in Go. A lot of the basic infrastructure is there, but the niceties are missing. The template language, for example, is great but lacks something as basic as inheritance without kludges. There are other templating languages, but they don't feel quite there. Got the same feel from the ORMs. Hats off to those who are doing work in it in spite of this, but it seems there's a way to go before the language is really usable for web apps.