|
|
|
|
|
by dragonsh
2491 days ago
|
|
Probably you might be right, in my view database is just for persistence, most of the time text processing happens in the application or framwwork. Database is a very well understood system so reading and writing to it using language drivers can be optimized. Indeed go and rust both have excellent drivers for PostgreSQL, but still developing web application in them is not easy due to inherent text processing requirements and dealing with http request/response in json, html, xml, protocol buffers, blobs and various mime-types. |
|
But Go, Rust, Scala and the like blow those dynamic typed languages out of the water when it comes to APIs.
For example. If you want a number to be a positive integer you would write a Go struct containing a uint. That's all.
Want it to be optional Rust or Scala have an optional Type.
If someone submits a negative number or a float the framework automatically generates an error message.
In ruby for example you would have to write a bunch of validations per hand and a bunch of tests too, to check if those work.
Writing APIs in Go is like half the work compared to Ruby or god forbid PHP.
Have not tries Node yet but i assume it to be on a level with Ruby.