Uniqueness scope on boolean

Hey, It has been a long time since the last post. I was working in hospitality and running some Java. Now I am employed as a Web Developer. This week I bring you something  I learned right now. We are building a Medicine web app. This application consists in medical cases and each case has […]

Read More Uniqueness scope on boolean

Simple Array Sum

Ruby n = gets.strip.to_i arr = gets.strip arr = arr.split(‘ ‘).map(&:to_i) total = 0 arr.each {|num| total += num} puts total C int main(){ int n, total; scanf(“%d”,&n); int arr[n]; for(int i = 0; i < n; i++){ scanf("%d",&arr[i]); } for (int i = 0; i < n; i++){ total += arr[i]; } printf("%d", total); […]

Read More Simple Array Sum

Ruby on Rails 5 API

After using Ruby on Rails 5 I do not want to go back, I’ve fell in love. In my opinion this was one of the best updates in software. My congratulations to the core team and all the contributors. Bcrypt gem is included and it is not necessary the old manual configuration steps which spares […]

Read More Ruby on Rails 5 API

Design Patterns

I’ve got this book last week. It’s the most expensive I’ve ever bought and I do not regret! I am still in the beginning and learned what are Design Patterns, the catalog of the 23 design patterns in this book and how they solve problems. After, will be shown how to select and use a […]

Read More Design Patterns

Solving Algorithms – Bubble Sort

Why are solving algorithms Adnilson, shouldn’t you work on building applications? Yes, you are right! The thing with algorithms is that it helps you solve problems and are good to make your mind look for solutions. This way you build a blueprint and whenever you get a problem you tackle the problem instead of being […]

Read More Solving Algorithms – Bubble Sort

Ruby permutation method rocks!

Early today I was doing my first homework assignment for the SaaS course by University of California – Berkeley, and was making a Rspec test work. This method was meant to take 2 arguments, one array with integers and one integer. What we have to do is sum two numbers in the array until it […]

Read More Ruby permutation method rocks!