Regular

Github is without doubt one of the best things ever happened to open source software development. I, like many other FOSS developers, always use Github to host my projects. And like most of them I thought all of my public projects are by default open source. What we must understand...

TLDR - Operations count (b.N) can be set inside the function. Go benchmarks can be extremely useful when attempting to write performance critical applications. Both cpu and memory benchmarks can be written for Go programs. func BenchmarkHello(b *testing.B) { for i := 0; i < b.N; i++ { fmt.Sprintf("hello") }...

I'm developing Node apps for years and started working with Go last month. So far, I like it as much as I like Node. So I hope to blog some quick tips about Go (aka Golang) for Node developers starting with the $GOPATH. I'll start with some boring stuff and...

One of the most important things I learned during past few months at MeteorHacks is the difference between errors and bugs and how they should be handled. I also found this awesome article on Joyent website which talks about error handling in node. Errors can stop your program from working...

Just thought of sharing something about writing tests with JavaScript. Usually, it's best to keep tests simple and test just one thing per test (the thing is most of the time just a function). If we use functions we're about to test the way we use them in real programs,...