DailyJS: How Apple Could Fix iWork: JavaScript

  • The company where I work makes a popular Mac application, and the removal of AppleScript from iWork caused a backlash from customers who rely on this feature for integration between our program, and Pages and Numbers.
  • Scripting Bridge provides an Objective-C API for sending and receiving Apple events, so you can take control of applications in Objective-C.
  • JSTalk is one such example:

    JSTalk is a scripting language for Mac OS X built on top of JavaScript, with a bridge to Apple’s Cocoa libraries.

  • You can use it to communicate with other applications just like AppleScript does JSTalk is built on top of Apple’s JavaScriptCore, the same JavaScript engine that powers Safari.
  • I recently wrote about the importance of embedded JavaScript, and I think Apple could gain a lot by adding JavaScript APIs to their applications.

Apple recently updated iWork and removed a whole bunch of features. The company where I work makes a popular Mac application, and the removal of AppleScript from iWork caused a backlash from customers who rely on this feature for integration between our program, and Pages and Numbers.
Continue reading “DailyJS: How Apple Could Fix iWork: JavaScript”

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)

#angularjs Tutorial for Beginners With #nodejs #ExpressJS and #mongodb #javascript Part I

  • We are going to build a full stack Todo App using the MEAN (MongoDB, ExpressJS, AngularJS and NodeJS).
  • TL; DR: NodeJS has been built from bottom up a non-blocking I/O paradigm, which gives you more efficiency per CPU core than using threads in other languages like Java.
  • But, now you can found it in smartphones, servers, robots, Arduino, RaspberryPi… Thus, it does not matter what technology you use to build web applications, you need to be familiar with Javascript.
  • Programming languages that are blocking (Java, Ruby, Python, PHP, …) overcomes concurrency using many threads of execution while JavaScript handles it using non-blocking event loop in a single thread.
  • These are the changes added to perform the remove functionality:

    Do the same for the details Template

    And also in the details controllers

    When we remove elements from the todos array they also disappear from the DOM.

Adrian Mejia blog about programming and software engineering. Featuring MEAN stack (AngularJS, NodeJS, MongoDB and Express), BackboneJS, RESTful APIs, Algorithms and data structures.
Continue reading “MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)”

Single Page Apps with AngularJS Routing and Templating – Hell’s Kitchen

Single Page Apps with #AngularJS Routing and Templating

  • Let’s add the module and controller to our HTML so that Angular knows how to bootstrap our application.
  • Since we have our module and controller set up and we know that Angular is working properly, we will start working on using this layout to show the different pages.
  • is an Angular directive that will include the template of the current route (/home, /about, or /contact) in the main layout file.
  • Since we are making a single page application and we don’t want any page refreshes, we’ll use Angular’s routing capabilities.
  • This way, each part of our application will use its own view and Angular controller.

Single page apps are becoming increasingly popular. Sites that mimic the single page app behavior are able to provide the feel of a phone/tablet application. Angular helps to create applications like this easily.
Continue reading “Single Page Apps with AngularJS Routing and Templating – Hell’s Kitchen”

A history of JavaScript across the stack

A history of #JavaScript across the stack  #angularjs #nodejs

  • Gmail was the first popular web application that really showed off what was possible with client-side JavaScript.
  • Today, Gmail is the classic example of a single-page JavaScript app; it can respond immediately to user interactions and no longer needs to make roundtrips to the server just to render a new page.
  • Ajax described a set of technologies, of which JavaScript was the backbone, used to create web applications where data can be loaded in the background, avoiding the need for full page refreshes.
  • The revised architecture renders the initial pages on the server, but asynchronously bootstraps a new modular JavaScript application to provide the fully-featured interactive experience their users expect.
  • The user’s browser runs no JavaScript at all until after the initial content, rendered on the server, is visible.

Did you know that JavaScript was created in 10 days? In May 1995, Brendan Eich wrote the first version of JavaScript in 10 days while working at Netscape.
Continue reading “A history of JavaScript across the stack”

My Journey with Javascript so far – JITEN AGARWAL – Medium

  • I am overwhelmed by how a language built in 2 weeks took such an important place in the programming world.Before embarking on learning something new(framework or language), I always like to read history about it, and know what was the reason it came into existence, what problem did it solved and read about people who built them.
  • You learn new things like paradigms, new libraries folks are using and various better ways to do a task.Since Web Developers love JS they have built several frameworks using JS and tried to make Atwood’s Law true.
  • At that time I was working as a Mobile Developer and was looking for a way to create Hybrid Apps.React NativeFacebook’s React-Native which lets you create a Mobile application using Javascript completely blew my mind.
  • I also got my hands dirty with React-Native and built few apps using it -Weather AppsLocalStorage AppMoney Management App(which I am really proud of :))Ionic and AngularIf you are learning or working with JS, chances are that you must have come across the term MEAN stack which expands to (MongoDb, ExpressJS, AngularJS, NodeJS) which is a full stack implemented in Javascript Express and Node for backend and Angular for front-end.
  • My plans for this year are following -Learn And Create Progressive Web Apps(involves Service Worker)Contribute to the Opensource communityAngularJS 2Parting WordsJavascript, I think still has a great future ahead, I still don’t think there is any versatile language as Javascript to replace it, so it is here to stay for at least 2–3 years.Please feel free to ping me if you have any OpenSource project where I can be of any help.Also, Checkout JS if you haven’t done yet.

I started learning javascript as a part of my 2016 new year’s resolution and that was one of the best decision I made in 2016. Since then I cannot stop thinking about Javascript. I am doing JS in…
Continue reading “My Journey with Javascript so far – JITEN AGARWAL – Medium”

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)

#angularjs Tutorial for Beginners With #nodejs #ExpressJS and #mongodb #javascript Part I

  • We are going to build a full stack Todo App using the MEAN (MongoDB, ExpressJS, AngularJS and NodeJS).
  • TL; DR: NodeJS has been built from bottom up a non-blocking I/O paradigm, which gives you more efficiency per CPU core than using threads in other languages like Java.
  • But, now you can found it in smartphones, servers, robots, Arduino, RaspberryPi… Thus, it does not matter what technology you use to build web applications, you need to be familiar with Javascript.
  • Programming languages that are blocking (Java, Ruby, Python, PHP, …) overcomes concurrency using many threads of execution while JavaScript handles it using non-blocking event loop in a single thread.
  • These are the changes added to perform the remove functionality:

    Do the same for the details Template

    And also in the details controllers

    When we remove elements from the todos array they also disappear from the DOM.

Adrian Mejia blog about programming and software engineering. Featuring MEAN stack (AngularJS, NodeJS, MongoDB and Express), BackboneJS, RESTful APIs, Algorithms and data structures.
Continue reading “MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)”

Why I prefer Ember.js over Angular & React.js

  • Fortunately one month ago I got a chance to work with a client who wanted me to develop his project in Ember.
  • I was not much excited as ember was a known guy to me, but started developing the project as it’s a day to day life for me.
  • But after delivering the project I started thinking of my experiences with these three front-end frameworks and probably today publishing this article out of my emotions.
  • If all the teams of your organization (or even someone outside your organization) are developing ember applications using ember-cli; they will be very familiar to the projects architecture and in no time can start contributing at any project.
  • The developers of Ember’s core team are also developers in their own projects and this is the biggest plus of Ember.

JavaScript, Node.js, mongo, react, angular and many more
Continue reading “Why I prefer Ember.js over Angular & React.js”