- http://lostechies.com/derickbailey/2012/06/04/anders-hejlsberg-is-right-you-cannot-maintain-large-programs-in-javascript/
- http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod
- http://en.wikipedia.orgi/wiki/Separation_of_concerns
- Single Responsibility Principle: http://www.objectmentor.com/resources/articles/srp.pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Total de execuções | |
$limit = 1000; | |
//Conexão com a base, comum para os dois casos | |
$pdo = new PDO('mysql:host=127.0.0.1;dbname=test', 'user', 'pswd'); | |
//matrizes para armazenagem dos tempos | |
$times1 = array(); | |
$times2 = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:akt="http://connect.akatus.com/" elementFormDefault="qualified" | |
targetNamespace="http://connect.akatus.com/"> | |
<xsd:element name="carrinho"> | |
<xsd:complexType> | |
<xsd:all> | |
<xsd:element name="recebedor" type="akt:Receiver" /> | |
<xsd:element name="pagador" type="akt:Payer" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
Sample2 sample2 = new Sample2(); | |
sample2.test(); | |
Sample4 sample4 = new Sample4(); | |
sample4.test(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample { | |
private final String privateMember = "value"; | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
final Sample sampleInstance = new Sample(); | |
System.out.println(sampleInstance.privateMember); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nvp = array( | |
'METHOD' => 'GetExpressCheckoutDetails', | |
'VERSION' => '84', | |
'PWD' => 'PWD', | |
'USER' => 'USER', | |
'SIGNATURE' => 'SIGNATURE', | |
'TOKEN' => $_GET['TOKEN'] | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0"> | |
<xsl:output indent="yes" method="xml" omit-xml-declaration="yes" | |
encoding="utf-8" /> | |
<xsl:template match="*[contains(./@style,'font-weight:bold')]"> | |
<xsl:element name="b"> | |
<xsl:apply-templates /> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sample = (function() { | |
var score = 0; | |
return Object.create({}, { | |
increment: { | |
enumerable: true, writable: false, configurable: false, | |
value: function() { | |
score++; | |
} | |
}, | |
getScore: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Estrutura básica para definição de um widget de interface de usuário | |
* @constructor | |
*/ | |
function Widget() { | |
} | |
/** | |
* Implementação besta de um input |