It's taken a long time to get Ruby's performance up to the respectable levels it finally achieves with 1.9 and JRuby, so I'm glad to see Charles pushing to avoid letting features creep in which could seriously degrade it.
1,997 karma · joined July 18, 2008
Me: http://njclarke.com
My code: http://github.com/norman
My blatherings: http://twitter.com/compay
[ my public key: https://keybase.io/compay; my proof: https://keybase.io/compay/sigs/5ghM6xDeYY3U9odHk-2BOd7DxA9AIP5-QcWBkrTOgSQ ]
It's taken a long time to get Ruby's performance up to the respectable levels it finally achieves with 1.9 and JRuby, so I'm glad to see Charles pushing to avoid letting features creep in which could seriously degrade it.
So first and foremost, follow this advice - it's 100% correct!
Best of luck Steve. Props to you for living the life you want to lead. Now that's a great way to inspire children in and of itself.
A "negative transfer" is when you apply habits from one language to another and make usage choices that are not necessarily errors, but sound awkward to native speakers. It's not so much a translation thing as it is a non-native speaker thing.
But yeah, if it's in a query that you're going to run on every single hit to the index page of a busy site, then you're going to have problems.
SELECT * FROM example WHERE value = 'á';
where "á" uses UTF-8 encoding.
By default this will return rows that match both "á" AND "a", which may or may not be what you want.
If you want to make MySQL distinguish between an "a" with an accent and one without, then you need to specify a collation either in the table creation/alter statement, or in your query directly:
SELECT * example WHERE value = 'á' COLLATE utf8_bin;
http://www.amazon.com/Grammatical-Man-Information-Entropy-La...
Then again, it depends on what you're doing. I have a pretty slow netbook that I use when I travel. Working in Ruby or Java can be painful, but working in Lua feels exactly the same as on my Macbook Pro.
> Usually what people struggle with initially is adapting to the functional paradigmes, which Uncle Bob seems to have gotten right in the first try!
Having heard the man speak, I really don't think this is Uncle Bob's first trip around the block with Lisp - even if he is relatively new to Clojure.
My prompt on localhost is always "$ " or "# ", but I add user and host on remote machines to avoid making any big mistakes on the servers I manage.
Yet.
http://en.wikipedia.org/wiki/History_of_the_Empire_of_Brazil...
This is a real question though - where can I see code that he has written? What product or project has he created? Has he only worked on proprietary software, or has he made any major contributions to free projects?
I realize that free/open source software is only a part of our craft and that plenty of brilliant people out there work exclusively or almost exclusively in the closed-source world. I also realize that people can make major contributions to software by doing things other than writing code.
But because he speaks so much on how to write code, it would inspire confidence to actually read and use code he has written, look through commit messages, and actually see how the guy manages a real project.
The fact that my Google searches turn up nothing tempt me to cynicism. Somebody please point out something obvious that I have missed.
I think a lot of people get the same feeling I do for the same reasons, but then forget the whole "remind yourself" part.
The idea behind Mongrel2 is that you can write your own configuration system in any language you want, as long as the final result is an SQLite3 database. The one in C that ships with Mongrel2 is "just" a default - if you don't like it, it's not hard to roll your own.
Here's an early peek Josh's Lua config tool, and a sample config file: http://gist.github.com/578726
A lot of people are pretty upset with the author because rather than choosing to release an incremental update that adds smaller features like this, he decided on a total rewrite and got bogged down with no release in sight.
That said, Textmate still feels remarkably current despite the fact that its last major update was more than 4 years ago.
I was about to say something snarky but I think this just speaks for itself.
That's definitely sometimes true. But it depends - when I was in college I used to go to a bar (Redbones in Somerville, MA) where the owner had a policy of letting the bartenders offer a certain number of free drinks and appetizers to favored customers at their discretion. He did this because he said it meant more loyal customers, which helped both him and his employees. I definitely spent a lot of money in that bar and always tipped heavily because of the great service. Despite all the freebies I got, I'm sure they turned a well-deserved profit off my business.