Posts

Showing posts with the label Developer Toolkit

Sass

Remember in our first JavaScript Developer Toolkit article I've told that you would need to install Ruby. Today we'll see why and the reason is Sass . Sass is an extension of CSS3 that helps you creating better stylesheets with less effort. Sass frees you from repetition and gives you tools to be creative. Since you can implement changes much faster, you’ll be able to take your design in a more boldly manner. Your stylesheets will be able to keep pace with changes, all while producing standards-based CSS you can use in any environment. As mentioned already, the Sass processor is written in Ruby. However Ruby environment has to be only installed on the development environment, so it doesn't matter how you write your server side. You only deploy the generated CSS files to production environment. gem install sass Sass offers a lot of features such as variables, nesting, importing, mixins and many more. I'll cover the most important of them, but make sure to read ...

Bower and Require.js Integration

In the past we've talked about Bower package manager and God knows, I have been obsessively repeating myself about using Require.js  and it's integration with object oriented programming . So how do they integrate with each other? In this article we'll cover the integration of both and see how they get along together. Bower Initiation Let's start by defining, which packages we want to use in our project by filling the bower.json . You can create one yourself or run bower init command for interactive creation. { "name": "RequireJS Starter", "version": "1.0.0", "dependencies": { "jquery": "1.9", "underscore": null, "requirejs": null } } So we'll be needing jQuery, Underscore and of course Require.js. Putting null as a version number will download the latest version. Now run bower install to download all the packages into bo...

CSS and JavaScript Live Editing

Image
As planned we're continuing our tradition to present JavaScript Developer Toolkit. Last time we've talked about Emmet and today's article I'd like to devote to HTML/CSS/JavaScript editing. How often do you change your CSS rules and JavaScript within your browser? How often do copy/paste the changes made into appropriate resource files? It's time to do this Zen style. IDE integration This is my preferable way to develop and live-editing the changes. Let me show you why. Wouldn't it be cool if you could develop using your beloved IDE with all the neat plugins it offers and see the changes reflected live in the browser? Well - you can, with both Sublime Text and Webstorm we've talked about during our previous JavaScript toolkit article . You do this by installing JetBrains IDE Chrome  extension for Webstorm: or Emmet LiveStyle for Sumblime Text: Look into their sites and see how properly things should to be configured. Both tools only of...

JavaScript Developer Toolkit - Emmet

This is a second article about JavaScript developer's toolkit and today we're going to talk about Emmet . If you've missed the first article about the useful tools for JavaScript developers, have a look at it here . What is Emmet? Essentially it gives you shortcuts you can type that expand into full HTML or CSS. Like nav>a*5  will expand into a <nav> tag with eight links inside it with empty hrefs . <nav> <a href=""></a> <a href=""></a> <a href=""></a> <a href=""></a> <a href=""></a> </nav> Or, try div.module*2>p*2>lorem and press tab . Firstly it will convert div.module*2  into two < div> elements and associate them with a module css class. After that it will look at >p*2  and create two <p> elements. In the end >lorem  will fill the paragraphs with famous lorem ipsum text. Take a look at the prod...

What Is Bower And Why You Need It

So you've heard everyone talking about this mythical creature called Bower. But what exactly is it? Better to see once than to hear 100 times, so before we proceed any further take a peek at their  site . The problem Recall how you used to manage, and maybe still do, your 3rd party libraries. Firstly you went to their official site or maybe github repository. After finding the latest minified version, you would  get something like this - xxx-1.0.1.min.js, then  downloaded and saved it into your project. At last referencing it in the HTML would do the trick by copy pasting the script tag - <script src="//code.jquery.com/jquery-1.11.0.min.js">. But what would have happened if a new version came up? Well, if you were aware of the update, you would repeat the process again and put xxx-1.0.2.min.js in your library folder. Then you would change the reference in your HTMLs or JavaScript files. You could of course rename the file to xxx.js and omitting the version...

JavaScript Developer Toolkit

The world has changed as it must. JavaScript developers are no longer considered the outcasts of developer community, but a boutique club gaining followers like no one else. However with its popularity and chic, comes the complexity and burden of maintenance. A JavaScript developer can no longer write one's code in a text editor and rely on ad-hock solutions copy pasted from various forums, but surround oneself with professional tools specifically designed and customized for the language. In this article, I'll present  must have  tools, which will assist any JavaScript developer in the crafting of awesomeness. Environment Your OS is largely dependent upon our habits or company's policy, however for server side developers, I would strongly suggest migrating towards Unix base OS like OS X or Linux of some sort - my preference is Ubuntu. The reason behind the choice is the enviroment on which your node.js application runs on, which is Unix machine. The sooner you work on the c...