jquery.autocomplete_from_select.js 2 months ago
I wanted to turn an HTML <select> element into an autocomplete. I also wanted to match on more than ...
Show all feed information | Ping Blog Update
I wanted to turn an HTML <select> element into an autocomplete. I also wanted to match on more than ...
Last week at the Houston Ruby User Group I made a presentation called "The Website's Slow" Tips and Tools for Identifying Performance Bottlenecks .
That link is to the slides and notes on each slide mentioning a little about what I said.
Basically I went through a couple of different classes of …
Several days ago I wrote about common excuses people use for commenting code and things you can do to get rid of them . I took the stance that rarely is there something so complex that it really requires comments.
In other words, much of the time, comments are crutches for understanding bad …
Your boss gave you three weeks to work on a project, along with his expectations about what should be done during that time.
You started the job a week before this assignment, and now is your chance to prove you're not incompetent.
You're a busy programmer, and you know it will only take a …
A greedy algorithm is an algorithm that follows the problem solving heuristic of making the locally optimal choice at each stage with the hope of finding a global optimum. In many problems, a greedy strategy does not in general produce an optimal solution, but nonetheless a greedy heuristic may …
It's been said and repeated and retweeted:
Code is read much more often than it is written, so plan accordingly
I think that's sound advice. But is there ever a time when you ought to use cryptic one-letter variable names and strange symbols in your code?
If we're admonished to write code so …
I'm playing with an idea and ...
I just read an excerpt from @avdi 's new alpha Confident Ruby ebook and it prompted some thoughts:
In the article, he talks about dealing with an account_balance where you iterate over the transactions of the account and sum up their amount s to arrive at a final balance.
A special case arrives …
keywords ebook, excerpt from, programming, ruby
Here's a 35 minute recording of the presentation ...
Someone rip this idea apart:
When you write an if statement in one class that's using data from an object of a different class to make a decision, ask yourself:
Would this code be more appropriate in the ...