Clever Code

Clever Code

Getting into JS and come across code that many will consider ‘clever’ code. Is this code that is unreadable or is it the features that the language provides? I’m not really going to get into that discussion here – this post will hopefully instead help show and explain what is going on with such code. …

Read More Read More

TS1153: let declarations are only available when targeting ECMAScript 6

TS1153: let declarations are only available when targeting ECMAScript 6

Are you using trying out Typescript for the first time and getting the error “TS1153: let declarations are only available when targeting ECMAScript 6” when trying to declare variables with the “let” statement? Well you need to update to a more recent Typescript version – thankfully its very easy (if you have npm installed) 🙂 …

Read More Read More

Ext.ComponentQuery.query or Ext.getCmp

Ext.ComponentQuery.query or Ext.getCmp

When you start with Sencha touch, one of the first things you have to find out is the difference between the following. Ext.ComponentQuery.query or Ext.getCmp? Well both do a similar task and yet both are very different. When using them in your Sencha App they will return an item from the visual onscreen assets depending …

Read More Read More