This comprehensive lecture focuses on an array of essential tools for JavaScript development. It begins with a walkthrough of integrated development environments like Visual Studio 2013 and Notepad++, followed by a deep dive into the capabilities of Sublime Text 2 along with its useful plugins. The session then transitions into a robust exploration of various debugging tools, detailing the distinctive features of Google Chrome / Opera Developer Tools, Firefox Firebug, and Internet Explorer F12. By the end of the lecture, attendees will have gained substantial knowledge of these crucial tools that aid in efficient and effective JavaScript development.

Topics covered:

  • JavaScript Development Tools
    • Visual Studio 2013
    • Sublime Text 2 with plugins
    • Notepad++
  • Debugging tools
    • Google Chrome / Opera Developer Tools
    • Firefox Firebug
    • Internet Explorer F12
  • Utilities

Video (in Bulgarian)

Presentation Content

JavaScript Tools

  • JavaScript is an interpreted language
    • It is run and executed by the browser
    • The means to acquire the JavaScript code are trivial
      • No matter how or where it is coded
      • A simple Notepad will do the trick
  • Yet, there are many tools that easify JavaScript coding
    • Like editors, debuggers, etc…

JavaScript Development Tools

  • All a developer needs for coding JavaScript is a text editor
    • Notepad/Notepad++ will do the trick
  • Yet, JavaScript is one of the popular guys now
    • Many, many tools for coding JavaScript
    • Sublime Text 2 / Sublime Text 3
    • Visual Studio 2012/2013
    • Adobe Brackets, Cloud9, Telerik AppBuilder
    • JavaScript Development Tools for Eclipse

Sublime Text 2

  • Sublime Text is a sophisticated text editor for code, markup and prose
  • Sublime text has many useful features, not directly related to coding
    • Navigation between files
    • Multiple selection
    • Command Palette
    • Customizable – write your own plugins

Working with Sublime Text 2

  • Goto Anything
    • Easier navigation between files
    • Triggered with “CTRL + P
  • Command Palette
    • Execute commands
    • Triggered with “CTRL + SHIFT + P
  • Multiple Selection
    • Change at multiple places at the same time
    • Hold CTRL and right-click

Sublime Text 2 Plugins

  • Plugins extend the power of Sublime Text
    • Code highlighting
    • Autocompletion / intellisense
    • And more
  • Plugins can be installed two ways:
    • Download the package, paste it in a special folder of Sublime Text and you are ready to go
    • Or, install the “Package Control” plugin and then install plugins directly from Sublime Text

Sublime Text 2 Useful Plugins

  • There are almost indefinite number ofSublime Text 2 plugins
  • List of useful Sublime Text 2 plugins
    • IndentGuides _ _ – marks the indents (tabs)
    • StatusBarExtension _ _ – adds encoding to the status bar
    • ClipboardHistory _ _ – history of Copy & Paste
    • Nettuts + Fetch – easier fetching of files
    • SiderBarEnhancements _ _ – extensions to sidebars
    • SublimeCodeIntel _ _ – adds code intellisense

Sublime Text 2 JavaScript Plugins

  • List of useful plugins for JavaScript development:
    • Less 2 css – compiles LESS code to CSS
    • JsFormat – formats JS code
    • SublimeLinter – adds static code analysis for JS
    • BracketHighligher – highlights opening and closing brackets
    • jQuery – adds jQuery bundles

Visual Studio

  • Visual Studio is the main development tool for creating applications with the .NET framework
    • ASP.NET, WPF, Silverlight, SharePoint, Windows 8, etc…
  • Until Windows 8 and version 2012, Visual Studio was not a pleasant tool for coding JavaScript
    • Microsoft put JavaScript into the core of Windows 8, so their development tool needed to be done right
    • Use Visual Studio 2012 or Visual Studio 2013

Visual Studio 2012/2013

  • VS 2012/2013 are pretty much ready-to-use for JavaScript coding
    • They have pretty good intelli-sense, code highlighting, etc…
    • There are paid and free versions (Visual Studio 2012/2013 Web Developer)
    • Visual Studio Code is a free version
      • For now only works for HTML/CSS and JS

Jetbrains WebStorm

  • Jetbrains WebStorm is a ready-to-use IDE for JavaScript development
    • Including web development with HTML and CSS
  • WebStorm has most of the necessary features for web development
    • Code highlighting, code completion
    • Has not that many plugins
  • WebStorm is a paid software
    • Yet, Jetbrains offer a discount (100%) for students

Debugging JavaScript

  • Sadly, no intelligent way of debugging client-side JavaScript
    • The only way to debug JavaScript is through the browser
  • Fortunately all browsers have their own debugging tool/plugin that makes it easier
    • Firefox has Firebug
    • Chrome and Opera have Web developer
    • Internet Explorer has F12

JavaScript Utilities