Today I solved this algorithm that is the third problem in Project Euler. This still need some improvement, because even when the last prime number is found it still counts and takes a really long time when given big numbers. I will update this code as soon as I find a better solution but for […]Read More Solving Algorithms – Largest prime factor
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
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
Today I encountered an algorithm to solve and the amazing Ruby syntax made me solve this problem with a succinct code with testing included. All words in the title should be capitalised except a few ones like “a”, “the”, “to”, “at”, “in”, “with”, “and”, “but” and “or”. To make this very short the solution is […]Read More Solving Algorithms – Title Capitalisation
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!
This week will be more related to the Front End side of web development. So I thought about colors which are used everywhere. The web is one of the technologies that uses all the human senses, it evolved to become an everyday tool and entertainment. Today I will teach you how to calculate hexadecimal numbers […]Read More Hexadecimal and Colors
2 weeks ago I went to an Equal Experts Conference and after while mingling, in a conversation with one of the organizers, some were saying that language X was better than language B, and his response was: “Languages are just tools to build applications to serve the world”. That just killed. And this is the […]Read More What are Programming Languages ?
It has been a while since I made a post here, the excuses will be off and I’ll just get to the post. I will show a way of printing a url by building a Ruby script with Nokogiri. What I want is to print all the compressed files in the website, these are contained […]Read More How to Print Urls with Nokogiri