Better HN
topnewbestaskshowjobs
Log inSign up

fixjs

32 karma · joined Nov 16, 2014 (12y ago) · 19 submissions

Submissions

comment 9y ago · link · parent

awaitify has a small set of functionality, but it could be really useful, if you want to write clean and readable async code without using any transpilers. Using Awaitify, Function Generators along with `yield` keyword works exactly like async/await function. It also allows to convert old fashioned callback based functions into promise based functions with writing only one line of code. Any feedback would be greatly appreciated.

2.

Asynchronous JavaScript using awaitify(github.com ↗)

3 points · by fixjs · 9y ago · 1 comment

3.

DefineJS v0.2.4 now offers a new CommonJS/AMD hybrid format(fixjs.github.io ↗)

4 points · by fixjs · 11y ago · discuss

4.

DefineJS: define(function*(){..}); yield require('utils');(github.com ↗)

2 points · by fixjs · 11y ago · discuss

5.

hAzzleJS: fast, faster, fastest, hAzzleJS is here NOW(github.com ↗)

3 points · by fixjs · 12y ago · 1 comment

6.

DefineJS v0.2.2 Released – Promised Modules and Detailed Examples(fixjs.github.io ↗)

2 points · by fixjs · 12y ago · discuss

comment 12y ago · link · parent

Check out the DefineJS-v0.2.2 with a bunch of examples and Promised Modules.

comment 12y ago · link · parent

A new working example which shows how to use one of the nonstandard syntaxes in DefineJS, something like:

use(['dependency'])

.then(function(dependency){

})

.then()

.cache();

Imagine a control flow in the module definition, or having different private scopes when defining a new module.

comment 12y ago · link · parent

I just added a working example of DefineJS which shows the way that the regular AMD format gets implemented.

comment 12y ago · link · parent

One of the main goals here is to provide developers the ability of exposing it to different globals with different behaviors and configuration, which is not possible yet in this version, but it will be there in the next couple of hours.

comment 12y ago · link · parent

Actually in the current version to expose them to the global scope, you should add the global attribute to your script tag and pass the window as it's value, like global="window".

comment 12y ago · link · parent

Thanks for your feedbacks. The next release will be available in the next couple of hours, with a bunch of examples and a more technical RRADME.

comment 12y ago · link · parent

@prayerslayer: nothing wrong with require.js, the main goal is to create a more portable alternative and more importantly to add couple of new and nonstandard ways of modular coding as a proposal for the JavaScript community.

14.

DefineJS – A lightweight implementation of AMD module format(fixjs.github.io ↗)

36 points · by fixjs · 12y ago · 26 comments