background preloader

Work-related

Facebook Twitter

JSLint,The JavaScript Code Quality Tool. Code Conventions for the JavaScript Programming Language. This is a set of coding conventions and rules for use in JavaScript programming. The long-term value of software to an organization is in direct proportion to the quality of the codebase. Over its lifetime, a program will be handled by many pairs of hands and eyes. If a program is able to clearly communicate its structure and characteristics, it is less likely that it will break when modified in the never-too-distant future. Code conventions can help in reducing the brittleness of programs.

All of our JavaScript code is sent directly to the public. JavaScript Files JavaScript programs should be stored in and delivered as .js files. JavaScript code should not be embedded in HTML files unless the code is specific to a single session. Whitespace Where possible, these rules are consistent with centuries of good practice with literary style. Blank lines improve readability by setting off sections of code that are logically related. while (true) { Avoid excessively long lines. Use line comments. Is. Mobile Navigation Design & Tutorial. One of the common challenges when designing responsive design for mobile is the navigation menu. If the site has many sections or pages, it gets challenging to squeeze all the items into a small mobile resolution.

The navigation most likely ends up running into multiple lines or the buttons stacking on top each other. So I'm going to review some of the design solution and provide a quick tutorial on how to create a mobile navigation with jQuery. View Demo Mobile Nav Problem The screenshots below show the navigation layout issues on mobile. Solutions 1) Dropdown One of the commonly used solution is to convert the navigation into a select dropdown. 2) Display as Block Another quick fix is set each menu item as block elements so they display vertically. 3) Menu Icon The last solution that I'm going to review is to use a menu icon/button to toggle the navigation.

Mobile Navigation with jQuery (view demo) Below is the sample navigation HTML used in this tutorial: jQuery Code Final Demo Update: Semantic Versioning 2.0.0-rc.1. QUnit. Jquerytesting [licensed for non-commercial use only] / FrontPage. This wiki is intended to plan the roadmap and tasks for the jQuery testing team. The testing team covers the development of QUnit, TestSwarm and related tools for continous integration, helping projects use and integrate these and promote their usage.

Meeting You can find us on IRC/Freenode bi-weekly in #jquery-meeting Thursdays, Noon EST (9am PST, 6pm GMT+2), iCal feed hereoutside of that in #jquery-dev Look for jzaefferer and Krinkle. You can find bi-weekly updates about what's happening on jquery.org (usually notes from the meeting). QUnit QUnit is already widely used and probably one of the most popular JavaScript unit testing frameworks. Roadmap Ongoing: TestSwarm TestSwarm is used by the jQuery project itself for jQuery Core, jQuery UI, jQuery Mobile, jQuery Color and QUnit. There are now a few tools available that make integration into Jenkins pretty easy (node-testswarm) as well as integration into BrowserStack (testswarm-browserstack). Testswarm/README.md at master · jquery/testswarm.