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 ]

JavaScript iteration protocols (Iterable and Iterator) and Generators

Categories

Tags software-engineering frontend-and-mobile

Anton Petrov interesting article about iteration protocols. Iterables and Iterators are not built-ins or syntactic sugar introduced by some recent ECMAScript standard, but protocols that were defined in the ECMAScript’s 6th edition.

Iterables and Iterators can be implemented by almost any object following some rules and conventions.

Generator, on the other hand, is a new built-in object, returned by a new kind of function: the generator function. This object conforms to both protocols.

So with ES2015+ we have the power to design a way for our objects to iterate through their values.

Do not reuse generators! Even if the for…of loop is terminated early, for example via the break keyword. Upon exiting a loop, the generator is closed and trying to iterate over it again does not yield any further results.

More in the article, which in detail describes:

  • The Iterable protocol
  • How to create your own Iterable
  • The Iterator protocol
  • How to create an Iterator
  • What are Generators

Good read!

[Read More]

Want to increase your worth as a developer? Learn to impact the business.

Categories

Tags software-engineering devops-and-ci-cd

Brandon Gregory thoughts on how to increase your worths to the business. As developers, working toward better positions and better salary means increasing your worth to your employer. Getting better at the technologies you use is a given. How do we tangibly increase our value to the companies we work for?

We have to be able to talk to our business peers about lead generation, CRM, metrics, EBITDA, targeting, retargeting, revenue models, search engine marketing, direct response landing pages. Even more than that, we have to know when and where to put on business hats ourselves.

Businesses don’t just want good coders. They need good people who can code at the same time as understanding the real-life application of what they are doing. Business-savvy, young, bright developers are very valuable.

Some advice in the article to developers:

  • Speak the language
  • Combating the dreaded rush job
  • When expenditures are savings
  • Sell solutions, not technologies
  • The overly-technical oil change
  • Take a step back to spring three steps forward

Really good points in this article! Employees and managers are often praised and sometimes promoted when they bring ideas to the table to reduce the time and money we had to spend to get things done.

[Read More]

Why performance matters

Categories

Tags software-engineering frontend-and-mobile

Jeremy Wagner wrote this piece about a common problem: Performance. Sites and apps are richer in functionality than ever before. As a consequence, they’ve become more demanding of network and device resources. So much so, that we now struggle with achieving a high level of performance across a variety of network conditions and devices.

Performance is about retaining users. The BBC found they lost an additional 10% of users for every additional second their site took to load.

Topics explored in the article:

  • Performance is about improving conversions
  • Performance is about the user experience
  • Performance is about people
  • Mind what resources you send
  • Mind how you send resources
  • Mind how much data you send

Good points with further links and guides on improving performance. Good read!

[Read More]

17 JavaScript / Node.js performance coding tips to make applications faster

Categories

Tags software-engineering frontend-and-mobile

Paul Shan article about misconceptions, shallow knowledge, bad assumptions among the JavaScript community members. In this article author has come up with a list of tips, which can make your JavaScript application faster.

This article is about coding in JavaScript to make the performance better.

Some rules and tips form the article:

  • No global vars please
  • Only homogeneous Array
  • Put common codes in a function
  • Closure & timer – a deadly combo
  • Create class for similar kind of objects
  • forEach vs for()
  • Avoid for…in

And many more in the article. Increasing your server’s configuration, scaling it out, distributing the services are some of the very well known processes to make your application perform better.

But if your code is causing memory leaks or sequential processing; all those dev-ops steps will not able to save your server getting slowed down or even crashed. Good read even for seasoned programmer!

[Read More]

Productive with Docker in 20 minutes

Categories

Tags devops-and-ci-cd cloud-and-infrastructure

George Fogle article about how to find a better, more productive development workflow with Docker. Docker and container-based development is really going to save you time in the future. As well as make working and debugging code a breeze.

A container is acting like an entirely separate computer, even though it’s on your computer. So using the name localhost inside of a container is not the same as using localhost in code that is running on your computer.

The article then explain how to use:

  • Docker
  • Docker Compose
  • Dockerfile
  • Image
  • Containers
  • Debugging effectively

When we’re creating an image, we first create a script file that will run some commands that Docker recognizes called a Dockerfile. The output of these commands create an image, that we’ll start container processes based off of.

Article also describe usage of environment variables with the environments keyword in docker-compose.yml.

Author also mentions how we can be more effective at debugging by using breakpoints that attach to the node process in our container. We an expose a port, where we can attach and set breakpoints from inside IDE. Interesting, give it a go!

[Read More]

Comparing AWS Lambda performance of Node.js, Python, Java, C# and Go

Categories

Tags architecture-and-apis cloud-and-infrastructure software-engineering

Yun Zhi Li – VP of Engineering APAC at continoHQ – wrote this article as a reaction to comparison of lambdas done in previous year by Yan Cui. He noticed that despite AWS adding more languages to lambda runtime, old languages were not neglected. In the article he reviewed and updated runtime performance benchmark of all five programming languages supported by AWS Lambda.

Similar to the original performance tests, author ignored the initial cold start time – and focused only on the duration metric to compare runtime performance between the different languages.

To manage the performance load test, he created a script that calls artillery.io. The script executes a load test across all twelve APIs over a one-hour period:

Some observations:

  • Observation 1 – .Net Core 2.0 significantly outperforms
  • Observation 2 – Go performance is comparable to Java
  • Observation 3 – Consistent performance of compiled vs dynamic

With Go and .Net Core 2.0 support, AWS continues to lead the FaaS race as the most mature provider – with the widest range of supported languages. Good read!

[Read More]

How to securely store API keys

Categories

Tags security-and-privacy architecture-and-apis

Bruno Pedro detailed blog post focusing on secure storage of your API keys in the cloud. Many people store sensitive information in private git repositories. If you do this, please think about it twice.

Storing API Keys, or any other sensitive information, on a git repository is something to be avoided at all costs. Whenever you integrate a third-party application with one of the services like GitHub, GitLab, Bitbucket, you might be opening your private repositories to those third parties.

He then describes how to use various tools to encrypt keys:

  • git-remote-gcrypt lets you encrypt a whole git repository
  • git-secret is a tool that works on your local machine and encrypts specific files
  • git-crypt is a binary executable to encrypt your files
  • BlackBox from Stak Overflow supports the encryption of small strings and not just entire files
  • Heroku configuration and config vars
  • Docker secrets
  • AWS Parameter Store

This article will help you become aware of the dangers of storing sensitive information such as API keys and secrets on public and also private git repositories. Click on the link to learn how to mitigate the risks. Great!

[Read More]

Addressing the Theory of Constraints with DevOps

Categories

Tags devops-and-ci-cd software-engineering architecture-and-apis

In his article Stefan Thorpe focuses on Theory of Constrains and DevOps. “Theory of Constraints” was originally conceived by Israeli business management educator and philosopher, Dr. Eliyahu M. Goldratt. Theory of Constraints inspired the development of new business management concepts and systems to revolutionize production procedures in manufacturing.

These practices of systems management all seek to improve on or, where possible, remove bottlenecks through process analysis.

Theory of Constraints has become a reputed model for eliminating waste, recognizing opportunities for better collaboration, and streamlining the flow of work down the value stream.

Author then identifies five steps to improving your development pipeline:

  • Identify the constraint
  • Exploit the constraint
  • Subordinate everything else
  • Elevate the constraint
  • Repeat the process

Diagrams and charts explain these five points. Please read to learn how Lean influences within the DevOps methodology actually provide a great defense strategy to follow on a daily basis. Very good!

[Read More]

Elegant patterns in modern JavaScript RORO

Categories

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

Bill Sourour from DevMastery.com wrote this article to introduce the pattern he has been using. He claims he did not invent it and came across it in other people’s code and eventually adopted it himself. The pattern is Receive an object, return an object (RORO).

Receive an object, return an object (RORO) Most of author’s functions now accept a single parameter of type object and many of them return or resolve to a value of type object as well. This patterns uses:

  • Named parameters
  • Cleaner default parameters
  • Richer return values
  • Easy function composition

RORO relies on destructuring feature introduced in ES2015. An added benefit of using destructuring for our parameter object is that it promotes immutability.

See function definition example bellow, with all parameters optional:

function findUsersByRole ({
  role,
  withContactInfo,
  includeInactive
} = {}) {...}

To learn more, read this article. Excellent!

[Read More]

NEAL, Uber's Open Source language-agnostic linting platform

Categories

Tags cloud-and-infrastructure software-engineering

Tadeu Zagallo announcment and introduction into NEAL. To make code reviews easier, Uber engineers built Not Exactly a Linter (NEAL), an open source language-agnostic tool that allows engineers to write custom syntax-based rules, thereby automating sections of the code review process.

NEAL lets engineers write their own set of rules to cover any part of the codebase, taking the code review process one step closer to full automation. In fact, to make this process easier, NEAL uses its own domain-specific language.

NEAL is extensively used for:

  • Improve the reliability of our tests by checking for patterns
  • Control the growth of our binary size
  • Enforce high-level restrictions on executable code

NEAL is designed to be completely extensible across three dimensions. To learn how please read whole article. Exciting!

[Read More]