699 karma · joined April 9, 2012
While I'm a firm believer that private cars (at least at a scale seen in the U.S.) and dense cities are fundamentally incompatible, I'm not quite onboard with getting rid of roads altogether. What about bicycles? Emergency vehicles? Construction equipment? Furniture deliveries? Deliveries of merchandise to stores? None of these things are going to be able to get around without a road network of some description, albeit hopefully one significantly reduced in scope from a typical American city.
[0] posts are questions and notes
[1] contributions are posts, responses, edits, followups, and comments to followups (i.e., everything)
⁰ I actually recently bought a roundtrip to Denver for $32 fully inclusive of taxes and fees. Granted, it's on Spirit, which is only marginally better than the bus, but can't beat the price.
My girlfriend's family doesn't do any of this stuff, and so I've had to do "educated guess"-type gifting, which I'm usually somewhat decent at. They tend to get me clothes, which is fine, everyone's gotta wear clothes.
I mean, obviously, in this particular instance with this particular person, it was effective, and for all I know, the manager is a really sharp observer of her reports and knew this was the right approach in this situation. I don't think it's a good general approach, and I'm afraid people are going to take away the wrong thing from this article. It's not good managerial advice to say, "Tell your employees they sound stupid if they are bad public speakers!" It's better managerial advice to say, "Know your employees, and how each individual might be best motivated, and don't accept complacency." You have to be really careful when taking cues from drill sergeants, because for a lot of people, that approach will backfire horribly, and the message will be overshadowed by the delivery style.
def getUserGreeting(userDao: UserDAO)(username: String): String =
userDao.getOptionalUser(username) match {
case Some(user) => "Hello, " + user.getFullName
case None => "Not logged in"
}
than: def getUserGreeting(userDao: UserDAO)(username: String): String =
if(userDao.doesUserExist(username)) match {
"Hello, " + userDao.get(username).getFullName
} else {
"Not logged in"
}
For one thing, the first function probably only makes one database call, while the second (absent caching) makes two. Secondly, the second carries with it the (unlikely) possibility that the user is deleted between your DAO calls. Thirdly, I would argue that the first function is easier to read.I don't think this is true. There are plenty of enthusiasts who already do exactly this kind of thing. A friend of mine had an aftermarket ECU installed in his Mustang a few years ago. There's also the (idiotic) phenomenon of rolling coal[0], which also requires at minimum altering some engine tuning parameters in real time. Hackers abound in all walks of life, and this includes auto enthusiasts.
> The allegations cover roughly 482,000 diesel passenger cars sold in the United States since 2009.
[0] http://www.isba.org/ibj/2012/01/lawpulse/employmentcovenants...
[1] http://www.cnet.com/news/calif-supreme-court-finds-noncompet...
I absolutely agree that NiMH cells are superior in almost every way, but it's not irrational to prefer disposable batteries.
[0] http://www.amazon.com/AmazonBasics-Performance-Alkaline-Batt...
[1] http://www.amazon.com/AmazonBasics-AA-Rechargeable-Batteries...
[2] e.g. http://www.amazon.com/review/RMWO7UZ9TAVRF/ref=cm_cr_rdp_per...