JavaScript and different ***Script
21 May 2015Today I'll just share my opinion so, no useful information below :) There are a lot of discussions around TypeScript, CoffeeScript, and other languages translated to JS. Let me add several words to this “holly war”:) I was codding for a couple of months with TypeScript. It was a complex UI with Knockout.js and Durandal. Yesterday I switched to a pure JavaScript task. I have to help with other our projects and I have to write very simple JS code,…Template project for Node.js with Express
28 April 2015Overview If you are building node.js applications, you may need some template project to start quickly and not to perform simple configuration every time. This configuration may contain access to MongoDB, security infrastructure and so on. My colleague Anton Dimkov has committed his template on Github. Also, the template can be installed with npm. Features Configured simple routes for express Integrated MongoDB access with mongoose Integrated security with password hashing based on bcrypt-nodejs Login page Session management with express-session Logging…Explicit call to RequireJS in TypeScript
31 March 2015I'm working on a mobile application with Apache Cordova (http://cordova.apache.org) technology. And one of the tasks was to load a JSON localization file from the content folder. The first idea and actually the most correct (as for me) is to load the file with RequireJS text plugin (https://github.com/requirejs/text). The plugin allows loading text file in the same way as usual modules and do not evaluate the content, but return it as a string. So you just specify something like the…Fornt-end with Knockout.js, require.js and TypeScript
22 March 2015Let's talk about how to correctly organize the front-end with Knockout.js require.js and TypeScript. The problem If we read TypeScript handbook we will find a lot of information about how to load modules with AMD and require.js, and everywhere in samples, we will find something like this import module=require('./module'); But in a real application we always have some folder structure to keep the files organized, we are using different package managers and so on, thus in most cases import should…