Mistři v programování na #hovnokod

foreach ($params as $p) {
	//TODO: make it better somehow, find potential bugs
	if ($p['parameter_type_id']) {
		$parameters[(int) $p['parameter_type_id']][] = $p->toArray();
	} else {
		$parameters[(int) $p['parameter_type_id']][] = $p->toArray();
	}
}

Třešťák Huho,

Bud alebo.

    enum Type {
        ITEM_IMAGE,
        ITEM_NO_IMAGE
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        if (viewType == Type.ITEM_IMAGE.ordinal() || viewType == Type.ITEM_NO_IMAGE.ordinal()) {
            return new ItemViewHolder();
        }
        return null;
    }

Anonymous,

wooooooooooooooooooooooooooooooooooooooow profesijonal.cz asi to dělal nějáky "Profesijonální,, kid

<meta http-equiv="cONTENT-tYPE" content="tEXT/htnl;	cHARSET=uTF-7.99">

Anonymous,

Bezpecnosti neni nikdy dost

if (isset($this->input['variant']) && $this->input['variant'] == "1") {
    if (!in_array($this->input['variant'], [0, 1])) {
        throw new SecurityBrokenException;
    }
}

Anonymous,

Open source vývoj jedné nejmenované hry. Soubor lib_machines.dm už sice není mezi námi, ale tento krásný komentář zůstal zachován v nové, zrefactorované verzi.

/*
In reply to this set of comments on lib_machines.dm:
// TODO: Make this an actual /obj/machinery/computer that can be crafted from circuit boards and such
// It is August 22nd, 2012... This TODO has already been here for months.. I wonder how long it'll last before someone does something about it.
The answer was five and a half years -ZeroBits
*/

Anonymous,