Skip to content

Instantly share code, notes, and snippets.

View NandoKstroNet's full-sized avatar
🎯
Focusing

Nando Kstro Net NandoKstroNet

🎯
Focusing
View GitHub Profile
@alganet
alganet / history.md
Created February 11, 2013 18:51
My History with Bad Code

My History with Bad Code

I've written a lot of bad code. I've learned and I can recognize this.

This collection of bad code has some gotchas and some noticeable things that people still try to do on software, and perhaps this exaggeration can drive some architectures to a better state.

Ok. Shame on me!

Illegible Crap: https://gist.github.com/alganet/4756406

<?php
namespace Application\Controller;
use Zend\View\Model\ViewModel;
use Core\Controller\ActionController;
use Zend\Paginator\Paginator;
use Zend\Paginator\Adapter\DbSelect as PaginatorDbSelectAdapter;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
@netojoaobatista
netojoaobatista / sample.php
Created August 8, 2012 15:00
Slug function
<?php
echo slug('João Batista Neto'); //joao-batista-neto