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 ]

Splitting up Terraform & state file separation

Categories

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

Site reliability engineer Matt Ouille’s article about terraform state files. Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. They’re formatted in regular JSON but carry a lot of metadata that helps Terraform plan and predict what will happen with your infrastructure.

All infrastructure orchestrators have to work off of some sort of state. Interpreting live infrastructure state is complicated and sluggish at scale so many of them resort to some sort of centrally hosted file system that indicates this state to them.

State files literally are the single source of truth, as far as Terraform is concerned, in regard to your infrastructure.

The article focuses on:

  • State files important things to know
  • State file contents and jargon
  • State file separation
  • Workspaces

Good overview and interesting read!

[Read More]

Everything you need to know about tree data structures

Categories

Tags software-engineering business-and-emerging-tech data-and-analytics

Article by author TK focusing on data tree structures. If you are pursuing a Computer Science degree, you have to take a class on data structure. You will learn about linked lists, queues, and stacks. Those data structures are called “linear” data structures because they all have a logical start and a logical end. However, trees and graphs don’t store data linear. Both data structures store data in a specific way.

Trees and graphs organize data hierarchically.

In the article you will learn:

  • What is a tree
  • Examples of trees
  • Its terminology and how it works
  • How to implement tree structures in code

Each section introduces examples from real life for better understanding of the data structures. And of course code examples are provided, too. Nice read!

[Read More]

Maven scopes vs. Gradle configurations

Categories

Tags backend-development software-engineering

Andres Amiray blog post about comparison of Maven and Gradle. Both Maven and Gradle are popular choices when it comes to building Java projects. These tools share common traits but there are some key differences that make you more productive depending on a particular scenario.

Scopes and configurations are used by each tool to define dependencies and how they affect different classpaths, such as the compilation and runtime classpaths.

Maven defines 6 scopes and Gradle on the other hand defines a few more. Article then explains the behaviour for each scope in detail, e.g.

  • Compile - dependencies are available in all classpaths of a project
  • Provided - indicates you expect the JDK or a container to provide the dependency at runtime
  • Runtime - dependency is not required for compilation, but is for execution
  • Test - dependency available for the test compilation and execution phase only
  • System - you have to provide the JAR which contains it explicitly
  • Import - dependency to be replaced with the effective list of dependencies in the specified POM’s section

The article also pays specific attention to subtle difference between production scopes and test scope and why it could be a problem. In the article you can find plenty of configuration files and configuration comparison for both tools. Interesting!

[Read More]

Avoiding the wrong MVP approach

Categories

Tags product-and-design frontend-and-mobile leadership-and-career miscellaneous

An interesting article by Jared M. Spool about Minimal Viable Product (MVP) and how it is not about coding every time.

“We could make our customers happier and save the company a ton of money, all at the same time.” That was the pitch behind the innovation team’s new idea …

For many organizations, they’ve come to use MVP to mean a less functional, limited implementation application. Build it quick, get it into the hands of customers, and see how they like it.

This isn’t how MVPs are supposed to work. Eric Ries, who coined the term in his book, The Lean Startup defined an MVP as something that “allows a team to collect the maximum amount of validated learning about customers with the least effort.”

MVPs often don’t need code, but teams forget this. Our organizations are so used to solving every problem with software that we forget that we can learn what we need by faster, more effective means.

The teams that use MVPs most effectively focus on what you need to learn first. Then they ask how they can best learn it. Often, you can avoid writing any code altogether.

Learn more how the team designed MVP without coding in this real life example for insurance company.

[Read More]

Building a PWA chat app with Vue.js and Firebase (p1)

Categories

Tags frontend-and-mobile backend-development product-and-design

Kohwo Orien article about how to utilize Vue.js for building of Progressive Web Apps. Vue.js is a progressive framework for building web user interfaces. It became one of the recommended frameworks for building fast, reliable progressive web applications with offline capabilities and performance.

The article provides the way for:

  • Creating a template PWA
  • Firebase and Database configuration
  • Authentication using Firebase
  • Creating Views and Routing for Vuechat App

Firebase is tool that enables developers to make cloud-enabled apps quickly and easily. Firebase is cloud hosted and provides a realtime database as a service.

You will get link to youtube video and GitHub repository so you can follow the tutorial closely. Great read, if you need to build mobile friendly application.

[Read More]

Express.js and AWS Lambda serverless love story

Categories

Tags frontend-and-mobile backend-development product-and-design

Slobodan Stojanović article about creating serverless applications in Express.js. Express apps are easy to build, it is de facto the most popular Node.js framework.

For a simple app, you just need to add a few routes and route handlers. That’s it.

Article then describes how to create serverless API. This API consists of an API Gateway and AWS Lambda functions. Deployment is to AWS Lambda is done via Claudia.

Article also points out on some limitations – e.g. AWS Lambda will auto scale up to 1000 concurrent executions by default. Some other limitations:

  • Websockets don’t work with AWS Lambda
  • Upload to the file system will not work eithe
  • Execution limits
  • API Gateway has a timeout of 30 seconds
  • AWS Lambda’s maximum execution time is 5 minutes

Plenty of code examples and charts to help you understand new concepts with serverless. Nice intro into AWS Lambda and Express.js.

[Read More]

Web scraping with Golang

Categories

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

Nano Dano wrote this lengthy article about web scraping with golang. It can be useful in a variety of situations, like when a website does not provide an API, or you need to parse and extract web content programmatically. Tutorial walks through using the standard library to perform a variety of tasks like making requests, changing headers, setting cookies, using regular expressions, and parsing URLs.

Before doing any web scraping, it is important to understand what you are doing technically.

You will learn how to use:

  • Go – the Go programming language (tested with 1.6)
  • goquery (for some examples) – Go version of jQuery for DOM parsing

Then author goes over (in great detail with code examples) all topics needed for successful scrapping:

  • How to make an HTTP GET request
  • Make an HTTP GET request with timeout
  • Set HTTP headers (Change user agent)
  • Download a URL
  • Use substring matching to find page title …

And much more. Article also contains useful links to help you with Go installation etc. Excellent!

[Read More]

The 4 Inflection Points of Company Culture

Categories

Tags leadership-and-career

Brian Halligan, CEO of HubSpot, wrote this interesting article about lessons from HubSpot’s journey from startup to scaleup. HubSpot is inbound marketing and sales software that helps companies attract visitors, convert leads, and close customers.

The first rule about culture is that you don’t talk about culture.

The kind of culture he wanted for HubSpot in their early days was one where we didn’t have to think about it. Author subscribed to the Fight Club credo: the first rule about culture is that you don’t talk about culture.

Then they broke that rule. And he describes how they’ve been:

  • Discovering culture
  • Documenting culture
  • Operationalizing culture
  • Measuring Culture

And it was a bumpy road. But, they made sure to communicate specifically to “mid-life” employees about existing opportunities for development, and also came up with some new policies to create opportunities.

You can read more in this excellent article.

[Read More]

HTTP heuristic caching (missing cache-control and expires headers) explained

Categories

Tags software-engineering frontend-and-mobile

Paul Calvano explains why WebPageTest can sometimes show that a repeat view loaded with less bytes downloaded, while also triggering warnings related to browser caching. It can seem like the test is reporting an issue that does not exist, but in fact it’s often a sign of a more serious issue that should be investigated.

Article touches on the fundamentals of HTTP caching. HTTP client to cache a resource it needs to understand:

  • RFC 7234 specifically section 4.2 (Freshness) and 4.3 (Validation), e.g.:
  • How long am I allowed to cache this for?
  • How do I validate that the content is still fresh?

The HTTP Response headers typically used for conveying freshness lifetime:

  • Cache-Control (max-age provides a cache lifetime duration)
  • Expires (provides an expiration date, Cache-Control max-age takes priority if both are present)

The HTTP response headers for validating the responses stored within the cache:

  • Last-Modified (contains the date-time since the object was last modified)
  • Etag (provides a unique identifier for the content)

When both are present in a response, the browser will prioritize the Cache-Control over the Expires header. And much more detailed information in the article. Well worth your time!

[Read More]

Golang testing at Stream

Categories

Tags software-engineering backend-development testing-and-quality

Federico Ruggi deep dive into testing of golang apps at Stream. Stream’s API is used in production by more than 500 companies and 200 million end users. While they like to move fast, they definitely don’t like to break things. Stream is an API for building activity feeds that enables your development team to build personalized activity feeds this week.

Testing is a core part of their development process. Not a single line of code is deployed to a live system before it’s properly tested and peer reviewed. Their workflow looks like this:

  • Implement the new feature with TDD using Golang testing package, alongside some goodies from stretchr/testify
  • Write integration tests and acceptance tests with onsi/ginkgo and our own soon-to-be-released bdd library
  • Wait for the green light from Travis CI
  • Check test coverage on Codecov
  • Ship the new feature to staging

Article then explain each bit of their workflow with code examples and any decision reasoning.

Writing tests with Go is generally a fun experience, thanks to the simplicity of the language: the standard library offers a streamlined testing environment, and the vibrant Gophers community came up with nice tools built on top of it. Good read!

[Read More]