I personally believe ActiveRecord is a gigantic anti-pattern and should be avoided at all costs (by anyone, ever). And I also happen to have had very bad experiences with ORM and feel like most of the time they are not…
My advice is to just use standard library `database/sql`. Every abstraction on top adds extra complexity and isn't really necessary. Just execute a query, map the results, and there you go.
> While you’re still researching the best SQL library for a project People do this? In every language I've worked with, there's practically just one SQL library to use. And you just write a query, execute it, and map…
Could you give a few examples what such frameworks provide that you need, that Go plus a few simple libraries doesn't provide?
> If I want an all inclusive MVC (or similar) web development framework with all batteries included I think that maybe you shouldn't want that. Go is a simple language with a very extensive standard library. It's quite…
You might not need a cache. In my previous company (~7 years) all teams around me were introducing caches left and right and getting into a lot of complexity and bugs. I persevered and always pushed back adding caches…
What does integrated with KDE mean? I use Firefox, but cannot imagine any type of integration that I really need.
> That looks like more XSS vectors. Could you elaborate on that? I don't understand how this leads to more XSS vectors.
You're mistaken. This is no joke.
Was it your intention that the dancing stick figure gives people nightmares?
stick is life
I forgot to follow up on this, I don't know how to make HN give me some kind of a notification on replies to my comments. I should have been a bit more clear. I love memory safety. But I dislike a lot of other aspects…
Last I checked WASM applications are single threaded, not sure if that's changed. GC is concurrent, but not parallelized.
Zig is a completely different language than Rust. Memory safety is just one aspect. I personally find Rust to be very difficult to read and can never manage to be productive in it.
Thanks, that makes sense. Interesting perspective on the UI = F(data), I did not know that. I still wish the mechanics were a bit more... intuitive... I guess? Personally, I'm a big fan of The Elm Architecture [1]. I…
Thanks for the additional clarification!
The most common pattern in languages with explicit error handling, is to simply return the error (possibly with some context added) in every function up to the point where the process was started (e.g. an HTTP endpoint…
If there is anyone here who has time to explain to me (or link articles about) why functional components and hooks are considered to be better than class components, please enlighten me. Up until roughly 4-5 years ago I…
Sounds very familiar. I was a Java developer for a long time, and in that ecosystem adding a library to your project can be enough for code to be activated and run. There are plenty of libraries where the idea is: just…
I like explicit over implicit. I will take passing down context (in the sense of the concept, not the specific Go implementation) explicitly everywhere over implicit ("put it somewhere and I'll trust I can [probably,…
If it is just a transport mechanism, why use context at all ant not a typed struct?
I think it's simply survivorship bias. Thousands of people try this and fail. And occasionally you read an article like this, which is like the one in a million who managed to get lucky with their ideas and manage to…
I personally believe ActiveRecord is a gigantic anti-pattern and should be avoided at all costs (by anyone, ever). And I also happen to have had very bad experiences with ORM and feel like most of the time they are not…
My advice is to just use standard library `database/sql`. Every abstraction on top adds extra complexity and isn't really necessary. Just execute a query, map the results, and there you go.
> While you’re still researching the best SQL library for a project People do this? In every language I've worked with, there's practically just one SQL library to use. And you just write a query, execute it, and map…
Could you give a few examples what such frameworks provide that you need, that Go plus a few simple libraries doesn't provide?
> If I want an all inclusive MVC (or similar) web development framework with all batteries included I think that maybe you shouldn't want that. Go is a simple language with a very extensive standard library. It's quite…
You might not need a cache. In my previous company (~7 years) all teams around me were introducing caches left and right and getting into a lot of complexity and bugs. I persevered and always pushed back adding caches…
What does integrated with KDE mean? I use Firefox, but cannot imagine any type of integration that I really need.
> That looks like more XSS vectors. Could you elaborate on that? I don't understand how this leads to more XSS vectors.
You're mistaken. This is no joke.
Was it your intention that the dancing stick figure gives people nightmares?
stick is life
I forgot to follow up on this, I don't know how to make HN give me some kind of a notification on replies to my comments. I should have been a bit more clear. I love memory safety. But I dislike a lot of other aspects…
Last I checked WASM applications are single threaded, not sure if that's changed. GC is concurrent, but not parallelized.
Zig is a completely different language than Rust. Memory safety is just one aspect. I personally find Rust to be very difficult to read and can never manage to be productive in it.
Thanks, that makes sense. Interesting perspective on the UI = F(data), I did not know that. I still wish the mechanics were a bit more... intuitive... I guess? Personally, I'm a big fan of The Elm Architecture [1]. I…
Thanks for the additional clarification!
The most common pattern in languages with explicit error handling, is to simply return the error (possibly with some context added) in every function up to the point where the process was started (e.g. an HTTP endpoint…
If there is anyone here who has time to explain to me (or link articles about) why functional components and hooks are considered to be better than class components, please enlighten me. Up until roughly 4-5 years ago I…
Sounds very familiar. I was a Java developer for a long time, and in that ecosystem adding a library to your project can be enough for code to be activated and run. There are plenty of libraries where the idea is: just…
I like explicit over implicit. I will take passing down context (in the sense of the concept, not the specific Go implementation) explicitly everywhere over implicit ("put it somewhere and I'll trust I can [probably,…
If it is just a transport mechanism, why use context at all ant not a typed struct?
I think it's simply survivorship bias. Thousands of people try this and fail. And occasionally you read an article like this, which is like the one in a million who managed to get lucky with their ideas and manage to…