Fullasagoog

Show all feed information | Ping Blog Update

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 ...

"The Website's Slow:" Tips and Tools for Identifying Performance Bottlenecks In Your Rails Apps 2 months ago

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 …

Re: Common Excuses Used To Comment Code and What To Do About Them 3 months ago

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 …

How To Recover From A Major Blunder 3 months ago

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 …

Are You Running Your Business Like a Greedy Search Algorithm? 3 months ago

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 …

When is it OK to use tiny variable names and strange symbols in your code? 8 months ago

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 …

What are the craziest, dumbest, most mind-bending things you've seen or done in programming? 9 months ago

I'm playing with an idea and ...

It's always easier to go with the flow, even if it leads you through the sewers 11 months ago

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

How to avoid becoming a formerly-employed Rails developer standing in line at the OOP Kitchen last year

Here's a 35 minute recording of the presentation ...

Better OO Design in Two Questions last year

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 ...