34
Getting Started with Dev Tools March 2017 http://bit.ly/tf-dev-tools

Getting started with dev tools (atl)

Embed Size (px)

Citation preview

Page 1: Getting started with dev tools (atl)

Getting Started with Dev Tools

March 2017

http://bit.ly/tf-dev-tools

Page 2: Getting started with dev tools (atl)

About me

• Jasjit Singh

• Self-taught developer

• Worked in finance & tech

• Co-Founder Hotspot

• Thinkful General Manager

Page 3: Getting started with dev tools (atl)

About us

Thinkful prepares students for web development & data science jobs with 1-on-1 mentorship programs

Page 4: Getting started with dev tools (atl)

About you

• A lot of experience

• A little experience

• No experience

Page 5: Getting started with dev tools (atl)

Key Topics

• HTML/CSS Live Editing

• Mobile & responsive testing

• Editing with “Sources”

• Using the console

• Javascript Debugging

• Network performance

Page 6: Getting started with dev tools (atl)

Setup — Download Chrome

• Standard for developers (Google!)

• Simple & polished

• Mobile & Desktop

• Firefox & Safari are OK

• Avoid Internet Explorer!

Page 7: Getting started with dev tools (atl)

What are DevTools?

Page 8: Getting started with dev tools (atl)

How do I open DevTools?

• Go to a page in Chrome

• Right Click => Inspect

• Also — Cmd + Shift + I

Page 9: Getting started with dev tools (atl)

What are the benefits?

• Inspect Document Object Model (DOM)

• Update HTML/CSS in real-time

• Test responsive and mobile friendliness

• Run Javascript in console

• Test & debug Javascript

• Measure & improve performance

Page 10: Getting started with dev tools (atl)

Why live editing for HTML/CSS?

Page 11: Getting started with dev tools (atl)

Typical Workflow

• This style (or code) isn’t working!

• Open HTML/CSS/Javascript

• Guess where the problem is

• Make change

• Save change

• Refresh page

• Did it work?

Page 12: Getting started with dev tools (atl)

Workflow with DevTools

• This style (or code) isn’t working!

• Open DevTools (“Inspect”)

• Make change

• Did it work?

Page 13: Getting started with dev tools (atl)

What am I looking at?

DOM Styles

Page 14: Getting started with dev tools (atl)

Live Editing HTML

• Inspect element

• Expand/Collapse

• Edit HTML

• Add attributes

• Click & drag

• Delete

Page 15: Getting started with dev tools (atl)

Challenge

• Go to facebook.com

• Change your name to a friend’s name

• Try and change picture

Page 16: Getting started with dev tools (atl)

Live Editing CSS

• See computed CSS styles

• CSS for states

• Add CSS properties

• Modify CSS properties

• Remove CSS properties

• Links to CSS source files

Page 17: Getting started with dev tools (atl)

Challenge

• Change background to your favorite color

• Add a fun border to the post button

• Delete Newsfeed (advanced)

Page 18: Getting started with dev tools (atl)

Sources Features

• Prettify

• Persistent changes

• Local modifications

• Revert

• Save As

Page 19: Getting started with dev tools (atl)

Mobile Demo

• Responsive sizes

• Device

• Frame

• Media queries

• Rotate

Page 20: Getting started with dev tools (atl)

Console Features

• Interact with page in real-time using Javascript

Page 21: Getting started with dev tools (atl)

Console Demo

• Basic JS commands

• Grab/manipulate element

• Quick scrape

Page 22: Getting started with dev tools (atl)

Challenge

• Go to https://dream-walker.herokuapp.com/

• Change the title using Javascript in the console

Page 23: Getting started with dev tools (atl)

Javascript Debugging is Pain

Page 24: Getting started with dev tools (atl)

Debugging Features

• See where Javascript is failing

• Inspect variables

• Step through code slowly

Page 25: Getting started with dev tools (atl)

Debugging Demo

• http://samplerdj.com

• Add breakpoint (+ step through)

• Inspect variables

• Pause on caught & uncaught exceptions

Page 26: Getting started with dev tools (atl)

Load times are important!

• Yahoo: reducing page load by .4 seconds increased traffic by 9%

• Google: increasing page load times from .4 to .9 seconds decreased traffic by 20%

• Amazon: every .1 second increase in load time decreases sales by 1%

Page 27: Getting started with dev tools (atl)

Network Features

• Test load times

• Throttle to different speeds

• See which files are cached or not

• See which files are causing slowdowns

• See file download sequence

• Google PageSpeed!

Page 28: Getting started with dev tools (atl)

Network Challenge

• Go to https://dream-walker.herokuapp.com/

• What is page load time?

• What files are causing slowdowns?

• What do you recommend as a fix?

Page 29: Getting started with dev tools (atl)

Advanced Topics

• CPU profiling

• Memory profiling

Page 30: Getting started with dev tools (atl)

More about Thinkful

• Anyone who’s committed can learn to code

• 1-on-1 mentorship is the best way to learn

• Flexibility matters — learn anywhere, anytime

•We only make money when you get a job

Page 31: Getting started with dev tools (atl)

Our Program

You’ll learn concepts, practice with drills, and build capstone projects — all guided by a personal mentor

Page 32: Getting started with dev tools (atl)

Our Mentors

Mentors have, on average, 10+ years of experience

Page 33: Getting started with dev tools (atl)

Web Development Syllabus

• Frontend Development (HTML, CSS, Javascript)

• Frontend “Frameworks” (React.js)

• Backend Development (Node.js)

• Electives (Python, Ruby, Swift, Angular, UX)

• Computer Science Fundamentals

• Technical interviews + Career prep

Page 34: Getting started with dev tools (atl)

October 2015

Questions? [email protected]

schedule a call through thinkful.com