Recently I got a new job (my first real one, actually), and it is revolving around PHP, i.e. Magento development. Before my first day at the job, I was wondering what kind of IDE or text editor should I use and what kind of one my future co-workers use. I emailed them and the response was just as I expected it to be: “full fledged IDEs like eclipse, netbeans or phpStorm”. I have had a lot of previous experience with those environments, mostly doing Java programming, and I was aware of all the bloat they bring. They were slow most of the time, they were laggy and pretty much uneasy to work with. Sure, that was the case on my own machine which is not really a “state of the art”, and I am sure they perform better on more powerful computers.
Things you should know about ruby regular expressions.
Strings in Ruby are, just like in other programming languages, objects for handling text. If you ever tried to write some Ruby code, you are familiar with them and their syntax. But this post is not about syntax that is well known. While reading through some ruby books and tutorials I found some pretty interesting ways of dealing with strings.
I’ve been going through Ruby Best Practices book lately and, while it covers a lot of interesting topics, one thing caught my eye. It was sub-chapter about memoization.
Memoization is an optimization technique used to speed up your programs by avoiding to repeat function calls for already calculated inputs.