Here Be Dragons

OOP composition with mixins

 I gave a very small talk for a recent Berlin D meetup about approaches to make OOP style designs more robust with tools available in D. Normally I am quite quite skeptical about OOP in general and prefer to write code in a mix of functional and generic style but often there is that big chunk of old code that works just fine and you are not going to rewrite it just to switch the paradigm. Tweaking slightly for improved maintainability totally makes sense though.

2015-Aug-24

Nothing more to remove

 I must admit I am being tempted to keep this ("life") post feed empty because, obviously, I have no life.

2015-Aug-18

In the mood for some releasing

 TL; DR: https://github.com/Dicebot/mood

Lack of self-hosted blog platform that could suit my preferences has been bothering me for a while. Pretty much everything open-sourced out there was some PHP monstrosity that would require you to spend half a day configuring application server and SQL database to just get started. All to get half a second load times for single user for something that is effectively a static HTML page.

Purely static generators seemed to work much better but I wanted a bit more power and flexibility. What if eventually I want to add comment support? Or anything else dynamic? In the end I decided to have finally write some D project purely for fun, something I haven't done for ages.

That is how mood was born. Several evenings worth of spare time and poking fellow web developer to create a simple design and I got the thing working - at least good enough to power this specific blog :)

2015-Aug-14

Cross post of Sociomantic D2 migration articles

  • https://www.sociomantic.com/blog/2015/02/on-sociomantic-and-d2-migration-part-1
  • https://www.sociomantic.com/blog/2015/04/d1-d2-part-2-v2-flag
  • https://www.sociomantic.com/blog/2015/04/d1-d2-part-3-magic-module
  • https://www.sociomantic.com/blog/2015/04/d1-d2-part-4-const-qualifier
  • https://www.sociomantic.com/blog/2015/04/d1-d2-part-5-more-const
  • https://www.sociomantic.com/blog/2015/05/d1-d2-part-6-final-pieces
2015-Jul-31

Thoughts about Rust from D programmer

I have been following development of Rust for a while now - both occasional blog posts that get popular on reddit and some of mail list threads with more theoretical discussions. My job is all about the D programming language though so it was hard to find time to try it in more detail.

With recent release of 1.0.0 alpha version of the compiler I decided to spend time to get a bit more familiar with it. First thing to do was to start reading the official guide and making notes on stuff. And those notes are exactly what I want to share here.

Just to be clear : I won't be trying to compare available tools, documentation, compiler quality and anything else related to ecosystem. It is all about pure language and what comes from it. There will be bunch of unstructured notes on that topic with a sort of overall impression summary in the end.

Also please note that this list is very incomplete and focuses only on things I could write about in reasonably short form. Maybe more comparisons will follow if I continue experimenting with it.