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://www.tg-me.com/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://www.tg-me.com/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…
oleg_log
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
At least this garbage is deobfuscated https://github.com/googollee/eviltransform/blob/master/go/transform.go
(
(
EvilTransform
😂)GitHub
eviltransform/go/transform.go at master · googollee/eviltransform
Transport coordinate between earth(WGS-84) and mars in china(GCJ-02). - googollee/eviltransform
>Opens up flight sim
>Goes into a trance
>Proceeds to say he is the smartest programmer to have ever lived
What a legend
https://www.youtube.com/watch?v=CYQEfLaR4Pg
>Goes into a trance
>Proceeds to say he is the smartest programmer to have ever lived
What a legend
https://www.youtube.com/watch?v=CYQEfLaR4Pg
YouTube
Terry Davis - Flight Simulation
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.