• 0 Posts
  • 45 Comments
Joined 5 months ago
cake
Cake day: June 4th, 2024

help-circle

  • So Trump’s going to skyrocket inflation and debt again? Like he did last time and that this administration is finally in the late stages of cleaning up?

    This happens basically any time a Republican president is elected. They shit all over the economy, tank it and finally when Democrats clean everything up these morons cry “I was better off under the guy that fucked up everything.”

    I keep seeing everywhere that voters voted on the economy, yet no one seems to be pointing out the exhausting, blatantly obvious truth. It’s been happening for what, 20+ years now?

    Republicans make a mess, Democrats are always forced to clean it up. So pardon me if I think the voters are idiots.













  • I can’t speak to your framework specifically, but:

    I’m assuming this is a REST API. I would suggest versioning the API, like /api/v1 for example.

    It’s funny, I’m currently dealing with this at work. The old API was just /api but on the backend we’ve mapped it to API::V1 (Ruby). It gets a little pesky backporting things to the older API so it’s good to start with a solid foundation as much as possible.

    Something else I might suggest: use a good serializer and deserializer. You don’t want to muck up your models with crazy translations for everything: having a middle layer to perform that has been so, so beneficial to us.




  • Crystal, but only because I’m a full time Ruby on Rails (and sometimes Hanami!) programmer.

    It’s fantastic, and I had an excuse to use it at work when we needed to gather PHP Watchdog logs from a MySQL database and format, output them to STDOUT in a Kubernetes environment. (This was necessary for our log monitoring tools expecting data in a standard way, AKA not connecting to a database. 🤦‍♂️)

    I know there are perhaps better options out there (Go, Rust, etc.) but from a Rubyist’s point of view Crystal gives you that “flow” from working in a beautiful language but with the performance boost of compiled software.