Skip to content

Instantly share code, notes, and snippets.

View clayhinson's full-sized avatar

Clay Hinson clayhinson

  • Cleveland, OH
View GitHub Profile
@ralphschindler
ralphschindler / conditional-ternary-eliminate-waste.php
Created March 4, 2011 15:59
Usage of the Conditional Ternary operator to reduce brace and newline waste when processing optional method parameters
<?php
class Coordinate
{
protected $x;
protected $y;
public function __construct($x = null, $y = null)
{
(empty($x)) ?: $this->setX($x);
@simeonwillbanks
simeonwillbanks / top-50-programming-quotes-of-all-time.txt
Last active September 24, 2015 11:27
Programming: "Top 50 Programming Quotes of All Time" from Jun Auza at TechSource
http://www.junauza.com/2010/12/top-50-programming-quotes-of-all-time.html
50. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."
- Rick Cook
49. "Lisp isn't a language, it's a building material."
- Alan Kay.
48. "Walking on water and developing software from a specification are easy if both are frozen."
- Edward V Berard