Category: languages

React Native must have libraries

Posted by – April 16, 2016

Here’s a small list of must have libraries for every react native project:

Some of these libraries aren’t mandatory, but there have been used in many projects outside there, feel free to suggest new ones!

Share

Some fun programming with Go

Posted by – April 11, 2016

I recently restarted my effort on learn Go, the community is vibrant, even on irc we have several users present on go-nuts channel, the number of libraries is growing very fast, I took some time and wrote two libraries to make some tasks easier.

1. Timeago

Timeago is a small library that can easily calculate a difference between two times and return a string containing how much time passed between them.

2. Verbo

Verbo is a collection of string functions like chop, dashrize, slugify, swapcase and several others that makes the developers life much more easier, there’s a lot of the other functions for string manipulation to come soon.

Both libraries are under MIT license, you that is a go developer is invited to contribute with fixes and improvements!

Share

Easy Database Driven Development with Boost and SOCI

Posted by – October 21, 2013

Last weekend I started to learn more about C++, my first project is a contacts manager, so I googled a little about how to do some persistence on C++ with minimum code and then I found SOCI.

SOCI is a very small database library which gives us the illusion to be embedding SQL queries in C++ code as the project site says, in fact, this is the beauty behind the library, which makes your C++ code very clean and easy to maintain.

But there’s no way to be productive with C++ programming these days without Boost, this awesome library has several utilities classes which can speedup your development several times, this blog post will show a little more about how these two libraries can help you to develop a database driven console application.

More

Share

Using Autofac in a ASP.NET MVC 4 application

Posted by – October 18, 2012

ASP.NET MVC is a great framework, very flexible, but sometimes we need to organize a little better our business logic, there’s nothing better than have a business logic completely decoupled from controller, which can be easily reused on several controllers over the project.

To help ASP.NET MVC make use of reusable business logic and other logic components aswell, we can add a DI/IoC container to our project, after few days researching about IoC container alternatives, I choose Autofac to create my first web application that takes advantage of Dependency Injection.
More

Share

Fixing SelectedValue issue on DropbDownListFor with SelectList

Posted by – July 30, 2012

After spent several hours trying to figure out how the SelectedValue works on DropDownListFor, I finally figure out how to do it, you can also check my answer on stackoverflow here.

It’s very simple to get SelectList and SelectedValue working together, even if your property isn’t a simple object like a Int, String or a Double value.

Example:

Assuming our Region object is something like this:

1
2
3
4
public class Region {
     public Guid ID { get; set; }
     public string Name { get; set; }
}

More

Share