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 ]

Building a CLI chat app with Go and WebSockets


Tags programming golang software

In this tutorial you will elarn about more about the WebSockets protocol. Go provides a WebSocket library, but the Go team advises to use other solutions built by the community. By Gustavo Caso.

Author used websocket – a minimal and idiomatic WebSocket library for Go. At a time it was the most recent of all and had support for context and rate-limiting. Once we move away from deciding on the WebSocket library, we need a way to route request to our server, Go provides a fantastic http package for doing that.

The tutorial and provided code splits content between client and server. The server handles new WebSocket connections, listen to messages on those socket connections and broadcast messages to the right users. Also, it takes care of adding and removing users to different chat rooms.

The client connects to the server, listens to messages that are sent to it and print them. It also allows the users to submit new messages to the server. For the details follow the link to the original article. Nice one!

[Read More]

Building a minesweeper game using React Hooks


Tags programming javascript react ux

Author of this blog post will share his experience and learnings with a project to improve my knowledge of the most significant ReactJS feature in recent time – hooks. Tutorial is about building Minesweeper clone. TypeScript was also used. By Ivaylo.

The article walks you through:

  • Development environment & setup
  • Game styling using retro library React95
  • Game logic
  • React hooks
  • State, without Redux
  • TypeScript 3.7

… and more. Author is now convinced that hooks are the future of React together with concurrent rendering, which will be the next major feature. Source code is available on GitHub. Easy read!

[Read More]

User authentication with Amplify in React Native and Expo app


Tags react javascript web-development mobile security

AWS Amplify is a fantastic framework that helps you develop your web or mobile applications quickly. By Aman Mittal.

AWS Amplify not only does it enhances your current tech stack, but it actually has many built-in features that you don’t have to worry about, especially when your app is in the development process. Some features include authentication, GraphQL and REST API support, a way to manage user pool, notifications.

Amplify can be integrated with most popular frontend frameworks like React, Vue, Angular, Ionic, React Native, or plain old vanilla JavaScript, if you’d like.

The article then reads about:

  • Requirements
  • Creating a new React Native App
  • How to create a new AWS IAM user
  • Initializing & Integrating Amplify SDK
  • Enable Amplify Auth Resource
  • withAuthenticator: Adding a High Order Component
  • Testing the default Amplify auth flow

This tutorial takes a look at one of the most important features of an application: authentication. Excellent read!

[Read More]

Five ideals for the modern enterprise


Tags startups teams miscellaneous career

Gene Kim is a researcher and an author who has been studying high performing IT organizations for over two decades. HIs take on the five ideals for the modern enterprise.

He notes why each is essential for the modern enterprise:

  • Locality and simplicity
  • Focus, flow and joy
  • Improvement of daily work
  • Psychological safety
  • Customer focus

This post covers three objectives that The Unicorn Project book looks to address, which is to describe what successful transformations have looked like to help others replicate those outcomes, the challenge of trying to figure out how you get data where it needs to go, and how we can overcome the strong opposition to the new ways of working.

Excellent read for any entrepreneur!

[Read More]

Get started quickly with kubernetes logging


Tags cloud devops kubernetes containers software-architecture

An article about how to get started with logging in Kubernetes. This topic is quite extensive as there are many components to consider before having a complete perspective of what’s happening inside your applications. By Erin Baez.

This post gives you an introduction to recommended practices, tools, patterns, and strategies for logging in Kubernetes. You’ll learn that instrumenting your application to emit logs is not going to be enough. By default, Kubernetes emits a lot of logs from all its components, so you’ll have a lot of information. You’ll have to know where to look and how to manage all of those logs.

The main parts of this article:

  • Starting With Kubernetes Logging
  • Reading the Logs
  • What Should You Log in Applications for Kubernetes?
  • Architectural Patterns for Application Logs
  • Exposing an Endpoint for the Application Logs
  • Using a Sidecar Container
  • What Other Logs Are Available in Kubernetes?
  • Keep All Kubernetes Logs Together

… and more. In Kubernetes, you can consume several types of logs. But to get useful insights from all these logs, you’ll need to keep all of them together. Centralized logging becomes crucial in distributed systems like those you run Kubernetes in. When you have all the logs at the same place, you can go deeper when troubleshooting. Good read!

[Read More]

Common life stressors and their impact on the workplace


Tags miscellaneous management teams cio career

Let’s face it, life can be hard. It’s easy to say leave your problems at the door, but sometime common life stressors can affect employees’ personal lives so much that it creeps into their professional life. By Michelle Kankousky.

Increased levels of psychological or physical stress can have serious implications for their performance and that of their teams.

The article then goes in some detail into:

  • What is a life stressor?
  • What are the signs your employee is struggling?
  • How can you talk to the employee about the situation?
  • How can your business provide assistance?

No matter what the solution, the common denominator is consistency: each employee must be treated the same. Thinking ahead and establishing policies and procedures that address potential situations can help avoid problems. Good read!

[Read More]

Angular: Keeping it Fat, Dumb, and Happy


Tags web-development angular nodejs javascript

Todd Palmer published this article about an architectural approach to better Angular applications. The article shows you how to keep your Templates declarative and dumb, your Components thin and smart, and your Services fat and happy.

The article will definitively answer your questions of how to structure your Angular application so the code is readable, testable, and maintainable. Specifically, this consistent approach makes our code more readable to others, especially those that are familiar with the approach. The code becomes more testable, because Services are easy to test.

A Template is Dumb when it doesn’t know anything about any other part of the application except for: Its Component and Its sub-component Templates. Services should be Fat and Happy. By Fat, I mean that business logic goes into your Services. When in doubt whether to put code into a Service or a Component, put it in the Service. Fatten up that Service and starve your Component.

The article is split into:

  • Core Principles
  • Templates should be Declarative and Dumb (Declarative, imperative, avoid complicated logic, small and simple)
  • Components should be should be Thin and Smart
  • Services should be Fat and Happy

A smart Component knows and controls exactly what the current state of the Template is. The Component determines exactly how to interact with the data model or Services based on user activity. Good explanation with examples of good and bac practice. All the code examples in the talk and article are in a GitHub repo. You will also get link to video resources. Nice one!

[Read More]

Understand RxJS Subjects


Tags web-development react javascript

If you are an Angular developer there is no way you missed RxJS Observables but you might be less familiar with Subjects. Even though they are less frequent than simple Observables, they are extremely useful. Understanding them will help you write better, cleaner reactive code. By Dornhoth.

Observables are lazy Push collections of multiple values. A Subject is like an Observable, but can multicast to many Observers.

The article describes:

  • Observables
  • Subjects
  • BehaviorSubjects
  • ReplaySubjects
  • AsyncSubjects

Intuitively, you can think of Observables as objects that emit streams of values. You need to subscribe to the Observable for it to start counting, the same way you need to call a function for it to be computed. Subjects are Observables. Nice intro into reactive programming!

[Read More]

Announcing TensorFlow Quantum: An open source library for quantum machine learning


Tags big-data machine-learning software-architecture google

Machine learning (ML), while it doesn’t exactly simulate systems in nature, has the ability to learn a model of a system and predict the system’s behavior. Over the past few years, classical ML models have shown promise in tackling challenging scientific issues, leading to advancements in image processing for cancer detection, forecasting earthquake aftershocks, predicting extreme weather patterns, and detecting new exoplanets. Posted by Alan Ho, Product Lead and Masoud Mohseni, Technical Lead, Google Research.

Google in collaboration with the University of Waterloo, X, and Volkswagen, announced the release of TensorFlow Quantum (TFQ), open-source library for the rapid prototyping of quantum ML models.

A quantum model has the ability to represent and generalize data with a quantum mechanical origin. However, to understand quantum models, two concepts must be introduced – quantum data and hybrid quantum-classical models.

TFQ allows researchers to construct quantum datasets, quantum models, and classical control parameters as tensors in a single computational graph. The outcome of quantum measurements, leading to classical probabilistic events, is obtained by TensorFlow Ops. Training can be done using standard Keras functions.

For all the details read original article. Super exciting!

[Read More]

Introduction to utility-first CSS for web developer


Tags ux css frontend web-development

CSS is an easy language to learn (and to implement) for creating a beautiful website. However, when it comes to implementing CSS at scale, it’s not that simple. For large scale websites and applications, CSS becomes really hard to write in. By Thoriq Firdaus in Coding.

CSS specificity is crippling up, and so, using !important is often inevitable and eventually adds up to the CSS file size.

Well, the good news is that web developers have come up with several methodologies to help write and organize CSS better, such as BEM, OOCSS, SMACSS, and ITCSS.

The article makes a good explanation how utility-first CSS works. It also makes a brief introduction to Tailwind CSS and optimising file size. Changing the way we write CSS is not always easy. It means that we have to unlearn what we are already used to. Well done!

[Read More]