Uncategorized (7)


Turbofish in rust

Consider the following code (or run it in rust playground here): fn main() { let a:Vec = vec![1, 2, 3]; let doubled = a.iter().map(|&x| x * 2).collect(); assert_eq!(vec![2, 4, 6], doubled); } If you ran it in the playground linked above, you will see the following compiler error. error[E0282]: type annotations needed –> src/main.rs:4:9 | […]




Bare bones vimrc (neovim) template for Rust

In preparing for a talk on Rust training for beginners, I thought of creating a very basic setup using vim. Instead of putting a textbook for .vimrc, with all the floatsam and jetsam of my 15 years of vim usage in different stacks, I’ve decided to remove all the fluff and kept the most basic […]




Python Poetry – dependency manager plus packaging tool

I was hearing about this awesome new kid on the block called Poetry. I had taken a look on it in the past (approx two years ago) and it looked not as finished as pipenv, so had stuck with pipenv + setup.py. But over the weekend, I decided to take another look at it after […]




Python: Bare asterisk in function arguments?




“The breakpoint will not currently be hit. No symbols have been loaded for this document.” Fix

I got hit by this warning upon Debug-> Attach To Process. No matter what I did the breakpoints would not be hit. Then I figured out the issue. In my case, the problem happened because Visual Studio 2017 was not able to guess the correct version of .NET Framework used in the assembly. It was […]




Generator Functions using co

Generator functions are a concept lifted likely from Python where they are used heavily in applications like web-crawlers. There are no prerequisites to this article but if you had an idea about Python generators, its the exact same concept implemented in Javascript. Definition Generators are functions which can be exited and later re-entered. Their context […]




Full stack web developer skillset matrix

I came across some nice web developer skillset matrix charts here. While this is a person’s personal opinion, it still is a great reference.   A similar chart from last year looked like this: Front end life: Backend end life: Devops life: