Mistři v programování na #hovnokod


Marek Dočekal,

Proč? Protoč kolotoč....

private boolean existsPrice;
.....
if (Boolean.TRUE.equals(existsPrice)) {

Anonymous,

Kvalitni podminka vzdy potesi

        if (((rsFile_[i].dir_ == ANY_DIR) || (rsFile_[i].dir_ == dir)) && (messageSize >= rsFile_[i].messageSizeLow_) &&
            (messageSize <= rsFile_[i].messageSizeHigh_) &&
            ((rsFile_[i].recType_ == ANY_RT) || (rType == rsFile_[i].recType_)) &&
            compare_domains(domain, rsFile_[i].domain_) &&
            ((rsFile_[i].loc_ == ANY_LOC) || (loc == rsFile_[i].loc_)) &&
            (((rsFile_[i].scRangeLow_ == 0) && (rsFile_[i].scRangeHigh_ == UINT64_MAX)) ||
             ((bType == 2) && (is_numeric(MSISDN, 1) && (numMSISDN >= rsFile_[i].scRangeLow_) &&
                               (numMSISDN <= rsFile_[i].scRangeHigh_)))) &&
            ((rsFile_[i].cType_ == ANY_TYPE) || (cType == rsFile_[i].cType_))) {

Anonymous,

Skús vyhodiť výnimku

if ($this->connection->error) {
    try {    
        throw new \Exception("MySQL error " . $this->connection->error . " <br /> Query:<br /> {$queryStr}", $this->connection->errno);    
    } catch(\Exception $e ) {
        echo "Error No: ".$e->getCode(). " - ". $e->getMessage() . "<br >";
    }
}

Anonymous,


Zbyněk Rybička,