Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UXINDIA17 - Let's Code to prototype

uxindia
November 20, 2017

UXINDIA17 - Let's Code to prototype

Let's Code to prototype

uxindia

November 20, 2017
Tweet

More Decks by uxindia

Other Decks in Design

Transcript

  1. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES VARIABLES let a =

    `This is a ${fruit}`; const count = 100; let conference = { name: 'UX India', year: 2017, venue: 'Bengaluru' }; let birds = [ 'sparrow', 'eagle', 'peacock', 'hummingbird' ]; let shoppingList = [ { name: 'Cheese', count: 1 }, { name: 'Milk', count: 1 }, { name: 'Cucumber', count: 2 }, ];
  2. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES CONDITIONALS const color =

    a === 'apple' ? 'red' : 'green'; if (a === 'apple') { // ok its an apple } else { // some other fruit }
  3. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES LOOPS for (let x

    = 0; x < 10; x++) { console.log('I will not write on the wall again.'); } let morning = true; while (morning) { // show the sun }
  4. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES FUNCTIONS function makePizza() {

    const config = { flavor: 'Hearty Veggies', base: 'Deep Dish', size: 12, sauce: 'normal', wellDone: true }; applyConfig(config); notifyDone('Pizza Ready!'); } function applyConfig(config) { // Use the config and prepare the pizza } function notifyDone(msg) { console.log(msg); }
  5. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES FUNCTIONS function make5Rectangles() {

    return [0, 1, 2, 3, 4].map(y => { return ( <Rect x={0} y={100 + y * 10} /> ); }) } const onOkButtonClick = () => { console.log('Ok great!'); };
  6. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES CLASSES class ColorBar extends

    React.Component { static defaultProps = { color: 'red' }; state = { currentValue: 'blue' }; constructor(props) { super(props) } render() { } componentDidMount() { } }
  7. MODULES CLASSES FUNCTIONS LOOPS CONDITIONALS VARIABLES MODULES export default constants

    = { apiURL: 'http://localhost:3000', token: '1fafsr23fasdf' }; export function log(){} import constants, {log} from './constants'; log(constants) constants.js service.js
  8. 00 05 10 15 20 25 30 35 40 45

    50 55 12 1 2 3 4 5 6 7 8 9 10 11 Let's Code to Prototype Oct 20 Friday COMPONENTS ALL THE WAY
  9. 00 05 10 15 20 25 30 35 40 45

    50 55 12 1 2 3 4 5 6 7 8 9 10 11 Let's Code to Prototype Oct 20 Friday COMPONENTS ALL THE WAY
  10. 00 05 10 15 20 25 30 35 40 45

    50 55 12 1 2 3 4 5 6 7 8 9 10 11 Let's Code to Prototype Oct 20 Friday COMPONENTS ALL THE WAY
  11. { CODE } { CODE } { CODE } {

    CODE } { CODE } { CODE } { CODE } { CODE } { CODE }
  12. LET’S CODE TO PROTOTYPE ACCOMPLISHMENT UNLOCKED @pavanpodila PAVAN PODILA ★

    Picked up JavaScript ★ Learnt the React UI framework ★ Did Component-oriented Development ★ SVG ★ Built many Watch Faces