Tag Archives: syntax

Proper testing of AngularJS applications with ES6 modules


via Proper testing of Angular JS applications with ES6 modules — Medium.

Testing of Angular JS application used to be quite painful especially when using “official” solutions like Karma or Protractor.

ES6 (aka ES2015, aka new Javascript release) changed this by introducing standardized module syntax. This enables us to do real unit testing of Angular JS constructs like controllers, factories or services in a very simpleand fast fashion.

Check out the Github repository for implementation of the concepts described in this post.

Essential Tools & Libraries for Modern JavaScript Developers


via Essential Tools & Libraries for Modern JavaScript Developers.

Learning JavaScript is a great journey, but knowing the language and its syntax is only the beginning. Once the novice becomes a journeyman, they are confronted with a seemingly endless number of tools and libraries which are used to create, manage and maintain modern JavaScript code. Invariably, confusion strikes!

As in a real journey, you need some sort of guidance or a map by which to orientate yourself. So, this is the aim of this article — to give you a structured overview of the available possibilities and to light the way for those wishing to learn more. If you’ve ever wondered what the tools of the trade are — those which most of the modern developers use in their workflow — here is the answer.

Statically-typed NSUserDefaults


via Statically-typed NSUserDefaults • radex.io

A year ago, not long after Swift became a thing, I noticed a tendency among programmers to write it the way you’d write Objective-C. I thought that Swift was a different language, with different syntax, philosophy and capabilities, and so we should develop new conventions and approaches to it. I responded with Swifty methods, where I argued for a better, clearer way of naming things. Then, some time later, I started the Swifty APIs series to put those ideas in practice and explore how to design easy-to-use interfaces.

In the first article in said series, we took the NSUserDefaults API:

Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.


via johnpapa/angular-styleguide · GitHub.

If you are looking for an opinionated style guide for syntax, conventions, and structuring Angular applications, then step right in. These styles are based on my development experience with Angular, presentations, Pluralsight training courses and working in teams.

The purpose of this style guide is to provide guidance on building Angular applications by showing the conventions I use and, more importantly, why I choose them.

Apple Swift Optionals Syntax Rethought


via Apple Swift Optionals Syntax Rethought | Thinking Outside the Tesseract.

In the Swift language an optional is a variable that can have an unknown value.  Let’s start with that. I’m not happy with the syntax of dealing with optionals, not that they exist since they have a real purpose.

C# 6 New Features Overview: Using C# 6 with Xamarin


via C# 6 New Features Overview – Xamarin.

The latest version of the C# language – version 6 – continues to evolve the language to have less boilerplate, improved clarity, and more consistency. Cleaner initialization syntax, the ability to use await in catch/finally blocks, and the null-conditional ? operator are especially useful.

commonmarkJS: CommonMark parser and renderer in JavaScript


via jgm/commonmark.js · GitHub.

CommonMark is a rationalized version of Markdown syntax, with a spec and BSD-licensed reference implementations in C and JavaScript.

For more information, see http://commonmark.org.

This repository contains the JavaScript reference implementation. It provides a library with functions for parsing CommonMark documents to an abstract syntax tree (AST), manipulating the AST, and rendering the document to HTML or to an XML representation of the AST.

To play with this library without installing it, see the live dingus at http://try.commonmark.org/.