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 escape async/await hell

Categories

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

Javascript developer Aditya Agarwal published this interesting article about perils of asynchronous Javascript. While working with Asynchronous JavaScript, people often write multiple statements one after the other and slap an await before a function call.

This causes performance issues, as many times one statement doesn’t depend on the previous one – but you still have to wait for the previous one to complete.

async/await freed us from callback hell, but people have started abusing it – leading to the birth of async/await hell

The article then gives you:

  • Few examples of async await hell
  • Detailed explanation what is wrong in the example
  • Advice on how to get out of async / await hell
  • Example code with fixes

One interesting property of promises is that you can get a promise in one line and wait for it to resolve in another. Sweet and to the point article, with great code examples!

[Read More]

An Introduction to Q#

Categories

Tags software-engineering data-and-analytics ai-and-machine-learning

Ankit Sharma article focusing on Q# language. Q# is an accessible language for quantum computing. Q# is the new programming language introduced by Microsoft for quantum computing. Author goes over the data types, expressions, and statements of Q# with the help of code snippets.

According to Microsoft, Q# is a scalable, multi-paradigm, domain-specific programming language for quantum computing.

The article guides you through:

  • Installing the Quantum Development Kit
  • Explaining the Q# type model, including (amongst others):
    • Qubit – represents the Quantum bit
    • Pauli
    • Result
    • Range
  • Q# expressions
  • Q# statements

Good intro into Q# language. You will get links to further resources explaining quantum computing. Nice!

[Read More]

Why Python devs should use Pipenv

Categories

Tags backend-development software-engineering

Lacey Williams Henschel article about Pipenv which has become the official Python-recommended resource for managing package dependencies. Pipenv, the “Python Development Workflow for Humans” created by Kenneth Reitz. But there is still confusion about what problems it solves and how it’s more useful than the standard workflow using pip and a requirements.txt file.

Pipenv aims to solve several problems. First, the problem of needing the pip library for package installation, plus a library for creating a virtual environment, plus a library for managing virtual environments, plus all the commands associated with those libraries.

There are other benefits to using Pipenv: It has better security features, graphs your dependencies in an easier-to-understand format, seamlessly handles .env files, and can automatically handle differing dependencies for development versus production environments in one file.

The article has 3 sections:

  • A brief history of Python package installation
  • The new kid: Pipenv
  • Pipenv in action

You will find plenty of links to further resources and reading, including to the basics of using Pipenv. Good read!

[Read More]

CI/CD with Kubernetes: tools and practices

Categories

Tags devops-and-ci-cd

Rob Scott intro into Continuous Integration and Continuous Deployment (CI/CD) with Kubernetes. Setting up a CI/CD pipeline on top of Kubernetes will speed up your release life cycle — enabling you to release multiple times a day – and enable nimble teams to iterate quickly.

Kubernetes’ zero-downtime deployment capability relieves anxieties about maintenance windows, making schedule delays and downtime a thing of the past.

Article focus is on:

  • How Kubernetes simplifies CI/CD
  • Set of complementary tools
    • Draft from Microsoft which targets developer workflows
    • Helm project serving as Kubernetes package manager
    • Skaffold from Google enabling new development workflow
    • Spinnaker open source Continuous Delivery platform was developed by Netflix to handle CD operations at high scale

This is short intro and part of the larger story which you can download as free ebook from The New Stack web site. Nice summary!

[Read More]

What, why and how of PHP Composer

Categories

Tags software-engineering backend-development

Introduction in packaging tool for PHP – Composer. Article by Gaurav Makhecha from laravelfactory.com in which he tries to demystify the package manager Laravel and other frameworks use. Composer is a dependency manager and autoloading expert for PHP.

Author covers quick history about dependency management, explains what Composer is, discusses about the pains that Composer fixes and then walks through some useful points and tips around composer for the new developers and package maintainers.

The article explains:

  • Pains that Composer fixes
    • Dependency Management
    • Project directory size
    • Autoloading
  • Nuts and bolts of Composer
    • Installation
    • Versioning management
    • Slowness of Composer
    • Package development

And more. Composer also allows you to alter or expand its functionality by using composer-plugins. You can perform actions when your package is loaded and when certain events are fired. Good read!

[Read More]

Introduction to AWS Well-Architected Framework

Categories

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

An interesting article on devopedia about Amazon Web Services’ Weell-Architected framework (WAFR). Cloud platforms offer a number of services. A typical application can use one or more of these services, each of which can be configured in a number of different ways. AWS Well-Architected Framework (WAFR) offers a set of guidelines and best practices to help practitioners migrate, manage and optimize their applications and their operations on the AWS cloud.

The framework is made of pillars, design principles and questions.

You will learn what the five pillars of the framework:

  • Operational excellence
  • Security
  • Reliability
  • Performance efficiency
  • Cost optimization

It then goes and provides information on AWS services which can help in implementing WAFR? It also helps with design principles and best practices. Plenty of references and resources for further reading available. Well written!

[Read More]

The Right Way™ to do Serverless in Python

Categories

Tags software-engineering architecture-and-apis backend-development

Michael Lavers published this interesting piece about serverless in Python. In this blog post author takes a brief tour of serverless as it applies to Python as well as some handy tips and tricks to help you get your footing in serverless domain.

In the article you will get help with following:

  • Is my app/workload right for serverless?
  • Python 2 or 3?
  • Web API or Worker?
  • Serverless framework

The article then goes and explains how to set up AWS for simple Lambda functions, how to use serverless framework and an API Gateway. The example code is included together with instructions how to clean up afterwards. There is a plan for a second article which will describe more frameworks and how they work for you to experiment. Nice!

[Read More]

The five stages of JSON decoding in Elm

Categories

Tags software-engineering frontend-and-mobile

Older article by Matthew Buscemi in which he focuses on his 6 month experience with Elm language and translation of object-oriented patterns for scalable, maintainable architecture to Elm’s paradigm. For communicating between Atom editor and his Elm application, he needed ports, and in order to work with Elm Test output, he needed JSON decoders.

JSON decoders are a notorious pain point for newcomers to Elm.

Stages explained in the article:

  • Everything’s a record!
  • Dealing with variant/missing fields
  • Trying multiple variants with oneOf
  • Introducing the value type
  • JSON value/elm type independencevalue/elm type independence

Exhaustive list of code examples included. JSON became truly a transport mechanism for the web. If you find yourself struggling with JSON decoders, try to start with the simplest thing that could work. Link to further reading provided, too. Good read!

[Read More]

Software testing anti-patterns

Categories

Tags software-engineering testing-and-quality leadership-and-career

Article by Kostis Kapelonis in which he wants to catalog some high-level testing anti-patterns that are technology agnostic. Hopefully you will recognize some of these patterns regardless of your favorite programming language.

Unfortunately, testing terminology has not reached a common consensus yet. If you ask 100 developers what is the difference between an integration test, a component test and an end-to-end test you might get 100 different answers.

The anti-patterns in the article:

  • Having unit tests without integration tests
  • Having the wrong kind of tests
  • Testing the wrong functionality
  • Testing internal implementation
  • Paying excessive attention to test coverage
  • Having flaky or slow tests
  • Running tests manually
  • Treating test code as a second class citizen
  • Not converting production bugs to tests
  • Treating TDD as a religion
  • Writing tests without reading documentation first
  • Giving testing a bad reputation out of ignorance

This is long article with detailed explanation and examples for each anti-pattern. Excellent read!

[Read More]

Why is the human brain so efficient?

Categories

Tags data-and-analytics

Liqun Luo, professor in the School of Humanities and Sciences, and professor, by courtesy, of neurobiology, at Stanford University, published this interesting essay about human brain efficiency and how massive parallelism lifts the brain’s performance above that of AI. The brain is complex; in humans it consists of about 100 billion neurons, making on the order of 100 trillion connections.

Both the brain and the computer contain a large number of elementary units – neurons and transistors, respectively – that are wired into complex circuits to process information conveyed by electrical signals

The highest frequency of neuronal firing is about 1,000 spikes per second. The fastest synaptic transmission takes about 1 millisecond. Thus, both in terms of spikes and synaptic transmission, the brain can perform at most about a thousand basic operations per second, or 10 million times slower than the computer.

A pro tennis player can follow the trajectory of a ball served at a speed up to 160 mph. The calculations performed by the brain, however, are neither slow nor imprecise.

Read to learn more interesting facts about human brain and how engineers have taken inspiration from the brain to improve computer design. Top notch!

[Read More]