did i do the right thing?

46
Did I do the right thing? @clasense4 for Himatif UINSGD Bandung 26 April 2014

Upload: fajri-abdillah

Post on 08-Sep-2014

134 views

Category:

Career


0 download

DESCRIPTION

This is about my professional experience as a web developer, don't do my mistake. Because now you have a shortcut, and know the right thing, I can bet, in next 2 or 3 years, you can better than me.

TRANSCRIPT

Page 1: Did i do the right thing?

Did I do the right thing?

@clasense4 for Himatif UINSGD

Bandung 26 April 2014

Page 2: Did i do the right thing?

Time only 24 hours a day.

I wish I have more

Page 3: Did i do the right thing?

Project is everywhere.And sometimes the job come to

You,

but You are in a middle of big job.

Confused, take the job or not.

Page 4: Did i do the right thing?

Not in ninja world, I wish I can learn

“kage bunshin no jutsu”

You are in real world

Page 5: Did i do the right thing?

Can I really trust You?

I will tell my mistake, so you shouldn’t do the same like me. Take it or leave it.

Page 6: Did i do the right thing?

Do You type fast?

Page 7: Did i do the right thing?

Code editor anyone?

Page 8: Did i do the right thing?

sublimetext.com W/L/M

Page 9: Did i do the right thing?

Atom.io Mac

Page 10: Did i do the right thing?

Brackets.io W/L/M

Page 11: Did i do the right thing?

lighttable.com W/L/M

Page 12: Did i do the right thing?

Until now, I prefer to use sublime

text

Page 13: Did i do the right thing?

framework?

Page 14: Did i do the right thing?

Framework is great.

It designed to simplify our life.

well engineered and well maintained.

Page 15: Did i do the right thing?

Support, from open source community.

Page 16: Did i do the right thing?

Do not reinvent the wheel, but make it perfect.

Page 17: Did i do the right thing?

Using framework reducing headache

Page 18: Did i do the right thing?

Just follow the framework rules.

Then your job is done.

Page 19: Did i do the right thing?

73,278 is not a small number

Page 20: Did i do the right thing?

How to choose framework?

Page 21: Did i do the right thing?

Read the Documentation

silex.sensiolabs.org

Page 22: Did i do the right thing?

Read the Documentation

docs.phalconphp.com

Page 23: Did i do the right thing?

More popular mean more support and

needed everywhere.

Page 24: Did i do the right thing?

Is framework

always good?

Page 25: Did i do the right thing?

Slow vs raw programming language.

Sometimes eat more ram.

Sometimes raw programming language is

better

Page 26: Did i do the right thing?

How about (web) framework?

• Python–Django, flask, bottle, Tornado

• Ruby–Rails, sinatra

• Nodejs–Express, sailsjs

Page 27: Did i do the right thing?

How about (web) framework?

• Javascript Frontend– Angularjs, Extjs, YUI, Backbonejs,

• PHP – Symfony, Laravel, Zend Framework,

Phalcon, Code Igniter, yii, cakephp, etc.

• Java– Play, Spring MVC, JSF

Page 28: Did i do the right thing?

ConclusionI use silex as my

starting framework.

Want to reduce headache? Then use

framework.

Page 29: Did i do the right thing?

I don’t use ORM

ORM is object relational mapper.

I use propel (propelorm.org).

Let me show some code.

Page 30: Did i do the right thing?

I don’t test my code

Page 31: Did i do the right thing?

I don’t test my code - 1

Just doing some simple test == jobs done. (in my old day).

Then bug appear, then headache.

Fixing a bug can take more time than writing a new code.

Just find a bug can take all day.

Page 32: Did i do the right thing?

I don’t test my code - 2

I want to test login form for 1000 users.So I clicked 1000 times?

I want to test API output, with 100x possibilites.So I playing with curl / postman for 100 times?

I want to test upload, is my server can handle it?So I uploaded a file, then click upload button?

How about upload 200 times?

Page 33: Did i do the right thing?
Page 34: Did i do the right thing?

Let me show some code

Page 35: Did i do the right thing?

I do not make a documentation

Who write this code? I said, while read code on my own project, on my own server.

I don’t understand my own code.

I forgot how to start my project again when it goes break.

Page 36: Did i do the right thing?
Page 37: Did i do the right thing?

Windows vs Linux environment

Page 38: Did i do the right thing?

Windows vs Linux environment

Back in 2010, I have a big project,

I don’t use framework,

I don’t make an API,

so much spaghetti code,

I don’t make a documentation,

I write in Windows,

and it doesn’t work in Linux.

Just to make sure it work in Linux can took all day long.

Page 39: Did i do the right thing?

I don’t generate my boring task

Page 40: Did i do the right thing?

Bonus Motivation?

Page 41: Did i do the right thing?

Never stop to learn.

We eat rice, we have 24 hours,

we have same source (google),

If I can do it, then you can do it too

Page 42: Did i do the right thing?

Some Resources• Hackernews (news.ycombinator.com)• Tutorialzine.com• Php weekly, redis weekly, nosql weekly,

python weekly (weekly news)• Code.tutsplus.com• Sitepoint.com• Digitalocean.com

Page 43: Did i do the right thing?

Life is like MMORPG

Page 44: Did i do the right thing?

If You don’t take risks

You can’t create a future

Page 45: Did i do the right thing?

What if I need some help?

dimensiweb

(facebook groups)

Page 46: Did i do the right thing?

More about me?about.me/fajriabdillah