Barbarian Meets Coding Titlebarbarianmeetscoding

WebDev, UX & a Pinch of Fantasy

6 minutes readbooks

2015 in Books: Programming

I love reading! You get to travel to faraway places, live adventures in wondrous worlds of magic, save the day, make amazing friends and watch them grow, learn, there’s few things that ignite slow, deep, reflective thinking as books do, borrow from the greates minds of all times, or from people that have invested years of experience and research to bring you that knowledge condensed in a few pages.Yeah… all that…and it’s fun :)

These are the programming related books that I read this year. Perhaps something that’ll be of interest to you?

Read on →
23 minutes readoop

Safer JavaScript Object Composition With Traits and Traits.js

The Mastering the Arcane Art of JavaScript-mancy series are my humble attempt at bringing my love for JavaScript to all other C# developers that haven’t yet discovered how awesome this language and its whole ecosystem are. These articles are excerpts of the super duper awesome JavaScript-Mancy book a compendium of all things JavaScript for C# developers.

From Mixins to Traits

In the last article of the series you learned about mixins and how you can use them to encapsulate reusable units of behavior that you can compose with your domain objects or classes.

Mixins while awesome have some limitations. In particular, conflicting mixin methods and properties are overwritten when using Object.assign. Moreover, you don’t get any warning when this happens. Updating a mixin with new functionality at some later point in time can inadvertently change the behavior of some of your objects.

Traits offer a solution to this problem by providing a safer and more structured way to do object composition.

Read on →
3 minutes readpersonal

The Best Of Barbarian Meets Coding 2015

OMG… Another year has just gone by! Can you believe it?! Here are the best articles of barbarian meets coding this year:

Top 10 Articles 2015

The top 10 articles that I wrote this year

  1. How I Passed the 70-480 Certification Exam
  2. Barbarian Meets Coding Wiki: The 70-483 ASP.NET MVC Certification
  3. An Introduction to Object Oriented Programming in JavaScript for C# Developers
  4. A Brief Update on Angular 2
  5. Mastering the Arcane Art of JavaScript-Mancy for C# Developers - Chapter 1 - The Many JavaScript Quirks
  6. Why I Write Unit Tests and Why You Should Too
  7. Barbarian Meets Aurelia: First Contact and Building Athena
  8. Mastering the Arcane Art of JavaScript-mancy for C# Developers - Chapter 7 - Using LINQ in JavaScript
  9. Barbaric Basics - Web Workers
  10. Mastering the Arcane Art Of JavaScript-Mancy for C# Developers - Chapter 2 - The Basics of JavaScript Functions

Top 10 Most Read Articles 2015

The most read articles during 2015

  1. Barbarian Meets Knockout: Knockout.js Observable Arrays
  2. Object Oriented JavaScript for C# Developers
  3. How I Passed the 70-480 Certification Exam
  4. Barbarian Meets Coding Wiki: The 70-486 ASP.NET MVC Certification
  5. Barbarian Meets Knockout: Knockout.js Computed Observables
  6. An Introduction to Object Oriented Programming in JavaScript for C# Developers
  7. Write 30% Less Test Code With AutoFixture
  8. A Brief Update on Angular 2
  9. Mastering the Arcane Art of JavaScript-Mancy for C# Developers - Chapter 1 - The Many JavaScript Quirks
  10. Barbarian Meets Knockout: Knockout.js Observables

My Top 5 Favorites 2015

The articles I enjoyed writing the most this year

  1. Black Tower Summoning: JavaScript Object Composition with Mixins
  2. An Introduction to Object-Oriented Programming in JavaScript for C# Developers
  3. Mastering the Arcane Art of JavaScript-mancy for C# Developers: On Summoning Servants and Critters or The Basics of Objects
  4. Mastering the Arcane Art of JavaScript-mancy for C# Developers: Enumerables, Iterables, Iterators and Generators
  5. Mastering the Arcane Art of JavaScript-mancy for C# Developers: ES6 Arrow Functions

Hope you have had a great year! Merry Christmas and a Happy New Year!!

27 minutes readoop

Black Tower Summoning: Object Composition With Mixins

The Mastering the Arcane Art of JavaScript-mancy series are my humble attempt at bringing my love for JavaScript to all other C# developers that haven’t yet discovered how awesome this language and its whole ecosystem are. These articles are excerpts of the super duper awesome JavaScript-Mancy book a compendium of all things JavaScript for C# developers.

In the previous articles of this series you have dived into Object Oriented Programming in JavaScript. You’ve learned about object initializers, factory functions, about constructor functions, prototypical inheritance, polymorphism, how to mimick C# classes with ES5 and even about ES6 classes.

So far we’ve kept ourselves very close to techniques and concepts that you are accustomed to in C# so as to make you a comfortable inhabitant of the world of JavaScript. So! Now that you are almost a mighty JavaScript-mancer we’re going to let go of C# for a little while and embrace the dynamic nature of JavaScript. Welcome to a world of flexibility and freedom! The realm of object composition!

This time by the hand of Mixins.

Read on →