Mistři v programování na #hovnokod

Jistota je jistota!

/**
 * @var Configuration[]
 */
private $configurations;

/**
 * @return string[]
 */
public function getCatalogsOptions() : array {
	$rslt = [];
	foreach ($this->configurations as $configuration) {
		$rslt[] = $configuration;
	}
	return $rslt;
}

Anonymous,


Anonymous,

SO Thread: https://stackoverflow.com/questions/44484229/how-should-i-make-this-code-shorter To nechceš :D :D :D

@IBAction func startButton(_ sender: UIButton, forEvent event: UIEvent) {
if isPlaying == false {
sender.alpha = 0
difficulty.alpha = 0
if difficulty.selectedSegmentIndex == 0 {
currentTask.text = "Starting \nE In"
timeLabel.text = "3"
delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "E"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nF In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "F"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nG In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "G"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nA In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "A"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nB In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "B"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nC In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "C"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nB In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "B"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nA In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "A"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self

Anonymous,


Roman Pospíšilík,

<!DOCTYPE html>
<html lang="cs-cz">
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title><?php echo 'points' ?></title>
  </head>
  <body>
..

Anonymous,