Rust: Improve readability in default arm of match statement

#TIL in #rustlang we can use any variable name (starting with _) in ignore path of match

Continue Reading »

Deepseek : Model vs Web app

There was a post on LinkedIn about how asking DeepSeek to list states of India is not answered. 1

First of all, why would you ask such a trivial question to it , when you can just search.

We need to consider the difference between search engine and “thinking model” like DeepSeek

It is like asking Einstein help with 10th class Physics exam 😃 - while he may be able to help, his abilities are better suited for more difficult tasks.

Continue Reading »

Make constraints useful

Recently, I came re-listened to a podcast episode where they discussed about constraints.

Everyone thinks that constraints are bad.

But having some constraints may be good.

Continue Reading »

Rust Script

After my previous post I came across other ways to “quickly test rust code” Obvious being rust-script It is easy to install via cargo install rust-script (But I had it already installed. I think Espanso installed it, but not too sure) This may be better than rustc because one can define the dependencies in the “script” itself, like : #!/usr/bin/env rust-script //! Dependencies can be specified in the script file itself as follows: //!

Continue Reading »

Rust: When rustc Beats Cargo for quick trial code

Recently, I needed to test try some functionality (of getting user’s home directory) 1

Setting up a throw away project via cargo new is certainly possible but seemed overkill.

Continue Reading »

Polywork Shutting Down

This morning, I got an email notification that polywork.com shutting down.

Polywork was a good idea.

I never updated it regularly because I was worried about such thing (it going away) But I liked the idea of putting regular “updates” and I started this microblog.

Continue Reading »

Happy New Year 2025 to everyone and their family !

May your dreams come true

Rust: How to print Command Output

I was going thru struct Command in std::process 1

Obviously, I tried the very first code snippet in the rust playground. There is a very convinient ▸ to run the sample code.

The code ran without any errors.

But no output 🤔

Continue Reading »

Finally got Auto Complete working in Helix

I have been using Helix as an editor, not as an IDE. One of the USP of Helix is LSP support out of the box

Recently, I’ve been programming in rust.

Helix is also written in rust.

So I think it is natural that they would support rust LSP rust-analyzer and it does.

But I wasn’t getting auto completions 😞

Continue Reading »

Today I completed “Rust: The Complete Developer’s Guide” course on Udemy 🎉

Here is the certificate