Developer Tools
- Browser Tools
- fix your code in the page
- Code Editors
- how do you edit your code?
- Version Control
- take control of your changes
- Javascript Linters
- HTML Validation
- everyone loves valid html
Browser Tools
- Layout and Style
- Javascript debugging
- Performance tools
- Network Monitoring
- Mobile simulation
- Absolutely essential!
Page Inspector
- View and Modify HTML
- Walk the DOM
- View and change CSS
- Examine Box model
- Look at Fonts
- Ctrl-Shift-C
(Cmd-Option-C on the Mac & Linux)
Let's check it out!
Web Console
- View warnings and errors
- Instant REPL
- Special helper commands, like help()
- Control-Shift-K
(Command-Option-K on the Mac)
Let's check it out!
Javascript Debugger
- Examine Javascript code
- Set breakpoints
- Pause on exceptions
- Pause on events (click)
- Step through code
- Control-Shift-S
(Command-Option-S on the Mac).
Let's check it out!
Network Monitor
- Inspect all network requests
- images, css/js files, ajax
- Timeline
- how long things take to load
- Edit and resend
- great for debugging server bugs
- Network profiler
- See how site loads with/without cache
Let's check it out!
Javascript Profiler
- What is javascript doing?
- Hot functions
- which get called the most
- Where to optimize
- lowest hanging fruit first
Let's check it out!
Neato!
- Responsive Design View
- 3D view
- Paint Flashing Tool
- what the renderer is doing
Let's check it out!
Text Editors
- Integrated Development Environments
- Eclispe, Visual Studio, XCode
- write code, debug, deploy
- resource heavy, sometimes buggy
- Light-weight editors
- Sublime Text 2, Notepad++, Atom.io
- balance between features and resource use
- Hardcore
- Steep learning curve, but highly configurable
Version Control
- Git, Mercurial, Subversion, CVS
- Helps with collaboration
- Branching, merging, roll-back
- Helps with debugging
- Helps you help yourself
- Use locally to track changes, debug
JS Linting
- Examines your code for mistakes
- unused/unreachable variable
- Finds bugs
- Improves code quality
Let's check it out!
W3C Validation
- Examines HTML
- Can fix display issues
- Fixes cross-browser differences
- browsers guess when things are invalid
Are you valid NTU?