Mistři v programování na #hovnokod

popici nie?

br + br + br + script + br + table + table,
br + br + br + br + table + table {
    .table-styles();
}

br + br + br + script + br + table,
br + br + br + br + table {
    .tables-width();
    .tabs-styles();
}

Anonymous,

No comment.

            // when I send 'xxx' string here, destination system is ok... :(
            req.setBirthDate(birthDate);

Anonymous,

Jak ziskat posledni e-mail? Preci si nacist vsechny z db a vratit prvni.

function getLastEmail($code) {			
    $mails = dibi::fetchAll('SELECT id FROM emails e WHERE e.deleted = 0 AND e.name LIKE %~like~ ORDER BY e.date_entered DESC', $code);

    foreach($mails as $mail) {
        return $mail;
    }
}

Anonymous,

fail fast!

if (inRegulatedEntity == null) {
    throw new NullPointerException();
}

String urn = inRegulatedEntity.getGlobalUrn();

Anonymous,

Trideni v konstantnim case (Scala variant).

import java.util.{Timer,TimerTask}
object SleepSort extends App {
  val timer = new Timer
  def delay(f: () => Unit, n: Long) = {
    timer.schedule(new TimerTask() {
      def run = f()
    }, n)
  }
  def sleepSort(a: Array[Int]) = {
    for (i <- a) delay(() => println(i), i)
  }
  sleepSort(Array(531,112,43,355,911,299,24))
  delay(() => timer.cancel(), 1000)
}

David Strupl,