Are there Zed fans? Name a killing feature compared to VSCode, Sublime Text or any IDE.
I just don't get the excitement around Zed. Collab edit maybe but feels like nothing revolutionary.
I just don't get the excitement around Zed. Collab edit maybe but feels like nothing revolutionary.
Deploy binary like in old times.
For the last 3 years, I have had a mix of services: k8s and just a binary. As you can easily guess, the latter works flawlessly,
TBH, I cannot recall a problem with
With k8s, everything is amazing globally: unified deployment, hire and fire humans without a problem. The next one will read the same yaml madness. Indeed nice.
But how much time was wasted in my team on k8s ecosystem is unreal. You can try to argue that the team had a little experience in k8s but not (not full-time k8s ops, that's true).
I think this is mostly a Go feature now; having the ability to deploy binary is a lost art in the 21st century 😢 Ah, YMMV.
PS: yeah, we had a problem with
For the last 3 years, I have had a mix of services: k8s and just a binary. As you can easily guess, the latter works flawlessly,
scp'- like tool, `systemctl restart
and done.TBH, I cannot recall a problem with
ssh
, like I really cannot. You have a key locally, a key on the bastion machine, and 99% of the stuff is done now.With k8s, everything is amazing globally: unified deployment, hire and fire humans without a problem. The next one will read the same yaml madness. Indeed nice.
But how much time was wasted in my team on k8s ecosystem is unreal. You can try to argue that the team had a little experience in k8s but not (not full-time k8s ops, that's true).
I think this is mostly a Go feature now; having the ability to deploy binary is a lost art in the 21st century 😢 Ah, YMMV.
PS: yeah, we had a problem with
ssh
deploys: removing old binaries.I bet some of you have personal projects running in the cloud. How do you manage them?
Just a repo with TF/CF scripts? Home-made bash scripts? Personal memory-safe ✅ high-performance 🚀 HTTP framework? Smth else?
My project is structured in a single repository. Inside, I've included everything I need to manage: the machine, firewall, certificates, load balancer, and monitoring. Each repository also contains the same Taskfile (taskfile.dev) commands for easy deployment or quick machine checks.
How do you structure your projects? I'm curious what you have.
Just a repo with TF/CF scripts? Home-made bash scripts? Personal memory-safe ✅ high-performance 🚀 HTTP framework? Smth else?
My project is structured in a single repository. Inside, I've included everything I need to manage: the machine, firewall, certificates, load balancer, and monitoring. Each repository also contains the same Taskfile (taskfile.dev) commands for easy deployment or quick machine checks.
How do you structure your projects? I'm curious what you have.
oleg_log
New format: Monday rant or #monran Rust 🤦♂️ I got a mention in one Rust PR, and oh, these imports (use keyword). See the screenshot in the next post. Someone smart said that type-driven programming is another dimension of programming (orthogonal to code).…
Regarding programming in types & Go:
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather than programming by writing types.
(c) Ian Lance Taylor
(src https://t.me/oleg_log/786)
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather than programming by writing types.
(c) Ian Lance Taylor
(src https://t.me/oleg_log/786)
Telegram
oleg_log
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather…
https://loglog.games/blog/leaving-rust-gamedev/
+
https://news.ycombinator.com/item?id=40172033
=
<3
Well, nothing super-duper but with a good coffee can be an interesting reading (and telling yourself "oh, people are dumb on too many things").
Lang war. Lang war never changes.
(PS: HN thread is 900+ comments and growing)
+
https://news.ycombinator.com/item?id=40172033
=
<3
Well, nothing super-duper but with a good coffee can be an interesting reading (and telling yourself "oh, people are dumb on too many things").
Lang war. Lang war never changes.
(PS: HN thread is 900+ comments and growing)
Did you know that Github can be used as a public key wallet?
See
This also reminds me of https://github.com/FiloSottile/whoami.filippo.io
I'm strongly suggesting to check README ^^^ good intro to how SSH behaves.
See
https://github.com/<username>.keys
This also reminds me of https://github.com/FiloSottile/whoami.filippo.io
I'm strongly suggesting to check README ^^^ good intro to how SSH behaves.
GitHub
GitHub - FiloSottile/whoami.filippo.io: A ssh server that knows who you are. $ ssh whoami.filippo.io
A ssh server that knows who you are. $ ssh whoami.filippo.io - FiloSottile/whoami.filippo.io
Go if's with init statement #monran
We all know such expression:
However, some big-brains prefer to squeeze as much as possible in it:
To be honest, I'm jealous. I want to read this code as easily as the author. I have a bad time trying to understand the point of pushing everything inside
Is the following version not good enough?
Argh.
We all know such expression:
if ok := foo(); !ok {
// ...
}
However, some big-brains prefer to squeeze as much as possible in it:
if err := foo(ctx, logger,
user, &pb.MetaData{...},
&payload, whatever...,
); err != nil {
// ...
}
To be honest, I'm jealous. I want to read this code as easily as the author. I have a bad time trying to understand the point of pushing everything inside
if
and complicated things.Is the following version not good enough?
err := foo(ctx, logger,
user, &pb.MetaData{...},
&payload, whatever...,
);
if err != nil {
// ...
}
Argh.
> Unable to find Go version '1.15' for platform darwin and architecture arm64.
Has something changed recently? Looks like week ago everything was fine https://github.com/gobwas/ws/actions
I also don't get this:
> We didn't promote darwin/arm64 to be a primary port until Go 1.16. Since Go 1.15 and Go 1.16 are no longer supported, we don't plan to backfill older binary releases.
https://github.com/golang/go/issues/63626
Anyway, why everything was ok week ago. Github CI cache or wut?
Has something changed recently? Looks like week ago everything was fine https://github.com/gobwas/ws/actions
I also don't get this:
> We didn't promote darwin/arm64 to be a primary port until Go 1.16. Since Go 1.15 and Go 1.16 are no longer supported, we don't plan to backfill older binary releases.
https://github.com/golang/go/issues/63626
Anyway, why everything was ok week ago. Github CI cache or wut?
oleg_log
testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks Держу кулачки, что в 1.17 таки зайдет. Чуть жаль, что не я это закодил, но где-то я просто перегорел с этой идеей и ожиданием (да, оправдываюсь чуть). https://github.com…
Guess what,
1 cleanup routine were missing in a test. So, as a result it was flaky due to conflicts in DB.
Yay 🎉
-shuffle=on
saved my life today.1 cleanup routine were missing in a test. So, as a result it was flaky due to conflicts in DB.
Yay 🎉
Nice https://blog.kellybrazil.com/2021/12/03/tips-on-adding-json-output-to-your-cli-app/
Post in 2021, but still cool. Also, I didn't know about the
JSON is a lingua franca in the IT world, whether you like it or not.
Post in 2021, but still cool. Also, I didn't know about the
jc
tool to make famous commands aware of JSON (to be precise, convert text output to JSON).JSON is a lingua franca in the IT world, whether you like it or not.
Brazil's Blog
Tips on Adding JSON Output to Your CLI App - Brazil's Blog
Best practices when adding a JSON output option to your command-line application.
Forwarded from oleg_fov (Oleg)
YouTube
Node.js: The Documentary | An origin story
Back in 2008, most people thought of JavaScript as just a client-side language. But when Google's V8 appeared, young developer Ryan Dahl made the connection between non-blocking servers, V8, and JavaScript. It was by combining these key elements that he was…
O KURWA https://medium.com/@anastasia.bizyayeva/every-map-of-china-is-wrong-bc2bce145db2
BTW, Openstreetmap is illegal(-ish?) in China, see HN https://news.ycombinator.com/item?id=40220072
BTW, Openstreetmap is illegal(-ish?) in China, see HN https://news.ycombinator.com/item?id=40220072
Medium
Every map of China is wrong
And this is intentional…