Lisbon’s Coast.
Yellow! It has been some weeks since my last entry. However, good things come to those who wait. There is two things this week that are very exciting in the Javascript world:
1 – Angular is back on the table with Typescript
2 – Ladies and Gentlemen: NativeScript!
MENU:
- Angular & Typescript
- Nativescript (Native JS application)
- CMS proprietary vs open source
- 2015 Trends in Web & Design
- Jest – On Top of Jasmine for better testing
- Manifest for the Web
- Scala > C# > Java
- PSYCHOLOGY
Angular & Typescript
That’s right, Angular 2 was trying to reinvent the wheel and create their own Typescript version. They were plaining a huge change that was not going to be compatible with Angular 1. This was not falling down quite well with the community. People just weren’t happy! Google heard’ya! Typescript grabbed the opportunity and collaborated with the Angular team to incorporate some of their ideas into TS also . Plus, they have been busy telling people that a convertion tools from 1 to 2 will be there when the time comes.
http://dailyjs.com/2015/03/06/typekit-angular/
Resuming, Angular with Typescript are the future for browser MVC frameworks. I was quite disappointed with Angular and Google before – now ANGULAR IS BACK ON THE TABLE. This means two giants supporting Angular direct or indirectly. May be Microsoft just saw Atscript as a potential stake to its Typescript’s heart and one step closer to Dart (?). Since Microsoft has become lately more pragmatic and wants to be dev friendly, they must have decided collaboration was in order.
Sure, other libraries can be even cooler and better for this or that purpose. However, to a great extend, if you are not a behemoth company, what matters is “critical mass” and Angular won and with the latest decision is cementing this victory.
https://www.airpair.com/js/javascript-framework-comparison
Nativescript (library)
For some time now, I have been pointing this out – Javascrip will be used to build native app. My clairvoyance abilities, though normally I’m a several years a ahead of time, tend to come true. Nativescript is just another step to this prediction of mine. Like the other step made by google with Chrome Apps, which run everywhere chrome runs. Chrome Apps already offer access to native and on top of that they are developing the platfom to run without needing chrome or the their own app stor. In other words, google is building a Chrome Runtime Enviroment that will offer Javas’s promise ‘code once run everywhere”. Anyway, back to Nativescript library.
https://developer.chrome.com/apps/about_apps
NativeScript enables developers to build native apps for iOS, Android and Windows Universal while sharing the application code across the platforms. When building the application UI, developers use our libraries, which abstract the differences between the native platforms. Watch the video to learn more.
It’s Open
- NativeScript is free of charge as an open source project
- It is available to anyone on Github
It’s Easy
- Code with JavaScript. Style with CSS
- Create a true native user experience
It’s Powerful
- Cross-platform UI abstractions
- Shared business logic and data models
- Third-party native libraries
https://www.nativescript.org/?utm_source=javascriptweekly&utm_medium=email
CMSs Proprietary Vs Open Source
CMSs Proprietary Vs Open Source
2015 Web & Design Trends
10 web design trends that will change everything in 2015
http://www.creativebloq.com/web-design/hottest-trends-2015-11513980
and another
http://www.zingdesign.com/top-10-web-development-trends-and-predictions-for-2015/#motion-ui
Carnival Piece: if the world was about to end, what would you do?
Jest – Javascript Testing
FAMILIAR APPROACH
Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
MOCK BY DEFAULT
Automatically mocks CommonJS modules returned by require(), making most existing code testable
SHORT FEEDBACK LOOP
DOM APIs are mocked and tests run in parallel via a small node.js command line utility
Why not just use vanilla Jasmine?
- Automatically finds tests to execute in your repo
- Automatically mocks dependencies for you when running your tests
- Allows you to test asynchronous code synchronously
- Runs your tests with a fake DOM implementation (via jsdom) so that your tests can run on the command line
- Runs tests in parallel processes so that they finish sooner
http://facebook.github.io/jest/?utm_source=javascriptweekly&utm_medium=email
App Manifest for the Web
http://www.w3.org/TR/appmanifest/#usage-examples
“This specification defines a JSON-based manifest that provides developers with a centralized place to put metadata associated with a web application. This includes, but is not limited to, the web application’s name, links to icons, as well as the preferred URL to open when a user launches the web application. The manifest also allows developers to declare a default orientation for their web application, as well as providing the ability to set the display mode for the application (e.g., in fullscreen). Additionally, the manifest allows a developer to “scope” a web application to a URL. This restricts the URLs to which the application can be navigated and provides a means to “deep link” into a web application from other applications.”
SCALA > C# > Java
Functional + Object Oriented Programing is AWESOME!
It is time to promote my favourite JVM language – SCALA. As you can see by the title I’m obviously being provocative. Again, while I was learning Java at Uni, I had to also play with groovy another JVM language that, like Scala, interops with Java. Though, at the time and still ongoing, there was/is a boom of JVM supported languages. Which to choose? Well, after shopping around, I decided for Scala. The functional-oop language that the finance industry was/is adopting fast. If a “critical mass” of guys that code for the money guys are using it, certainly is going to gain traction – I thought, and I wasn’t wrong:
The RedMonk Programming Language Rankings: January 2015
14. Scala
Scala Named a top 10 Technology for Modern Developers
http://typesafe.com/company/news/scala-named-a-top-10-technology-for-modern-developers
Scala versus Java myths and facts
http://www.infoq.com/articles/scala-java-myths-facts
Rise and Fall of Java: resuming old guys use more Java.
http://vschart.com/compare/dart-programming-language/vs/scala
Interop Between Java and Scala
http://www.codecommit.com/blog/java/interop-between-java-and-scala
Hello World
Java
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } }
Scala
object HelloWorld { def main(args: Array[String]) { println("Hello, world!") } }
Twitter Engineer Talks About the Company’s Migration from Ruby to Scala and Java
http://readwrite.com/2011/07/06/twitter-java-scala
Who is Using Scala
http://alvinalexander.com/scala/whos-using-scala-akka-play-framework
Then Again : Java 8 / Scala competitors BFFs
http://readwrite.com/2014/02/20/java-8-scala-competitors-bffs-martin-odersky
Psychology
Have a sense of purpose in life? It may protect your heart
visit: http://www.sciencedaily.com/releases/2015/03/150306132538.htm
How New Payment Technology Can Manipulate You
Multitasking hunger neurons also control compulsive behaviors
visit: http://www.sciencedaily.com/releases/2015/03/150306112013.htm
Why Many Rich People Are Frugal
visit: https://www.psychologytoday.com/blog/how-do-life/201503/why-many-rich-people-are-frugal
Brain treats real and imaginary objects in the same way
visit: http://www.sciencedaily.com/releases/2015/03/150306073732.htm
Oxytocin nasal spray causes men to eat fewer calories
visit: http://www.sciencedaily.com/releases/2015/03/150305133027.htm
Human brains age less than previously thought
visit: http://www.sciencedaily.com/releases/2015/03/150305110445.htm
Time management: Why we feel busier when close to reaching a goal
visit: http://www.sciencedaily.com/releases/2015/03/150304130919.htm