Interview Questions – ES6 Questions


  1. What is traceur?
    • ES6 -> ES5
    • Traceur is a JavaScript.next-to-JavaScript-of-today compiler that allows you to use features from the future today. Traceur supports ES6 as well as some experimental ES.next features.Traceur’s goal is to inform the design of new JavaScript features which are only valuable if they allow you to write better code. Traceur allows you to try out new and proposed language features today, helping you say what you mean in your code while informing the standards process.JavaScript’s evolution needs your input. Try out the new language features. Tell us how they work for you and what’s still causing you to use more boilerplate and “design patterns” than you prefer

     

  2. What are the required node_modules to makes traceur working properly
    • $ npm install traceur
      $ npm install traceur-runtime
  3. Why do you need traceur-runtime?
  4. What is the node command to compile ES6 to ES5?
Advertisement

Semantic Snips – Update


I am having some spare time. So I am taking the liberty to compile Semantic Snippets.

I’m using few handpicked resources to ensure everything is consistent. So all the code will be mash up of

At this stage I do not intend provide comprehensive guide to how html5 should be used as above resources are more than enough. Just compilation of snippets inline with best practice for different use cases with references to additional reading materials.

Some of this issues may be subjected to debate. I certainly welcome that

You can view the progress here:

https://github.com/Shavindra/SemanticSnips/

Been a while… – Update


It’s been a very long time since my last post. Last year been busy with uni, work working on couple of very exciting projects and alot of travelling.

I am quite excited about new year. New plans, priorities and focus. To start with there are few personal projects that been put on hold for various reasons which I decided to take up on.

One of them is my website. I am sure all the designers agree that designing for yourself is the hardest thing (possibly only second to designing for someone close :p). But I am quite excited by this because this allows me a chance to explore and try some bleeding edge web development techonologies and do things my way.

So in the coming weeks I will be sharing my progress.

HTML5 Jungle – Semantic Markup


Last few weeks I’ve been looking deep in to various issues related to web. One specific area which I am militant about is semantic markup. I strongly believe that documents should be laid out in proper manner in a way that machines can understand and interpret it. Even though for the layman may not realise this.

With HTML5 designers/developers are really spoilt with markup (there are 104 HTML5 compatible tags). But that’s just the easy part! Throw in Global attributes and values then it becomes more interesting. Then add other markups like schema, WAI-ARIA spec etc… then things can drive you insane.

I am pretty sure those who actually care sometimes struggle to determine how this new markup should be used. Easier option for us it to ignore the markup and go back to the basics. However this does not help the progress. So this mean we spending time to understand the content as well as deciphering HTML5 spec in order to find best fit markup.

Boilerplates

There are plenty of boilerplates out there which we can use readily. Danger is it’s very easy to take this for granted and be lazy and build a website/app and ignore the website use cases also miss out on rich experiences we create because we are not aware of it since it’s not in boilerplate.

Truly understanding the HTML5 spec (and browser capabilities) allow designers/developers to implement well thought site architecture.

For example how to design layout of an article with headings content and pictures. Like we do with a print design to put in to perspective. Then use appropriate tags to mark sections like <time> so that machines and robots (SEO, Screen readers etc) can understand and in turn allow us to build better rich user experience for users.

So I’ve decided to spend time building/compiling an extensive snippet library and concentrate on Semantic markup to explore all the possibilities of HTML5 and how it can be used in different contexts/user case without bloating the code.

SemanticSnips

There are plenty of tutorials and discussions revolving around HTML5 Semantics like HTML5 Doctor, HTML5 Rocks etc.

Issue I personally have with these kind of posts is they can be sometimes too long to read. So idea here is compile list of markups which can be mixed and matched.

I will be doing these snippets as modules which can be interchanged without upsetting semantic markup and  allowing the code to be adopted to rapidly to work with overall unique user cases that may arise.

Github: https://github.com/Shavindra/SemanticSnips

A word of Caution

I like to iterate a point regards to this. That these snippets can be subjective and depend on how you perceive the content and may not work out.

For example just look through here you will understand what I mean and Dr Richard Clark perfectly summed it up.

Java Tutorial – Installing JAVA SE Development Kit (JDK)


Before writing a JAVA program first need to download JDK which allows write JAVA and compile the code.

  1. Download appropriate JAVA SE Development Kit (JDK) for your operating system
  2. Run the Installation
  3. Navigate to C:\Program Files\Java\jdk1.7.0\bin (this location may change in any instance you want to navigate to bin in JDK installation) make sure you have the .exe files there.
  4. copy the location of the bin C:\Program Files\Java\jdk1.7.0\bin
  5. Right click on computer and select properties > Advanced System settings > Environment variablesenvironment variables location
  6. Click on New and Variable name as Path and variable value as location of the bin so in my case it would be C:\Program Files\Java\jdk1.7.0\binUser Variable
  7. Click OK  OK
  8. To make sure compiler is working and ready for JAVA programming open cmd and run JavaC and if Java Compliler is working should get some random code as belowJavaC Working
Special thanks to Bucky Roberts for the clear accompanying video tutorial