Ragmaanir's Blog

A Software-Developers Blog

Tainted_params-gem

| Comments

This gem is an alternative to the strong_parameters gem. It is not directly meant for rails though. It just provides the tools to build a parameter validator and to validate incoming parameters with it.

An Entity-Component-System in Scala

| Comments

An Entity-Component-System is a kind of design pattern used as an alternative to inheritance to organize the many entity-types in a game. Instead of modelling Dog and Cat as subclasses of Animal you would compose those types from components like Position, Movable, Destructible, Metabolism and PassiveAI.

Elasticsearch in Rails

| Comments

Elasticsearch is a modern full-text search-engine with a RESTful interface that is very customizable, easy to use, easy to set up, fast and scalable. Here i show how i set it up in my rails environment.