<p class="wp-block-paragraph">I want to focus on levels of control, distance of control, effectiveness of control, reliability of a UI/UX.</p> <p class="wp-block-paragraph">On one side there are receipt for rigidity: framework like <a href="https://nextjs.org/">next.js</a>, <a href="https://it.vuejs.org/guide/scaling-up/ssr.html">SSR</a>.</p> <p class="wp-block-paragraph">On another side there is an old receipt for “configurability”.</p> <p class="wp-block-paragraph">I do not agree with none of both.</p> <p […]
Tag: javascript
How to define Higher Order Function with elegance
<p class="wp-block-paragraph">I need some moment to fully understand this:</p> <pre class="wp-block-preformatted">const compose = ( …fns ) => fns.reduce( ( f, g ) => ( …args ) => f( g( …args ) ) ); </pre> <p class="wp-block-paragraph">reduce method is trickly: when initialValue is not given, the first element of the array is taken as first argument […]
Returning function from a promise: unexpected gain
<p class="wp-block-paragraph">I need to define an acceptance test, I need it quickly</p> <p class="wp-block-paragraph">It is a javascript library based on jQuery, that load a JSON and render a recursive structure populating nested html elements, including label, input, dropdown, etc. (interactive elements).</p> <p class="wp-block-paragraph">The acceptance test must ensure every element is rendered, and is what is […]
jQuery context menu
Project on Github code and issues on github: https://github.com/danielecr/jquery-contextual-menu ! Prize June 2014 jsclasses.org innovation award Thanks to this prize I got a book from Addy Osmani, design pattern in javascript. The idea behind context menu Ok, I admit I do not search to much out there if this is available.. A simple jquery plugin […]
Introduzione a JavaScript – Terza parte
Una video introduzione al linguaggio javascript e le sue principali caratteristiche In questa terza parte: gli eventi. Nota: gli eventi si propagano dal document fino al target e dal target fino al document (non al body) La documentazione di call e apply da mozilla Oggetti e ereditarietà in javascript sono presentati in http://www.howtocreate.co.uk/tutorials/javascript/objects Un semplice […]
Introduzione a JavaScript – Seconda parte
Una video introduzione al linguaggio javascript e le sue principali caratteristiche In questa seconda parte: oggetti, il DOM, un esempio concreto, le closure La documentazione di call e apply da mozilla Oggetti e ereditarietà in javascript sono presentati in http://www.howtocreate.co.uk/tutorials/javascript/objects Un semplice esempio che usa prototype in http://snippets.dzone.com/posts/show/899 DOM Level 2 Event Model è documentato […]
Introduzione a JavaScript – Prima parte
<p class="wp-block-paragraph">Una breve introduzione al linguaggio e le principali caratteristiche dello scripting client side per il web </p> <p class="wp-block-paragraph"> Presentati sinteticamente: sintassi, JSON, Object, DOM, Eventi </p> <p class="wp-block-paragraph"><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ZcATb5jRpu8&hl=it_IT&fs=1?rel=0"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/ZcATb5jRpu8&hl=it_IT&fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></object></p> <p class="wp-block-paragraph"> Oggetti e ereditarietà in javascript sono presentati in<br /> […]
jQuery Waiting plugin
This is a simple jQuery plugin for purpose of loading phase of an ajax request or anything else. $(“#testdiv”).waiting({imgsrc:”/files/aj-blue.gif”}); to stop a waiting div $(“#testdiv”).stopWaiting(); TEST DIV CLICK ME […]