ALL


  How to choose JavaScript template engine?

With the increase of density of web front end development, AJAX and JSON are used more and more frequently, it's necessary to use many tags in front end development.You may have a JSON object as below:var data={  email: 'terry.li@gbin1.com,  gender: 'male'  }Then you need to organize the JSON data into page elements.var email, gender;email= '' + data.email+'; gender= '' + data.gender +'; $('#contentwrapper‘).append(content).append(gender);The output is very simple:terry.li@gbin1.com MaleIf only simple codes are generated, then it's fine. However, if a page uses many t...

5,779 0       TEMPLATE JAVASCRIPT TEMPLATE ENGINE


  Some tips for writing proper emails

Email is now becoming one necessity of working. We may receive hundreds of emails everyday, they may from our colleagues, friends or clients. We need to exchange ideas, arrange meetings , asking for help etc though email in our work. A proper email can help us achieve what we want to achieve. Here we share some tips for writing a proper email.At the beginning of an email : Thank the reader is a good way to start the email, thank the reader may make the reader feel happy, especially when you ask for some help later.Some commonly used sentences for starting an email:Thank you for contacting us. ...

723,624 10       EMAIL TIP FORMAT TEMPLATE


  Scala, Patterns and The Perl Effect

He tried to understand that one concept for a couple of months before it made sense to him. Admittedly, partial functions are not intuitive for anyone who has been schooled in traditional programming, but still, looking at the problem he was trying to solve it seemed like James was required to expend too much effort relative to the simplicity of the problem (as he pointed out, now that he understands the concept it seems straightforward).He showed me the code, and it was basically a situation where there was common code in the existing function, and the partial function completion allowed the ...

3,474 0       PATTERN SCALA PERL TEMPLATE PARTIAL FUNCTION


  ECMAScript 6 looks promising

I am quite excited about ECMAScript 6, after watching David Herman’s talk at YUIConf 2011. I am especially looking forward to seeing some of these features landing up on V8 soon, so that I can use it on node.js. These additions will solve many common sources of frustration that newcomers face when working with JavaScript. Although the spec is not expected to be finalized till 2013 (so says David in the video), a lot of these features are expected to hit Chrome and Firefox much before that. I am personally looking forward to the following: let keyword The let keyword has a block scope. ...

1,715 0       JAVASCRIPT NEW FEATURE ECMASCRIPT 6 LET TEMPLATE