Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

How to build a realtime chart in iOS

Categories

Tags frontend-and-mobile product-and-design

Neo Ighodaro article about building real time application in iOS. Nowadays, gathering data is one of the keys to understanding how products are perceived. However, all the data in the world would be useless without a way to visualize it.

In this article, we will explore how to create a simple realtime chart in iOS. The chart will receive data and update in realtime to the screens of everyone currently logged into your application.

Article is then split into few sections:

  • Requirements for building a realtime chart in iOS
  • Preparing to create our realtime chart application in Xcode
  • Creating our realtime chart application views
  • Adding basic functionality to our iOS chart application
  • Adding realtime functionality to our iOS chart application
  • Testing the application

… and more. Charts and code examples are included with the article. You will get insight how you can combine Pusher and the Charts package to create a realtime iOS chart application. Interesting!

[Read More]

How we failed with Angular & Elm is the solution

Categories

Tags software-engineering backend-development frontend-and-mobile

Asaf Cohen article about their journey from Angular to Elm. Their address the main problem AngularJS created, and that is the illusion they could use it to design the UX as we please (uh … like develop) and that was not the case.

After playing with React they compared what some other tech companies where using and they settled on Elm.

Elm is a pure functional language with static type checking, that generates Javascript, css and html and provides a complete solution for web development and it’s toolset include the time-traveling-debugger.

Some benefits they observed:

  • A development environment that includes a dedicated debugger
  • Type safety can be applied to css – never have css errors!
  • No problem preserving application state
  • More safety! You cannot hijack elm network requests

… and more. But not everything is roses. To learn about caveats, Elm architecture and list of other resources, including 3rd party comparison on how popular frameworks stack up against each other solving the same problem - read this article!

[Read More]

Algorithms and Data Structures in JavaScript

Categories

Tags backend-development frontend-and-mobile software-engineering

Oleksii Trekhleb straight to the point article about data structures in JavaScript. It describes a collection of classic algorithms and data-structures implemented in ES6 JavaScript with explanations and links to further readings and YouTube videos.

Author also tried to make this process even smoother for learners. He has tried to put some graphical illustrations for each algorithm and data structure where it was possible just to make the idea behind those algorithms to be easily grasped and memorized.

All code is 100% covered with tests. Repository also has a playground.

Explained and covered data structures:

  • Linked List
  • Queue
  • Stack
  • Hash Table
  • Heap
  • Priority Queue

… and more. On top of these data structures more than 50 popular algorithms are implemented. Great resource!

[Read More]

A large-scale study of programming languages and code quality in Github

Categories

Tags software-engineering

Baishakhi Ray, Daryl Posnett, Premkumar Devanbu, Vladimir Filkov detailed study of programming languages and code quality. They tried to answer the question: What is the effect of programming languages on software quality?

In this study, we gather a very large data set from GitHub (728 projects, 63 million SLOC, 29,000 authors, 1.5 million commits, in 17 languages).

The reasonably large sample size allowed authors to use a mixed-methods approach, combining multiple regression modeling with visualization and text analytics.\

Functional languages have a smaller relationship to defects than other language classes whereas procedural languages are greater than or similar to the average.

One should take care not to overestimate the impact of language on defects. While the observed relationships are statistically significant, the effects are quite small. Analysis of deviance reveals that language accounts for less than 1% of the total explained deviance.

Great article full of insights!

[Read More]

Angular security -- Authentication with JSON Web Tokens (JWT), complete guide

Categories

Tags backend-development frontend-and-mobile security-and-privacy architecture-and-apis

Angular university brought you this a step-by-step guide for both designing and implementing JWT-based Authentication in an Angular application. The goal here is to discuss JWT-based Authentication Design and Implementation in general.

In a nutshell, JWTs are digitally signed JSON payloads, encoded in a URL-friendly string format. A JWT can contain any payload in general, but the most common use case is to use the payload to define a user session.

The guide follows the complete journey of a JWT from creation on the Authentication server and back to the client, and then back to the Application server and talk about all the design options and decisions involved.

Selected points touched by the article:

  • JWT-based Authentication in a Nutshell
  • User Login in an Angular Application
  • Creating a JWT Session Token using node-jsonwebtoken
  • Sending a JWT back to the client
  • Where to store a JWT Session Token?
  • Checking User Expiration
  • Building a custom Express middleware for JWT validation

… and much more. Perfect!

[Read More]

Beyond CPU: horizontal pod autoscaling, custom metrics in Google Kubernetes Engine

Categories

Tags devops-and-ci-cd

Interesting article by Maks Osowski addressing common problem for enterprises and their need to autoscale their environments based on more than just CPU usage. Horizontal Pod Autoscaler (HPA) on Kubernetes Engine 1.10+ will enable you to configure your deployments to scale horizontally in a variety of ways.

The article then introduces a real life scenario based on Microservices architecture for a global video-streaming company.

The services are then scaled:

  • To make sure she meets the service level agreement for the latency
  • Horizontally based on the queue length
  • Using the new ‘External’ metric type when configuring the Horizontal Pod Autoscaler
  • Utilizing Pods custom metric type
  • Using an existing feature of the Horizontal Pod Autoscaler to scale based on multiple metrics at the same time

To handle scaledowns correctly, we also make sure to set graceful termination periods of pods that are long enough to allow anything happening on pods to complete.

Example configuration is presented together with explanation. Great read!

[Read More]

Advanced logging on Kubernetes

Categories

Tags devops-and-ci-cd

Sandor Guba article diving into Kubernetes logging. The article covers some advanced techniques and visualizations of the collected logs. It is part of the series of articles on Kubernetes topic. Banzai Cloud puts huge efforts to monitor large and federated clusters and they push large amounts of logs of the distributed applications to Kubernetes.

The author’s focus is on Kubernetes and Fluentd; an open source data collector, which lets you unify the data collection and consumption for a better use and understanding of data.

Article deals with:

  • Logs parsing
  • Filtering messages based on app label
  • Logs storage
  • Kibana
  • Legacy applications monitoring

There is plenty of code examples and charts helping you to understand logging architecture they use. The charts and configurations available in their helm chart repository. Great read!

[Read More]

Fact vs. fiction: 6 myths about container security

Categories

Tags software-engineering devops-and-ci-cd security-and-privacy

David Lawrence wrote this article to help you to quell these myths so you can find default security and secure coding at the heart of well-architected containers. In this article, authors take a look specifically at the myths surrounding container security – and the opportunities container technology presents to integrate security at each stage of the application lifecycle that otherwise would be hard to achieve.

Containers are in fact a security tool, offering more methods to secure your applications.

The article focuses on these myths:

  • Containers are inherently insecure
  • You must purchase additional security for containers to secure your application
  • I need to change my applications to get modern security
  • All containers are the same

Click the link below to learn about another 2 myths mentioned in this article. Nice reading.

[Read More]

Trying out Containerized Applications on Apache Hadoop YARN 3.1

Categories

Tags data-and-analytics

Shane Kumpf & Vinod Kumar Vavilapalli & Saumitra Buragohain from Hortonworks wrote series of articles about Hadoop. This is the 5th blog of this seres and in this blog, they will explore running Docker containers on YARN for faster time to market and faster time to insights for data intensive workloads at scale.

Apache Hadoop YARN community has been hard at work enabling the building blocks for running a diverse set of data intensive workloads at unprecedented scale. The rich scheduling and multi tenancy features that are already present in YARN combined with containerization, open up many more use cases.

Hadoop has three core components, plus ZooKeeper if you want to enable high availability:

  • Hadoop Distributed File System(HDFS)
  • MapReduce
  • Yet Another Resource Negotiator(YARN)

YARN (Yet Another Resource Negotiator) is the framework responsible for assigning computational resources for application execution.

In the article you will find instructions how to go about:

  • Setting up yarn resource manager & scheduler
  • Setting up yarn containerization on the NodeManager
  • Setting up yarn NodeManager – yarn-site.xml
  • Setting up yarn container-executor binary (container-executor.cfg)
  • Running containerized distributed shell

Detailed tutorial, which gets you started with dockerized Hadoop. Security considerations are also mentioned. Good read!

[Read More]

When, how and why use Node.js as your backend

Categories

Tags software-engineering frontend-and-mobile backend-development

Justyna Rachowicz published this article about leveraging the Node.js technology in building applications. The benefits of Node.js are countless, but you should also be aware of its constraints. Get a full picture of Node.js and avoid making serious mistakes in development that could cost you money.

Thanks to Nodej.js unique I/O model, it excels at the sort of scalable and real-time situations we are increasingly demanding of our servers. It’s also lightweight, efficient, and its ability to use JavaScript on both frontend and backend opens new avenues for development.

The article then outlines:

  • What is Node.js?
  • How is Node.js different from web JavaScript?
  • Why is it worth developing your project in Node.js?
  • Good use cases for Node.js
  • When might Node.js not be the best idea?
  • Package quality considerations

PLenty of further reading and resources are included as well. Node scales well, works great with real-time tasks and is generally fast. To learn more, read this excellent guide.

[Read More]