Another site with a fixed header taking a large chunk of the screen. Seriously, what's wrong with you designers!!??
317 karma · joined November 11, 2010
"Compared to JRuby on Java 6, JRuby on Java 7 without invokedynamic is around 25% faster, and JRuby with invokedynamic is nearly 3 times faster."
I'm submitting this link because I'm really tired to read blog posts filled with anecdotes and making claims because some "scrum master" or whatever said so and so.
public boolean domainExists(String domain) {
return Option.of((Domain) HibernateUtil.getSession().getNamedQuery("domain.findByName").setParameter("name", domain.trim().toLowerCase()).uniqueResult()).getOrElse(new Domain()).id > 0;
} case class Lol (a: Int, b: Int)
Lol(2, 3) match {
case x Lol y => x
} #include <algorithm>
#include <iterator>
#include <functional>
using namespace std;
template <typename T>
void sort(T begin, T end) {
if (begin != end) {
T middle = partition (begin, end, bind2nd(less<iterator_traits<T>::value_type>(), *begin));
sort (begin, middle);
sort (max(begin + 1, middle), end);
}
}
from wikipedia- imap returns an iterator, any is used to "force" the iterator run through all elements.
- the loop runs on C because of any. Instead of a for loop where jump and body are repeatedly evaluated by the interpreter, any consumes the iterator through a loop implemented in C.