Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
linkdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
571.
▲
by
linkdd
5y ago
Fun observation of mine: most articles/tutorials I've read about "idiomatic go code" are presenting ideas that you never see in any production code. Seems to me that the ones who write about "idiomatic go code"
572.
▲
by
linkdd
5y ago
I also made a library for working with `{:ok, value}` and `{:error, reason}` in Elixir: https://github.com/linkdd/rustic_result Thanks to the pipeline operator and pattern matching, it makes pretty easy to read pipelin
573.
▲
by
linkdd
5y ago
Rely more on the map/map_err/or_else/... methods for the Result type. You'll get something like (pseudocode): may_fail_who_knows() .map(use_value) .map_err(some_error_processing) .and_then(another_computa
574.
▲
by
linkdd
5y ago
Which is exactly why I said: > I cannot wait for the Result monad. Generics make this possible, and will be a huge improvement to Go's error handling. I'm not saying it will solve everything, but it's a huge step nonethele
575.
▲
by
linkdd
5y ago
An exception has a stacktrace. This single piece of information is crucial when you debug and makes handling errors in Golang embarrassing. I rest my case.
576.
▲
by
linkdd
5y ago
The Rust Result type has: - map / map_err - and_then / or_else - unwrap / unwrap_or And countless of other functions making it very practical to chain computations without having to pattern match anything. I do the
577.
▲
by
linkdd
5y ago
> In Java people regularly refer to a particular JDK version as a Java 17 or Java 11, even though they actually refer to versions 1.17 and 1.8, respectively. 17 -> 1.17, 11 -> 1.8, this is bothering me way to much for no good reaso
578.
▲
by
linkdd
5y ago
I cannot wait for the Result monad. The state of error handling in Go at the moment is embarrassing at best.
579.
▲
Show HN: Generic templating tool with support of JSON, YAML and TOML data
(github.com)
3 points
by
linkdd
5y ago
|
0 comments
580.
▲
by
linkdd
5y ago
> The message would still be accessible on the blockchain. What about the right to be forgotten and GDPR laws?
581.
▲
by
linkdd
5y ago
It's closer to Banished than Cities Skylines, the multiplayer is fun, the map is huge and it works flawlessly on my potato computer. I've spent many hours on this game and enjoyed every second.
582.
▲
by
linkdd
5y ago
Seems cool, but to create an account we must give the following rights to your personal account: This application will be able to read and write all public and private repository data. This includes the following: Code Issues
583.
▲
by
linkdd
5y ago
- Kingdom Reborns https://store.steampowered.com/app/1307890/Kingdoms_Reborn/ - Arcane League of Legends Netflix series (never played the game, loved the series) Also, yes it's not made in the la
584.
▲
by
linkdd
5y ago
It's a shame The OA was cancelled, it could have sprouted to be a new genre of Sci-Fi. I loved the season 1, and the season 2 had so much fun ideas.
585.
▲
by
linkdd
5y ago
Thanks for the feedback! For now it's a toy project, so I would not be confident over its performance. I might try to come up with a good scenario for a benchmark and post the results in the future. Contributions are welcome!
586.
▲
by
linkdd
5y ago
Hasura supports authentication and ACLs with the builtin PostgreSQL user system. And we use Kratos (from the ory.sh ecosystem) for OAuth. It supports PostgreSQL triggers, and webhooks so you can implement your own business logic. Hasura is
587.
▲
by
linkdd
5y ago
Take a look at https://hasura.io
588.
▲
by
linkdd
5y ago
So? My point was that if you don't care about safety, C/C++/ASM have good aspects too. I can write a program without a single pointer in C, and it will be fast, small, and portable. Java is used a lot in data science alongsid
589.
▲
by
linkdd
5y ago
While Python's bindings in other languages are great, and Rust has amazing features regarding memory safety, I think saying they are the best in their area is a bit too much. For compiled languages: Rust is the best when you care about
590.
▲
by
linkdd
5y ago
Kubernetes does: - secret management - storage management - network policies - autoscaling - extensibility (cert-manager, ingress controllers, ...) Each of those things are needed even for small orgs, except maybe autoscaling
591.
▲
by
linkdd
5y ago
Situation A: We've built our infrastructure on top of docker-compose on a single node server We've grown enough so that we need more servers and now k8s seems like a good fit Uh oh, we need to rewrite everything or not use
592.
▲
Show HN: TriOTP, the OTP Framework for Python Trio
(linkdd.github.io)
5 points
by
linkdd
5y ago
|
2 comments
593.
▲
by
linkdd
5y ago
Dask and especially the dashboard is a very nice piece of technology. But "naïve programming" (the art of writing a dumb algorithm with no regards to performance or optimizations) can bite you hard: https://docs.dask.or
594.
▲
by
linkdd
5y ago
https://github.com/philipl/pifs If we find a way to compute Pi's decimals quickly enough, this FS will become the next big thing :)
595.
▲
by
linkdd
5y ago
Docker + WSL2 + VS Code in WSL is a terrific experience.
596.
▲
by
linkdd
5y ago
The number of Python packages to manage configuration is incredibly high. I wonder why.
597.
▲
Show HN: Maybe monad for Elixir inspired by Rust Option type
(hexdocs.pm)
4 points
by
linkdd
5y ago
|
0 comments
598.
▲
by
linkdd
5y ago
> If you list boxes you don't have to tick, you are automatically discriminating against women. Men are more likely to apply missing skills than women So, wanting the best people for the job is discriminating? Well, cancel me then.
599.
▲
by
linkdd
5y ago
Could you cheat by mounting the node's docker socket in a privileged pod and execute `docker run` from that pod? But yeah, when I said "one service per container" I was thinking about the step before deploying to K8s. It'
600.
▲
by
linkdd
5y ago
Kubernetes is a framework. You split/group things according to your needs. In a large organization, you might see: - a cluster per environment (staging, dev, prod, ...) - a namespace per team (or business unit) - some more name
More ›