Tag Archives: javascript

Glitch – development environment

https://glitch.com

A powerful node development environment.

Posted on March 7, 2019, 16:29 By
Categories: Uncategorized Tags: , , ,
SpinKit

http://tobiasahlin.com/spinkit/

Slick – Javascript slider

Slick

the last carousel you’ll ever need

http://kenwheeler.github.io/slick/

Cross-paltform Apps and PHP on the desktop

Lately I’ve been fiddeling  with cross-platform apps.

Cross-palform can be:

  • Android/iPhone on the mobile world
  • Windows/Linux/Mac on the desktop/laptop

I’ve been searching on both ends 🙂 but this post is about desktop.

Languages (make a google search on each) aside from the traditional Java, C++, C, Objective C:

D lang, Go lang, Free Pascal(fpc)/Lazarus – Native executables on each platform. Only lazarus gives you fast, simple cross-plaform GUI (Linux,Mac,Windows)

Development Environments for HTML based development:

PHPDesktop, Node-Webkit, nighttrain: These are funny products, you get an *.exe and a sub-folder “www” you then put some code made with Javascript, html, css, (and sometimes PHP,Python,Lua) on that folder. Then, when you launch that *.exe a window opens with a chrome browser frame showing your app. It’s pretty cool!

If you want to do something similar, you could be visit the embedded server mongoose (or a more free for comercial use fork civetweb) they used or the CEF3 (Chrome Embedded Framework).

Tip for node-webkit: Save persistent data in app

Web – Code editors (that use a similar technique as node-webkit)

IceCoder and Brackets

hero

Also: Adding LESS Css pre-processor to Brackets

HTML5 Page Visibility API

With the launching of this API we have welcomed two new document property which does two different functions. The first one is document.visibilityState and second one is document.hidden.

document.visibilityState holds four different values which are as below:

  • hidden: Page is not visible on any screen
  • prerender: Page is loaded off-screen and not visible to user
  • visible: Page is visible
  • unloaded: Page is about to unload (user is navigating away from current page)

Full article on http://code.tutsplus.com/articles/html5-page-visibility-api–cms-22021

Posted on September 2, 2014, 18:19 By
Categories: JavaScript Tags: , ,
Phaser II – Javascript game engine
Phaser II

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.

http://www.phaser.io/

Javascript Promisses

http://www.promisejs.org/intro/

We want our code to be asynchronous, because if we write synchronous code then the user interface will lock up (in client side applications) or no requests will get handled (in server applications). One way to solve this problem is threads, but they create their own problems and are not supported in JavaScript.

One of the simplest ways to make functions asynchronous is to accept a callback function. This is what node.js does (at time of writing). This works, but has a number of issues.

  1. You lose the separation of inputs and outputs to a function since the callback must be passed as an input
  2. It is difficult to compose multiple serial or parallel operations
  3. You lose a lot of helpful debugging information and error handling ability relating to stack traces and the bubbling up of exceptions
  4. You can no longer use the built in control flow constructs and they must all be re-invented to work asynchronously.

Many APIs in the browser use some kind of event based model for control flow, which solves problem 1, but not problems 2 to 4.

Promises aim to solve issues 1 to 3 and can solve problem 4 in ES6 (with the use of generators).

Posted on March 20, 2014, 19:15 By
Categories: JavaScript Tags: , ,
Tutorial – Learn nodeJs

http://nodeschool.io/#learn-you-node

Posted on March 20, 2014, 19:10 By
Categories: JavaScript Tags: , ,
Mithril MVC Javascript framework

http://lhorie.github.io/mithril/index.html