-
As a mid-life greabeard that started my career on Z/OS / MVS writing JCL and running COBOL and SAS jobs, I like JavaScript. It doesn't have the obtuseness of C, the ultra-strict type-checking of Pascal, the verbosity of COBOL, class chaos of Java, the mind-bending notation of PostScript, nor the escapee from the loony bin mentality of SQL
Read More -
Thinking in Angular 4: Templates
Jul 28, 2018 · 2 min read ·
To understand Angular 4, after the “Hero” tutorial you should start from the Template syntax.
We highlighted some statement in red below:
Data direction Syntax Type One-way from data source to view target \{\{expression\}\} [target]="expression" bind-target="expression" Interpolation Property Attribute Class Style One-way from view target to data source (target)="statement" on-target="statement" Event Two-way [(target)]="expression" bindon-target="expression" Two-way Binding types other than interpolation have a target name to the left of the equal sign, either surrounded by punctuation (
[],()) or preceded by a prefix (bind-,on-,bindon-).The target name is the name of a property. It may look like the name of an attribute but it never is. To appreciate the difference, you must develop a new way to think about template HTML.
Read More -
Finding the good one: mithril
Feb 21, 2016 · 2 min read ·
I have just read this insightful statement on this blog article about congitive load in Javascript
jQuery is undoubtedly useful when dealing with browser quirks, but once an application grows over a few thousand lines of code, unstructured jQuery code simply becomes too difficult to maintain, and you start needing the discipline of a framework to organize code. But when you're at tens of thousands of lines of code, you start to run out of entity types to CRUD, and your application growth starts to build on top of existing concepts. This is when you need the mental shift from being a library consumer to being a reusable component author,
This clever guy is the creator of Mithril, a very small, well crafted javascript library a friend of mine pointed to (via github…):
Read More -
And so Java, the old old King is still alive.
After Scala, Clojure, NodeJS, and Dart, a new hero is knocking to its castle: Eclipse Xtend
Will he succeed? Hard to Say, but Xtend is very similar to CoffeScript: Xtend simplifies writing Java code, but it doesn’t aim take the grab the crown with a night ambush to the King’s IDE.
Read More -
Dart Sith move first
Oct 13, 2011 · 3 min read ·
So Dart Sith has just launched his first DeathStar, my young JavaScript fellow: a site devoted to the Dart language
Because I am a very old Jedi (1974, before ever the first WtartWars trilogy showdown) I had to rest a bit before talking about it, so the news is 4-days old I know. I needed to think, reflect and write down: but now I am ready, Read on…
Read More -
JavaScript Wars hits nodejs
Oct 6, 2011 · 2 min read ·
This week, the nodejs community had a big flame.
All was started by this blog post, which tried to slap down node.js server because of its mono-thread nature. And node.js fight back knocking down the attacker. Let’see how.
Read More -
So we are here again talking about Javascript. I have already wrote an article comparing a well known SmallTalk implementation to Javascript. If my ideas are right (at least a bit), you will see more and more javascript on the next months. In particular:
- JavaScript is the Ajax programming languge for the rest of us
- Mobile Framework like PhoneGap and Appcelerator, are all about javascript at the top
- Javascript is evolved, and it is used server side by projects like node.js
Getting Started
JavaScript is a language must be re-learned if you are old like me (i.e. born before 1982).This book will re teach you javascript in ten minutes or so on. A very nice and funny read, for 25 pages!A lot of the things you will read will be new to you, for sure.Studing good librabries is a must. JQuery is a very well written and commented library: grab the full sized source and start reading it.Getting your hands dirty
A good way of learning is trying to make your own errors :)QUnit is a unit-testing framework you can run in your browser, which will be very useful to you.If you prefer nodejs, vows is a continuous integration library which will save your days. I prefer vows in these days, because it can run from the command line, and it is easy to setup.Phase3: Evolving to the next step
Coffee Script is a very instructive language. Look how CoffeeScript renders its code in JavaScript:it will avoid you a lot of mistakes.And this bring us to a very sad rule: discipline in JavaScript is fundamental to avoid nasty bugs.
Read More -
And so you like JavaScript Html5 Web app, which can run on Safari iPhone, Nokia Windows Phone, Android web browser, Black Berry and so on? Are you on the mantra of multi platform mobile programming, aren’t you? Well, Google mega corporation will soon awake you in a new nightmare: a new programming language!
Read More