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 ]

Deep-dive tutorial series on React, TypeScript, and TDD

Categories

Tags frontend-and-mobile product-and-design

Paul Everitt, PyCharm Developer Advocate form JetBrains, posted this article with links to resources for learning React, TypeScript and Test Driven Development (TDD). React is obviously super-hot, TypeScript has recently become super-hot, and the combination is attracting increasing interest.

JetBrains released this long “under construction” tutorial series. It includes videos, code, write-ups with screenshots, organized into 12 parts.

It aims to have:

  • Full writeup explaining the tip, what problem it is solving, and variations on the tip for different situations
  • Links to related tips, along several axes (technology, topic, author)
  • Links to external content (e.g. help system articles)
  • A short, narrated video about that tip
  • Playlists which organize the tips into a certain sequence

Enjoy this 12-part tutorial series! Really good for anybody into Reactjs and wanting to learn TDD.

[Read More]

The data science behind Natural Language Processing

Categories

Tags miscellaneous data-and-analytics leadership-and-career

John Thuma published this piece about the data science behind Natural Language Processing (NLP). Human communication is one of the most fascinating attributes of being sentient. We communicate in a variety of ways including speech and written symbols.

Chris Manning, Professor in Machine Learning at Stanford University describes communication as “a discrete, symbolic, categorical signaling system”.

Natural language processing (NLP) is a discipline in computer science and artificial intelligence. The article details some of the basic capabilities of these algorithms in the field of natural language processing:

  • Tokenization
  • Parts of Speech
  • Stop Word Removal
  • Stemming
  • Lemmatization

Linguistics is the study of language, morphology, syntax, phonetics, and semantics. This field, including data science and computing, has blown up over the past 60 years. Code examples in Python included. Insightful!

[Read More]

The science of drawing and memory

Categories

Tags miscellaneous leadership-and-career

Interesting article by Youki Terada about experience of experts in the science of memory – how people encode, retain, and recall information. It’s long been known that drawing something helps a person remember it.

A new study shows that drawing is superior to activities such as reading or writing because it forces the person to process information in multiple ways: visually, kinesthetically, and semantically.

Scientists from the University of Waterloo conducted experiments to better understand how activities such as writing, looking at pictures, listening to lectures, drawing, and visualizing images affect a student’s ability to remember information.

Participants recalled 20 percent of words they had written down, but more than twice as many – 45 percent – of the terms they had drawn.

Their recommendation how teachers can incorporate drawing to enrich learning:

  • Student-created learning aids
  • Interactive notebooks
  • Data visualization
  • Bookmarking – create their own books to visually represent topics
  • Assessing learning through art

Follow the link to learn more about results of the study and more advice. Good read!

[Read More]

Code Migration in Production: Rewriting the Sharding Layer of Uber's Schemaless Datastore

Categories

Tags data-and-analytics

An older article by Jesper Lindstrøm Nielsen and Anders Johnsen about how Uber Engineering built Schemaless, their fault-tolerant and scalable datastore, to facilitate the rapid growth of our company.

After determining that our datastore could reap significant performance gains if we rewrote Schemaless’ fleet of Python worker nodes in Go (a language that features built-in support for lightweight concurrency), we migrated our product systems from the old implementation to the new one—all while still in production.

The article then dives into:

  • Schemaless background
  • Designing the Frontless architecture
  • Read endpoints: validation by comparison
  • Write endpoints: automated integration tests
  • Frontless results

Project Frontless showed that it is possible for Uber Engineering to rewrite a critical system in an entirely new language with zero downtime. Detailed explanation how they did it plus scheme and charts included. Very impressive!

[Read More]

How to run HA MongoDB on IBM Cloud Kubernetes Service

Categories

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

A tutorial by Janakiram MSV about running highly available MongoDB cluster on IBM Cloud Kubernetes Service. IBM Cloud Kubernetes Service is a managed Kubernetes offering running in IBM Cloud. It is designed to deliver powerful tools, intuitive user experience, and built-in security for rapid delivery of applications that can be bound to cloud services related to IBM Watson, IoT, DevOps and data analytics.

This tutorial is a walk-through of the steps involved in deploying and managing MongoDB cluster.

The following steps are described:

  • Launching an IKS cluster running on bare metal servers with software-defined storage (SDS)
  • Installing cloud native storage solution like Portworx as a Daemonset on IKS
  • Createing storage class defining your storage requirements like replication factor, snapshot policy, and performance profile
  • Deploying MongoDB using Kubernetes
  • Test failover by killing or cordoning node in your cluster
  • Expanding the volume size dynamically
  • Performing backup and restore through snapshots

Through the integration of STORK (Storage Orchestration for Kubernetes), DevOps and StorageOps teams can seamlessly run highly available database clusters in IKS. Nice one!

[Read More]

Vue.js app performance optimization: Lazy loading Vuex modules

Categories

Tags backend-development frontend-and-mobile

Filip Rakowski wrote this blog series about optimizing Vue.js application for perfromance. He focuses on code splitting our state management – Vuex modules.

Ability to code split Vuex modules is a powerful tool. The more data-related operations you’re dealing with in your application the more savings you’ll get in terms of bundle size.

This series is based on learnings from Vue Storefront performance optimization process. By using below techniques we were able to cut off size of our initial bundle by 70% and made it load in a blink of an eye.

The author then explains what are the possible ways to register a Vuex module and what are their pros and cons. He also writes about:

  • Static Vuex modules
  • Dynamic modules
  • Properly code-splitted Vuex modules
  • Lazy loading Vuex modules

Even though static Vuex modules registration is sufficient for most use cases there are some certain situations when we might want to make use of dynamic registration. Article is accompanied by example code, charts and links to further resources on the topic. Nice!

[Read More]

OOP vs. functional programming. The pursuit of extensibility

Categories

Tags backend-development software-engineering

Adam Gajek about his experience with Scala programming language and about criticism about its mixed Functional and Object-Oriented Programming nature. He decided to compare both approaches in terms of extensibility based on the Expression Problem formalized by Computer Science Professor, Philip Wadler, who greatly contributed to the development of Functional Programming.

Our code is evolving all the time. There is always some refactoring, bug-fixing and (hopefully) additions of new features.

Software extensibility is vital so that one of the famous SOLID principles is dedicated solely to this subject, as is formulated by Bertrand Mayer’s Open-Close Principle.

Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.

The Expression Problem focuses on one of the most important features of code: extensibility. This can be described as the ability to evolve without:

  • Affecting the clarity of the existing code
  • Putting much effort into adding new functionality
  • Breaking code that works properly

Read more about this interesting topic in this mini series of articles. Recommended for any programmer!

[Read More]

Monitor your garage door with Pi Zero W

Categories

Tags business-and-emerging-tech miscellaneous leadership-and-career

Bob Murphy published this detailed guide how to build a garage door monitor with your RaspberryPi. There are lots of garage door monitor projects on hackster.io and other Maker sites. Many are single-purpose solutions. The author wanted a project that would be extensible, to build on the skills learned for future IOT projects.

Also, he wanted a platform that was well-documented and well-supported. Adafruit’s cloud service for Makers, adafruit.io, fit the requirements.

An Adafruit Feather Huzzah checks whether the garage door is open/shut via a magnetic switch, then sends the current status to an adafruit.io feed.

His basic setup:

  • GarageDoorMon doesn’t use a battery, it’s powered by a 5V adapter; you’ll need a long wire from the door and place the Feather Huzzah near a mains power source
  • Logic is reversed, a ‘1’ is sent to adafruit.io when the garage door is open, ‘0’ when closed(SHUT)
  • Raspberry pi zero W runs a system service to monitor the door status, shows on 4-digit display
  • Can be used with IFTTT to notify user via email, text message etc
  • The Pi Zero W uses MQTT subscribe directly from adafruit.io feed, via Python client code.

To get full information on the process, parts used, images describing the installation and setup follow the link to original article! Well worth your time!

[Read More]

Technical Debt: What it is, why it's important, and how to prioritize it

Categories

Tags leadership-and-career software-engineering

It’s easy to think of tech debt as the monster in the codebase. But what does it actually consist of, and how can you manage it? Jennifer McGrath helps you to find out.

Technical debt is anything (code-based, or not) that slows or hinders the development process.

Explaining technical debt isn’t always so straightforward.A common perspective on technical debt is that it stems from engineers’ carelessness, hastiness, or even sloppiness, often in an attempt to achieve results faster.

But while technical debt can result from recklessness (inadvertently or not), it’s can also be leveraged deliberately. Just as you can borrow capital in a responsible or careless manner, you can create technical debt strategically or recklessly.

The article then goes on:

  • What does technical debt look like?
  • Automation and cognitive load
  • Absence of context in daily practices
  • Human factors
  • How to prioritize addressing technical debt
  • Use metrics to quantify the business impact of technical debt

In essence, creating technical debt is inevitable. You cannot avoid encountering it so long as you continue coding and growing. But addressing technical debt doesn’t have to come at a cost of your forward progress. Interesting read!

[Read More]

Seven tips on Firebase security rules and the Admin SDK

Categories

Tags data-and-analytics security-and-privacy cloud-and-infrastructure product-and-design

Posted by Hiranya Jayathilaka and Rachel Myers this article focuses on Firebase offers security rules – a powerful mechanism that helps enforce the security and logical correctness of your apps. The backend services use security rules to authorize and validate the requests made by client apps, and make sure they adhere to the policies that app developers have put in place.

The authors then share a few tips related to security rules and the Admin SDK:

  • Admin SDK bypasses security rules
  • Make certain data read-only
  • Role-based access control with custom claims
  • Temporarily withhold sensitive data from users

… and more can be found in the original article. Firebase takes a declarative approach to ensuring the security and logical correctness of your apps. By keeping the rules separate from application code, you can easily update your security policies, while keeping the application code simple.

With Firebase you can patch any detected security vulnerabilities instantly, without having to go through a long and arduous app rollout. Nice one!

[Read More]