Angel \”Java\” Lopez on Blog

April 23, 2014

End Of Iteration 2014w16

Filed under: Aktores, C Sharp, Iteration, JavaScript, NodeJs, Open Source Projects, Rust, RustScript — ajlopez @ 6:43 pm

Previous Post

Aktores

I added a new sample, PingPong, to my actor model implementation in C#

https://github.com/ajlopez/Aktores

The idea is to start measuring message processing performance. I added a variable number of worker threads, that affects the performance. I want to add a TryEnter method call but with a timeout. If some actor is busy, its messages retry process could be intensive in terms of time.

SimpleCards

I started the project

https://github.com/ajlopez/SimpleCards

to implement simple cards and deck to be rendered in web application (browser and mobile). I remember the great HyperCard. This project is simpler: only the cards and their content are specified, no position or render info are needed. There is render code adapted to the application (web browser, mobile) but the decks/cards are agnostic to device.

RustScript

My Rust language interpreter in JavaScript:

https://github.com/ajlopez/RustScript

I added the for command (parse and evaluation), and the built-in range function (to produce an iterator).

SimpleKache

I wrote and published version 0.0.1 of:

https://github.com/ajlopez/SimpleKache

A simple in-memory, in-process cache for Node.js/JavaScript.

SimpleAsync

My project to call a sequence of async/sync functions:

https://github.com/ajlopez/SimpleAsync

now has a map function that support functions with callback, not only sync functions. So, map can received an array and it can transform each elements calling asynchronous functions. I fixed a previous bug related to do, and published the version 0.0.3. Now, I’m starting to refactor the internal implementation. TDD rocks!

Others

I also worked on three non-public projects.

More fun is comming.

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 22, 2014

Angular, Links And Resources (4)

Filed under: Angular, JavaScript, Links, Web Development — ajlopez @ 4:33 pm

Previous Post

I was exploring web development for my code generation projects. Angular.js is in my radar, but I should write an spike or demo. Meanwhile, more links:

Ionic: The Most Advanced HTML5 Mobile App Framework
http://ionicframework.com/

The Web Weekly Newsletter Edition #3
http://us7.campaign-archive1.com/?u=65e00aa00c80d98f762ebeb6e&id=65473c6ff7

ng-embereño: Angular.js from the perspective of Ember.js – Google Drive
https://docs.google.com/presentation/d/1e0z1pT9JuEh8G5DOtib6XFDHK0GUFtrZrU3IfxJynaA/preview#slide=id.p

Isomorphic JavaScript: The Future of Web Apps – Airbnb Engineering
http://nerds.airbnb.com/isomorphic-javascript-future-web-apps/

Building Huuuuuge Apps with AngularJS
http://briantford.com/blog/huuuuuge-angular-apps.html

A Shopping Cart Application Built with AngularJS – CodeProject
http://www.codeproject.com/Articles/576246/A-Shopping-Cart-Application-Built-with-AngularJS

DanWahlin/CustomerManager
https://github.com/DanWahlin/CustomerManager
CustomerManager AngularJS/BreezeJS Application with a custom route provider

A dumb easy model for promises
http://www.vittoriozaccaria.net/blog/2013/09/23/a-dumb-easy-model-for-promises.html

Remastered Animation in AngularJS 1.2 – yearofmoo.com
http://www.yearofmoo.com/2013/08/remastered-animation-in-angularjs-1-2.html

AngularJS Best Practices: I’ve Been Doing It Wrong! Part 3 of 3 | Art & Logic Blog
http://blog.artlogic.com/2013/05/08/angularjs-best-practices-ive-been-doing-it-wrong-part-3-of-3/

AngularJS Sticky Notes Pt 1 – Architecture | One Hungry MindOne Hungry Mind
http://onehungrymind.com/angularjs-sticky-notes-pt-1-architecture/

Code Organization in Large AngularJS and JavaScript Applications — Cliff Meyers
http://cliffmeyers.com/blog/2013/4/21/code-organization-angularjs-javascript

John Papa | Evangelist on the loose
http://www.johnpapa.net/

Create an Angular App in Seconds with Hot Towel | John Papa
http://www.johnpapa.net/hot-towel-angular/

Home | Breeze.js
http://www.breezejs.com/
Rich data for JavaScript apps

Build Apps with Angular and Breeze | John Papa
http://www.johnpapa.net/build-apps-with-angular-and-breeze/

angular-ui/ui-utils
https://github.com/angular-ui/ui-utils
Swiss-Army-Knife of AngularJS tools (with no external dependencies)

AngularJS and Bootstrap ☢ DeanSofer.com
http://deansofer.com/posts/view/20/AngularJS-and-Bootstrap

Lessons Learned: A Year with a Large AngularJS Project – @jhooks
http://joelhooks.com/blog/2013/05/22/lessons-learned-kicking-off-an-angularjs-project/

My Links
http://delicious.com/ajlopez/angularjs

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 21, 2014

Backbone, Links And Resources (4)

Filed under: Backbone, JavaScript, Links, Web Development — ajlopez @ 5:45 pm

Previous Post

I Coded the Angular Tutorial App in Backbone and it Took 260% More Code
http://blog.42floors.com/coded-angular-tutorial-app-backbone-took-260-code/

How to Build Stuff with Om | Ronin Hacker
http://roninhacker.wordpress.com/2014/03/29/how-to-build-stuff-with-om/

Unsuck your backbone // Speaker Deck
https://speakerdeck.com/ammeep/unsuck-your-backbone

javascript – PhoneGap Memory Management – Stack Overflow
http://stackoverflow.com/questions/18911683/phonegap-memory-management

javascript – How do I create multi-page applications with Meteor? – Stack Overflow
http://stackoverflow.com/questions/11740368/how-do-i-create-multi-page-applications-with-meteor

Sending GET ,POST requests to the server using Backbone.JS and handling them using Node.JS server in the backend | hackintoshrao
http://hackintoshrao.com/2014/01/31/sending-get-post-requests-to-the-server-using-backbone-js-and-handling-them-using-node-js-server-in-the-backend/

Developing Backbone.js Applications –
http://addyosmani.github.io/backbone-fundamentals/#marionettejs-backbone.marionette

marionettejs/backbone.marionette
https://github.com/marionettejs/backbone.marionette

Marionette.js
http://marionettejs.com/
Backbone.Marionette is a composite application library for Backbone.js that aims to simplify the construction of large scale JavaScript applications.

An Introduction To Full-Stack JavaScript | Smashing Coding
http://coding.smashingmagazine.com/2013/11/21/introduction-to-full-stack-javascript/

Boilerplate web app using Backbone.js, ExpressJS, node.js, MongoDB | Kroltech
http://kroltech.com/2013/12/boilerplate-web-app-using-backbone-js-expressjs-node-js-mongodb/

Zenzey | Gravity On Mars
http://gravityonmars.com/2011/09/21/zenzey-is-live/

robashton / look-ma-no-frameworks
https://github.com/robashton/look-ma-no-frameworks

Understanding MVC And MVP (For JavaScript And Backbone Developers)
http://addyosmani.com/blog/understanding-mvc-and-mvp-for-javascript-and-backbone-developers/

Isomorphic JavaScript: The Future of Web Apps – Airbnb Engineering
http://nerds.airbnb.com/isomorphic-javascript-future-web-apps/

Build a real-time team dashboard app (part 2) | Web design | Creative Bloq
http://www.creativebloq.com/web-design/build-real-time-team-dashboard-app-part-2-10134851

The SOOMLA Blog: Complex Single Page Application Architecture with Backbone
http://blog.soom.la/2013/10/complex-single-page-application.html?m=1

Size Does Matter: Choosing a Javascript MVC Framework | Funny AntFunny Ant
http://www.funnyant.com/choosing-javascript-mvc-framework/

My Links
http://delicious.com/ajlopez/backbone

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 18, 2014

Angular, Links And Resources (3)

Filed under: Angular, JavaScript, Links, Web Development — ajlopez @ 6:51 pm

Previous Post
Next Post

AWS JS SDK – The Canonical Angular Guide
http://www.ng-newsletter.com/posts/aws-js-sdk.html

Iffy Can: Angular service or factory?
http://iffycan.blogspot.com.ar/2013/05/angular-service-or-factory.html

NuDoq – Enjoyable API Documentation
http://www.nudoq.org/#!/
It uses Angular

How do I “think in AngularJS” if I have a jQuery background? – Stack Overflow
http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background

Fun with AngularJS & Cornice
http://ziade.org/2013/02/13/fun-with-angularjs-amp-cornice/

Move logic to the front end with AngularJS | Lullabot
http://www.lullabot.com/blog/article/move-logic-front-end-angularjs

Unit Testing “Hello World” – AngularJS Video Tutorial – @eggheadio
http://egghead.io/lessons/angularjs-unit-testing-hello-world

A Better Way to Learn AngularJS | Thinkster
http://www.thinkster.io/pick/GtaQ0oMGIl/a-better-way-to-learn-angularjs

Unit Testing Best Practices in AngularJS
http://andyshora.com/unit-testing-best-practices-angularjs.html

Size Does Matter: Choosing a Javascript MVC Framework | Funny AntFunny Ant
http://www.funnyant.com/choosing-javascript-mvc-framework/

The 10 hottest JavaScript framework projects
http://www.infoworld.com/print/228335

Ultimate guide to learning AngularJS in one day
http://toddmotto.com/ultimate-guide-to-learning-angular-js-in-one-day/

Davide Moro: Yeoman, Express and AngularJS
http://davidemoro.blogspot.com.ar/2013/08/yeoman-express-and-angularjs.html

Mastering Web Application Development with AngularJS | Packt Publishing
http://www.packtpub.com/angularjs-web-application-development/book

The Pragmatic Bookshelf | Seven Web Frameworks in Seven Weeks
http://pragprog.com/book/7web/seven-web-frameworks-in-seven-weeks

AngularJS on Rails 4 – Part 2 – coderberry
http://coderberry.me/blog/2013/04/23/angularjs-on-rails-4-part-2/

My Links
http://delicious.com/ajlopez/angularjs

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 17, 2014

Dynamic Applications in Node.js

Filed under: JavaScript, MyApps, NodeJs, Open Source Projects, Video — ajlopez @ 6:55 pm

Last year I participated in the competition Node.js Knockout organized by Nodejitsu. Working alone, in the Solo Ninja team, I was coding two days in a weekend. My project, largely written using the TDD flow, aims to define one or more online applications. An application can have one or more lists of entities. Each entity can have properties defined interactively. I should add one to many relations between entities.

You can see the video presentation of my work to the judges:

http://youtube.com/watch?v==GQdyyNWCasI

After the competition, I moved my code into my GitHub account:

https://github.com/ajlopez/MyApps

I found interesting to dynamically define an application, rather than write it or generate code from a model. JavaScript and Node.js is a dynamic duo that helped me to implement this type of applications. My goal is to extend the ideas in order to have a simple implementation of what could be armed with Force, Salesforce. Some ideas:

- Add programming tasks (written in controlled JavaScript)
- More viewers (for web and mobile)
- Public and private application store
- Deploy an application written by others

In recent weeks I’ve been studying SharePoint Online. Now, I have new ideas for implement an Application Store for dynamic applications.

More fun is coming!

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 16, 2014

Angular, Links And Resources (2)

Filed under: Angular, JavaScript, Links, Web Development — ajlopez @ 5:17 pm

Previous Post
Next Post

Building a simple single page application using AngularJS · andru.co
http://andru.co/building-a-simple-single-page-application-using-angularjs

The triumph of JavaScript
http://www.infoworld.com/print/227283

AngularJS is amazing… and hard as hell | Jose Aguinaga
http://jjperezaguinaga.com/2013/09/21/angularjs-is-amazing-and-hard-as-hell/

CoffeeScript and AngularJS – Alexander Hill | mallex();
http://alxhill.com/blog/articles/angular-coffeescript/

AngularJS Geolocation Digest Test – jsFiddle
http://jsfiddle.net/LyD4Q/4/

Home | ng-newsletter
http://www.ng-newsletter.com/

Herding Code 178: Async, C# Syntax, AngularJS, Document Databases, Podcast Hosting, A New Job and Summer Vacations « Herding Code
http://herdingcode.com/herding-code-178-async-c-syntax-angularjs-document-databases-podcast-hosting-a-new-job-and-summer-vacations/

Angular.js example application – CodeProject
http://www.codeproject.com/Articles/637430/Angular-js-example-application

AngularJS Tutorial: Learn to Build Modern Web Apps | Thinkster
http://www.thinkster.io/pick/GUIDJbpIie/angularjs-tutorial-learn-to-build-modern-web-apps

Learn AngularJS With These 5 Practical Examples | Tutorialzine
http://tutorialzine.com/2013/08/learn-angularjs-5-examples/

Mean
http://www.mean.io/
MEAN (Mongo, Express, Angular, Node) stack Boilerplate

A Simple Chat Website Using ASP.NET and AngularJS – CodeProject
http://www.codeproject.com/Articles/627556/A-Simple-Chat-Website-Using-ASP-NET-and-AngularJS

Announcing Angular Kendo UI
http://www.kendoui.com/blogs/teamblog/posts/13-06-24/announcing-angular-kendo-ui.aspx

DailyJS: AngularJS: Form Validation
http://dailyjs.com/2013/06/06/angularjs-7/

My Links
http://delicious.com/ajlopez/angularjs

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 15, 2014

End Of Iteration 2014w15

Previous Post
Next Post

Code Generation

I wrote new tasks, templates using my AjGenesis code generation tool. I create a simple:

https://github.com/ajlopez/AjGenesisNode-Django

to generate a Django web site, with admin page. The code generation creates the model, and admin feature allows you to edit the data, using Sqlite. It’s simple, but it is working. Next steps: create custom views, and a new project to generate Flask web site.

I added text area input fields to https://github.com/ajlopez/AjGenesisNode-Express the project that generates Express/Node.js web site from a model. Next steps: client-side validation, better server code organization, some initial tests.

I want to integrate these tools in a online app, so I started https://github.com/ajlopez/AjGenesisNodeServer to have a web site that generate codes from a model, defined at client side. You will select technology (Express, PHP, Sinatra, Django, Flask, …), the models (mainly, entities like: customer, supplier, department, employee, invoice… ), the database, the features (multiple pages, single page, angular? backbone? other?, REST API?, phonegap wrapper?), and voila. A zip will be generated with the generated solution. That is, code generation as a service. Maybe I could add an API to be externally consumed.

Python

I added a Flask web site example, work in progress, to my Python Samples:

https://github.com/ajlopez/PythonSamples/tree/master/Flask

I will use as a basis for my AjGenesis code generation version for Flask web sites.

Actor Model in C#

I refactored my project

https://github.com/ajlopez/Aktores

an Akka-like actor model implemented in C#. Now, I have a mailbox per actor, but the actor message process is executed consuming task from a queue, with n thread launched by the initial actor system. It was good to see such refactor working: all is in place, now. It is a proof that you don’t need to design everything before coding. If you follow TDD (Test-Driven Development) new ideas (or old ideas that have not implemented yet) can be added without much effort.

Erlang in C#

I started to add serialization of message to my project

https://github.com/ajlopez/AjErl

As usual, I started simple, using TDD: write input and out channel, using tests, red to green, refactoring. Instead of consuming an external library for serialization, I wrote a simple code, towards my first use case of distributed application. When the use case will be in place, I could start to think about other implementation path.

Google Code Jam

Past Saturday, I participated in Google Code Jam, Qualification Round. My code, usually written following TDD:

https://github.com/ajlopez/TddRocks/tree/master/Gcj2014

The Minesweeper problem is the tricky one. I should add the description of the problems, copying it from the original site.

Others

I added some code kata tests to my JavaScript samples https://github.com/ajlopez/JavaScriptSamples. I added metadata macro readind go my Clojure in C# https://github.com/ajlopez/ClojSharp. I started to add type checking in my node tree for Scala in C# https://github.com/ajlopez/ScalaSharp/commits/master. I added qualified name evaluation to my Rust interpreter in JavaScript https://github.com/ajlopez/RustScript. I worked on two non-public projects, too.

More fun is coming.

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 12, 2014

Angular, Links and resources (1)

Filed under: Angular, JavaScript, Links, Web Development — ajlopez @ 8:00 pm

Next Post

The Hitchhiker’s Guide to the Directive | codef0rmer
http://amitgharat.wordpress.com/2013/06/08/the-hitchhikers-guide-to-the-directive/

jmcunningham/AngularJS-Learning · GitHub
https://github.com/jmcunningham/AngularJS-Learning

AngularJS Fundamentals – Online Training Course for Developers
http://pluralsight.com/training/Courses/TableOfContents/angularjs-fundamentals

DailyJS: Angular Smart Table, TurtleScript
http://dailyjs.com/2013/06/03/rust-smart-table/

Learn AngularJS in 5 steps – revolunet blog
http://blog.revolunet.com/blog/2013/06/01/starting-with-angularjs/

TodoMVC
http://todomvc.com/

Things I Wish I Were Told About Angular.js
http://ruoyusun.com/2013/05/25/things-i-wish-i-were-told-about-angular-js.html

Dynamically Loading Controllers and Views with AngularJS and RequireJS – Dan Wahlin’s WebLog
http://weblogs.asp.net/dwahlin/archive/2013/05/22/dynamically-loading-controllers-and-views-with-angularjs-and-requirejs.aspx

The MongoDB NoSQL Database Blog, The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and

Khelldar/Angular-Express-Train-Seed · GitHub
https://github.com/Khelldar/Angular-Express-Train-Seed

AngularJS collaboration board with Socket.io | Tutorial | .net magazine
http://www.netmagazine.com/tutorials/angularjs-collaboration-board-socketio

Alex Rothenberg – The “Magic” behind AngularJS Dependency Injection
http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html

AngularJS — Superheroic JavaScript MVW Framework
http://angularjs.org/

AngularJS
http://www.infoq.com/presentations/AngularJS

AngularJS — Superheroic JavaScript MVC Framework
http://angularjs.org/#/

My Links
http://delicious.com/ajlopez/angularjs

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 10, 2014

Erlang: Links, News And Resources (10)

Filed under: Distributed Computing, Erlang, Functional Programming, Links — ajlopez @ 5:27 pm

Previous Post

Erlang y Whatsapp – AltenWald
http://altenwald.org/2014/02/22/erlang-y-whatsapp/

High Scalability – High Scalability – The WhatsApp Architecture Facebook Bought For $19 Billion
http://highscalability.com/blog/2014/2/26/the-whatsapp-architecture-facebook-bought-for-19-billion.html

ACM SIGPLAN Erlang Workshop 2014, Göteborg, Sweden
http://www.erlang.org/workshop/2014/

marianoguerra/efene
https://github.com/marianoguerra/efene
Programming language with C-like syntax that runs on the Erlang platform

Electric Duncan: Lisp Flavored Erlang
http://technicae.cogitat.io/2013/03/lisp-flavored-erlang.html

Lisp Flavored Erlang
http://lfe.github.io/

Zotonic, the Erlang Web Framework — Zotonic
http://zotonic.com/

Inside Erlang, The Rare Programming Language Behind WhatsApp’s Success ⚙ Co.Labs ⚙ code community
http://www.fastcolabs.com/3026758/inside-erlang-the-rare-programming-language-behind-whatsapps-success

Erlang/OTP – Recursos
http://erlang.bosqueviejo.net/trabajo.html

There’s More to Life than Just Functions
http://bodil.org/more-than-functions/#/

Talking about Erlang with Fernando Benavides | Paolo D’Incau’s Blog
http://pdincau.wordpress.com/2014/02/03/talking-about-erlang-with-fernando-benavides/

videlalvaro/erlang-prime-sieve
https://github.com/videlalvaro/erlang-prime-sieve

KennethLundin-ErlangFactory2009London-AboutErlangOTPandMulti-coreperformanceinparticular.pdf (application/pdf Object)
http://www.erlang-factory.com/upload/presentations/105/KennethLundin-ErlangFactory2009London-AboutErlangOTPandMulti-coreperformanceinparticular.pdf

Big changes to Erlang
http://joearms.github.io/2014/02/01/big-changes-to-erlang.html

Erlang HiPE vs Scala | Computer Language Benchmarks Game
http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=hipe&lang2=scala&data=u64q

Building a Multi-Master Distributed Redis in Erlang
http://www.infoq.com/presentations/redis-erlang

Can someone explain the structure of a Pid in Erlang? – Stack Overflow
http://stackoverflow.com/questions/243363/can-someone-explain-the-structure-of-a-pid-in-erlang

ongoing by Tim Bray · Software in 2014
https://www.tbray.org/ongoing/When/201x/2014/01/01/Software-in-2014

Deploshark – Tech Blog: Aprendiendo Erlang
http://blog.deploshark.com.ar/2014/01/aprendiendo-erlang.html

My Links
http://delicious.com/ajlopez/erlang

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

April 9, 2014

End Of Iteration 2014w14

Previous Post
Next Post

Code Generation

I updated my template engine in JavaScript, with a minor change to skip new lines in some contexts:

https://github.com/ajlopez/SimpleTpl

Then I consumed the new version in AjGenesis for Node:

https://github.com/ajlopez/AjGenesisNode

I published the first version of my Sinatra code generation tasks and templates:

https://github.com/ajlopez/AjGenesisNode-Sinatra

The simple generated site can manage list of entities, persisted using sqlite3 and data-mapper.

I removed bower from my Express code generation tasks and templates:

https://github.com/ajlopez/AjGenesisNode-Express

because I think it is more clear to have directly the assets in the repository, instead of installing via bower.

And I updated my Php tasks and templates:

https://github.com/ajlopez/AjGenesisNode-Php

so now it is using a first page with Bootstrap.

Complexo

I wrote a simple library to support complex number operations in JavaScript

https://github.com/ajlopez/Complexo

As usual, I wrote the code using TDD workflow. You can check the commit history.

Learning Node.js

I updated my

https://github.com/ajlopez/NodeSamples

with a simple sample of a web server. I recorded a Google Hangout (see Spanish post)

Others

Additionally, I started new code kata in JavaScript, https://github.com/ajlopez/JavaScriptSamples

I did a minor internal refactor in ScalaSharp https://github.com/ajlopez/ScalaSharp my Scala interpreter in C#.

I added a do operation to my https://github.com/ajlopez/SimpleAsync simple asynchronous library. The do operation launch a “parallel” function. You can chain do operations, to launch more than one operation. The next then or map operation will receive the result of the do operations as elements in an array, after full completion of the “launched” functions. Usually, those functions perform asynchronous calls.

I was working in two non-public projects, too.

More fun is coming.

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

Older Posts »

The Shocking Blue Green Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 57 other followers