On Thursday, 5 December 2013 at 15:24:31 UTC, Atila Neves wrote:
Interesting. Care to convert this post (only a little adjustment needed) to a blog and publish with source code? Would make a great article. Ask your friends to contribute with descriptions of their implementations, too.

Ask, and you shall receive:

https://atilanevesoncode.wordpress.com/2013/12/05/go-vs-d-vs-erlang-vs-c-in-real-life-mqtt-broker-implementation-shootout/

"Go is an opinionated language"

It's funny, but I got the same impression after reading about it and looking at the syntax. One of D's advantages is - as I've said before - the freedom you have. When I first started with D, I did Java/Objective-C style things (classes etc.), and it was possible and worked well. As I went along I learned more about structs, templates and everything and I started to "think outside the box", because D is not opinionated. I enjoy coding much more now and it's good when a language gives you freedom instead of telling you what to do.

In Java:

1. Write a class
2. Now think ...

Objective-C:

1. Think, but write a class anyway.
2. Think how to bypass classes.

In D:

1. Think
2. Write a struct, class, template ... whatever is appropriate.

"In the end the choice of algorithm and data structures matter more than the programming language so my personal advice is to choose the language that makes you productive."

And D actually gives you a choice.

Reply via email to