oleh Taufan Aditya
a. Sekilas tentang "native" PHP
Mari kita perhatikan sejenak kode berikut ini :
<?php | |
/** | |
* Program interogasi sederhana | |
* | |
* @author Taufan Aditya <[email protected]> | |
*/ | |
class Node { | |
public $question; |
<?php | |
class Foo { | |
public function doSomething() { | |
// ... 60 lines of code here.... | |
} | |
} | |
class Bar { | |
protected $foo; |
<?php | |
class Fibonaci { | |
/** | |
* Penggunaan : | |
* $fib = new Fibonaci(); | |
* echo 'Angka fibonaci ke-1:'.$fib->term(1); // 0 | |
* echo 'Angka fibonaci ke-2:'.$fib->term(2); // 1 | |
* echo 'Angka fibonaci ke-20:'.$fib->term(20); // 4181 | |
* |
<?php namespace Model; | |
use \Gas\ORM; | |
use \Gas\Core; | |
class Base extends ORM { | |
/** | |
* Initial _init, that should be overided by sub-classes | |
*/ |
<?php | |
/* | |
* This file is part of the Juriya CMF. | |
* | |
* (c) Taufan Aditya <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
oleh Taufan Aditya
a. Sekilas tentang "native" PHP
Mari kita perhatikan sejenak kode berikut ini :
return array( | |
'task_list' => array( | |
'user' => array( | |
'create' => 0x00, // 0000 | |
'send_message' => 0x01, // 0001 | |
'edit_profile' => 0x82, // 10000010 | |
'edit_interest_cities' => 0x02, // 0010 | |
'edit_interest_event_cat' => 0x02, // 0010 | |
'edit_interest_comm_cat' => 0x02, // 0010 | |
'edit_photo' => 0x02, // 0010 |
Yang kita perlukan, sebagai developer bukanlah birokrasi melainkan komunitas (yang organik).
Dengan kata lain, values yang kita junjung mestilah :
Sebagai konsekuensi-nya, legalitas badan hukum ataupun bentuk formal lain, diperlukan (dan hanya diperlukan) sejauh dia mendukung tumbuhnya kegiatan komunitas yang organik.
#!/bin/bash | |
# Install m4 | |
cd /Applications/MAMP/bin/php/php5.4.10/include | |
wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz | |
tar -xvzf m4-1.4.10.tar.gz | |
cd m4-1.4.10 | |
./configure --prefix=/usr/local/m4 | |
make | |
sudo make install |
#!/bin/bash | |
# Git Tag SemVer helpers | |
# Usage : !release <repo> <strategy> | |
# !release some_repo patch|minor|major | |
# Get arguments of repository and release strategy... | |
REPO=$1 | |
if [ "" == "$2" ] | |
then |