Category: JavaScript
JSLint and JSHint helps to avoid terrible mistakes in JavaScript code
Smashing Magazine and JavaScript Weekly are reminding all JavaScript coders that there are tools to validate the code: JSLint and JSHint. Those who are accustomed to compiled languages will find it helpful. But not only those... Read Article at: http://www.smashingmagazine.com/2015/02/18/avoid-javascript-mistakes-with-static-code-analyzer/
Do JavaScript the right way
Here are some great resources about JavaScript code style, best practices and tips and tricks. Worth to get familiar with them: http://jstherightway.org/ http://javascript.crockford.com/code.html http://modernweb.com/2013/12/23/45-useful-javascript-tips-tricks-and-best-practices/ http://www.thinkful.com/learn/javascript-best-practices-1/
Web development done well: WordPress web coding standards
We all know that mess that grows in CSS, JavaScript and HTML files. There is no compilers as in static typed programming languages that will keep you from doing that mess bu there are Clean Code standards. The team working on files should keep common standard and follow best practices. It is a failure if each … Continue reading Web development done well: WordPress web coding standards
jQuery: prevent copying elements from webpage
Want to prevent users copying text or images on your website? Or maybe you need to add custom behaviour on Ctrl+C click event? With jQuery you can intercept the event of copying, pasting, cutting or dragging & dropping the element on your webpage. Prevent copying In my case I needed to prevent copying images on … Continue reading jQuery: prevent copying elements from webpage
JS: infinite scroll examples
There are few alternatives to implement infinite scrolling web pages, like facebook or twitter. The site: http://www.sitepoint.com/jquery-infinite-scrolling-demos/ lists the best ones and shows some examples of usage with clues when which solutions will fit, and in which cases will not. One of the solutions I am going to deploy on karomile.com soon.
Why Rob Ashton hates and loves JavaScript
Rob Ashton in his talk is exposing JavaScript drawbacks, strengths, and - what is most valuable - best practices and important details to consider while coding JavaScript. Good to watch and get few good advices from it. http://www.youtube.com/watch?v=PV_cFx29Xz0 Session was held on DevDay 2012 in Kraków, Poland.
Javascript: JSON tutorial
JSON is a notation derived from Javascript. It is open and human-readable, therefore commonly used with other technologies (see this post, showing how to use it with Java/Android). Here are some basic operations with JSON in JavaScript: 1. Create simple JSON var jsonMessage = { "message": "statusUpdate", "object": "object-1" } This is how result will … Continue reading Javascript: JSON tutorial