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 ]

8 best practices for perfect CSS documentation

Categories

Tags frontend-and-mobile miscellaneous

Adriana De La Cuadra article about best practices for CSS documentation. In the world of CSS, documentation is underused. Since documentation is not visible to the end user, its value is often overlooked by clients.

Yet documenting CSS can offer a lot to your project: from encouraging better code practices to easing the onboarding of new team members. Sometimes it can be difficult to determine what to document and how to do it most effectively.

Author’s advice revolves around:

  • Settting the ground rules
  • Explaining the structure of your code base
  • Establishing your coding standards
  • Avoiding long stylesheets

… and for the rest click on the link below. The author note, that with these best practices in mind, the next step is to incorporate a living style guide as part of your documentation.

In a living style guide, you can include interactive demonstrations of your code and you can further organize your documentation independently from the code structure. Interesting read!

[Read More]

Setting up a reverse-proxy with NGINX and docker-compose

Categories

Tags devops-and-ci-cd how-to software-engineering frontend-and-mobile

Dominik Weber tutorial how to set up reverse-proxy with NGINX, which can then handle server-related aspects, like SSL and caching, completely transparent to the application behind it. It is good practice in general to not make internal services public-facing that don’t have to be.

Article is divided into few sections:

  • Docker-compose configuration
  • Images used for docker-compose
  • Networks with Docker
  • Docker volumes
  • NGINX configuration with LetsEncrypt certificates

docker-compose is a neat little tool that lets you define a range of docker containers that should be started at the same time, and the configuration they should be started with.

In the article author briefly explains how to configure the docker-compose features used in examples. He uses official NGINX image with the second image he created himself called “ismydependencysaf”. It exposes port 80, too. The difference to the ports configuration is that they are not published to the host machine.

This article is especially useful for people new to Docker, docker-compose and containers. With further resources and links to articles aimed at NGINX security. Well worth your time!

[Read More]

Enterprise integration for Ethereum

Categories

Tags business-and-emerging-tech leadership-and-career architecture-and-apis

Bilgin Ibryam article about Ethereum usage in enterprise. Ethereum is distributed and decentralized, but it is mostly a closed system with the embedded ledger, the currency, and the executing nodes. The most popular open source Java integration library – Apache Camel supports Ethereum’s JSON-RPC API now.

In order to be useful for the enterprise, Ethereum has to be well integrated with existing legacy and new systems.

Ethereum is an open source, public, blockchain platform for running smart contracts. Today, Ethereum is one of the most established and mature blockchain platforms with interests from small and large companies, non-profit organizations and governments.

You will further find in the article:

  • The Ethereum ecosystem
  • Open source enterprise integration
  • Apache Camel connector for Ethereum
  • Use cases for Apache Camel
  • An Ethereum Oracle (smart contract) implemented in Apache Camel

Example code in Java included. Excellent read!

[Read More]

A sysadmin's guide to Ansible: How to simplify tasks

Categories

Tags devops-and-ci-cd

Jonathan Lozada De La Matta from RedHat wrote this article about sysadmin tasks automation. There are many ways to automate common sysadmin tasks with Ansible. In this article you will find several of them.

Author gives some advice how to better approach Ansible learning when you are new to it. He also creates list and code with examples of managing basic tasks for cloud infrastructure:

  • Managing accounts in systems
  • Maintaining lists of required packages
  • Configuring systems and applications
  • Provisioning a VM in the cloud
  • Doing other things

As mentioned code examples for various approaches to tasks done in Ansible in different ways included. Short, straight to the point Ansible intro. Great starting point for any sysadmin!

[Read More]

Reduce JavaScript payloads with tree shaking

Categories

Tags software-engineering frontend-and-mobile

Jeremy Wagner neat article about reducing the JavaScript in modern web applications. JavaScript is often compressed when sent over the network, meaning that the actual amount of JavaScript is quite a bit more after the browser decompresses it.

As of mid-2018, HTTP Archive puts the median transfer size of JavaScript on mobile devices at approximately 350 KB.

As far as resource processing is concerned, compression is irrelevant. 900 KB of decompressed JavaScript is still 900 KB to the parser and compiler, even though it may be ~300 KB when compressed.

JavaScript is an expensive resource to process. Unlike images which only incur relatively trivial decode time once downloaded, JavaScript must be parsed, compiled, and then finally executed. Byte for byte, this makes JavaScript more expensive than other types of resources.

Tree shaking is a form of dead code elimination.

Author explains:

  • What is tree shaking
  • How to find opportunities to shake a tree
  • How to use webpack to implement tree shaking in sample app
  • How to keep Babel from transpiling ES6 modules to CommonJS modules
  • About keeping side effects in mind
  • And how to import only what we need

And of course example code is included. Excellent read!

[Read More]

Scalaz 8 IO vs Akka (typed) actors vs Monix

Categories

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

There’s a couple of hot development areas in the Scala ecosystem, and the competition between the various side-effect wrappers is one of the most interesting. Adam Warski article comparing various options and trying to find the answer to the question: Can you really replace an Actor with an IO or Task?

Akka is much more than just actors; there’s streaming, persistence and clustering, just to name the three most popular modules.

An actor encapsulates and manages state. Access to the state is guaranteed to be serialized, so that the state is always accessed and changed by a single thread.

Article then compares all three libraries and provides test code for you so you can try yourself. To be precise it copares: akka-actor (just the base module, concurrency), monix-task and scalaz-zio.

Monix is a smaller library, but apart from the core concurrency library it also provides a reactive streaming implementation.

ZIO (Scalaz 8 IO), on the other hand, as well as cats-effect, is clearly focused only on encapsulating side effects and providing a concurrency library.

Good, in depth article. Author concludes that Monix / ZIO is definitely a viable alternative for the “traditional” and “typed” Akka flavors. Great!

[Read More]

React Native -- how to setup your first app

Categories

Tags frontend-and-mobile product-and-design

Aman Mittal’s article about first steps with React Native. React Native is a framework for building mobile applications with JavaScript and leveraging Reactjs. It uses native UI components. In React Native, there is no DOM rather than Native Components which are provided by platforms such iOS and Android.

React Native uses RCTBridgeModule to make a connection between native code and JavaScript code.

The article explains:

  • Difference between React Native and Reactjs
  • Platform specific designing
  • Developer Environment for React Native
  • Hello world with React Native

It will help you successfully setup your first React Native application. You can also find links to author’s other articles on React Native and mobile development in the article. And of course example code is provided. Good intorduction to React Native!

[Read More]

Stubbing and mocking in Java with the Spock testing framework

Categories

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

Kostis Kapelonis wrote this piece on importance of stubbing and mocking. When it comes to true unit tests, having a mocking framework such as Spock for Java is essential. Using a mocking framework ensures that your unit tests are fast, self-contained and deterministic.

A mocking framework can help you fake external systems, pre-program your classes with expected responses, and test hard-to-replicate error conditions.

Tutorial covers:

  • Downloading and setting up Spock via Maven
  • Some very brief theory on the goals of Spock
  • Stubbing return data from methods
  • Verifying interactions
  • Capturing arguments
  • Returning custom mocked responses

Also, explains how to use the external project of Spock reports. Excellent tutorial with example code included.

[Read More]

Introducing QALM, Uber's QoS load management framework

Categories

Tags software-engineering leadership-and-career architecture-and-apis

Article by Scott Yao and Ping Jin from Uber engineering team. It is about their experience how they proactively manage Uber’s traffic loads based on the criticality of requests, they built QoS Aware Load Management (QALM), a dynamic load shedding framework for incoming requests based on criticality.

Uber platform team owns four services with thousands of hosts, serving peak traffic up to 300,000 requests per second, with more than 450 internal services. Any system of this complexity is likely to experience outages, especially one that has grown so quickly.

Analyzing outages that occurred over a six-month period, we found that 28 percent could have been mitigated or avoided through graceful degradation.

The three most frequent types of failures QoS team observed were due to:

  • Inbound request pattern changes, including overload and bad actors
  • Resource exhaustion such as CPU, memory, io_loop, or networking resources
  • Dependency failures, including infrastructure, data store, and downstream services

You will find the QUALM architecture explained with accompanying charts, load test experiments and more. Well written!

[Read More]

Peer reviews either sandbag or propel Agile development

Categories

Tags software-engineering leadership-and-career

Patrick Londa posted interesting article on topic of peer review process and its impact on Agile success. Working on a fast-moving Agile team, one needs to continually build consensus so that there is not a communication backlog.

In Agile environment software releases are becoming more frequent. If you are not able to speed up your peer review cycles in tandem, you may start to sacrifice quality to hit deadlines.

Your key takeaways from this article:

  • A team’s peer review process is critical to their agile success
  • There are three attributes at the heart of a structured peer review process
  • Review transparency is crucial in bringing agile to the organization-level
  • How to establish clear and living communication expectations
  • How to select review metrics that enable meaningful process improvement

If you add rigor and structure to your process, your team will, to some degree, adopt the behaviors that you are emphasizing. Insightful article, with some great advice. Recommended!

[Read More]