!!Con - The Creative Programmer
-
Upload
catt-small -
Category
Technology
-
view
1.084 -
download
2
Transcript of !!Con - The Creative Programmer
@cattsmall@cattsmall
● Product Designer, SoundCloud● Co-founder, Brooklyn Gamery● Co-founder, Code Liberation● Maker of various things!
A little about me:
@cattsmall@cattsmall
Education
The mysqlnd replication and load balancing plugin is implemented as a PHP extension.
It is written in C and operates under the hood of PHP.
During the startup of the PHP interpreter, in the module init phase of the PHP engine, it gets registered as a mysqlnd plugin to replace selected mysqlnd C methods.
At PHP runtime, it inspects queries sent from mysqlnd (PHP) to the MySQL server
If a query is recognized as read-only, it will be sent to one of the configured slave servers. Statements are considered read-only if they either start with SELECT, the SQL hint /*ms=slave*/ or a slave had been chosen for running the previous query, and the query started with the SQL hint /*ms=last_used*/. In all other cases, the query will be sent to the MySQL replication master server.
@cattsmall@cattsmall
“Real programmer”I haven’t slept in weeks!
export class Just<A> extends Maybe<A> {
constructor(public value: A) { super(); };
export class Nothing<A> extends Maybe<A> {
constructor() { super(); };
fold<R>(match) { return match.nothing; }
export function of<A>(value: A): Maybe<A> {
return new Just(value);
export function zero<A>(): Nothing<A> {
return new Nothing();
export function map<A, B>(fn: (a: A) => B): (m: Maybe<A>) => Maybe<B> {
return function morphism(ma) {
return ma.fold({
just: (a) => { return new Just(fn(a)) },
export function bind<A, B>(fn: (a: A) => Maybe<B>): (m: Maybe<A>) => Maybe<B>
return function morphism(ma) {
return ma.fold({
export function zipWith<A, B, R>(fn: (A, B) => R): ((ma: Maybe<A>, mb:
Maybe<B>) => Maybe<R>) {
return function(ma, mb) {
</> </>
@cattsmall@cattsmall
Clothing
Art:Ariel Cotton www.argoncobalt.com
Photo:Brady Dale for Technically Brooklyn
@cattsmall@cattsmall
Food
Art:Ariel Cotton www.argoncobalt.com
Photo:Brady Dale for Technically Brooklyn
@cattsmall@cattsmall
Robots
Credit:Boston Dynamics
www.bostondynamics.com
Credit:Pepper by SoftBank
http://www.tokyotimes.com/stores-softbank-will-run-robots/
@cattsmall@cattsmall
In summary:● Focus on the project, not the tools.● Pick whatever language & framework will
make your project happen.● You can use code to create more than apps.● Celebrate what you’ve made! Don’t get stuck
on what you couldn’t make.● You already are a real programmer.