Auto Added by WPeMatico

How to Run Apache Flink Effectively on YARN?

How to Run Apache Flink Effectively On YARN?Apache Flink is a framework to write distributed realtime data processing applications in Java/Scala/Python. Uber, Netflix, Disney and other major companies use Flink for a variety of purposes. It was recently bought by Alibaba in a multi-million dollar deal.Flink is inspired by Google’s Dataflow model. According to this model, the events are processed as soon as they are received rather than grouping them into a batch. This enables the…

Continue Reading

A Use Case of Immutable Collections

Caching can greatly improve an application’s performance by reducing the trips to fetch data that changes infrequently. The consistency of cached values is critical at run-time. At development time, we can avoid some human errors by setting caches to be Immutable Collections, so that cached values are not able to be mutated accidentally in code.This blog post will use the simplest cache IMemoryCache in .NET Core to demonstrate usages of Immutable Collections, which is also native…

Continue Reading

What Makes Apache Druid Great for Realtime Analytics?

Photo by Carlos Muza on UnsplashApache druid is one of the most popular open-source solutions for Online Analytical Processing (OLAP). It’s used by many tech companies such as Airbnb and Netflix to run queries on streams of data comprising millions of events per minute. It allows companies to make decisions in near real-time.The main selling point of druid is it easily scales to a million RPM of writes and beyond with sub-second latencies and is…

Continue Reading

Here’s What Can Go Wrong with Database Replication

https://www.reshot.com/photos/two-friends-teenager-student-girls-reading-their-books-and-talking-outdoor-in-front-of-the-sea-at_rs_x6O8RmReplication is the process to copy data from one server to another. It’s generally done so as to prevent data loss in case a server fails or to distribute the incoming load to multiple servers which have same data.Replicating the data might seem like a trivial operation but it comes with its own challenges. In this article, we are gonna look the challenges in the ubiquitous Master-slave architecture in ACID databases.Reading your own writesLet’s look the…

Continue Reading

React Has Built-In Dependency Injection

Dependency Injection is a popular pattern that many frameworks implement — but React.js, apparently, doesn’t. It turns out React has a dependency injection system built in JSX, and you probably already use it.What is Dependency Injection?Dependency Injection solves a common problem, which is hardcoded dependencies. When an object A depends on a second object B and creates that second object, then the dependency cannot be changed.For instance, this Calculator class create its own logger service, which cannot be…

Continue Reading

React JS for Beginners — The Basics

React JS for Beginners — The BasicsReact JS is today's most popular JavaScript Library for building User Interfaces, which has created by Facebook. We can build modern, fast Single Page Applications or websites with React.As a Frontend Developer, I know that React JS is very popular among companies in the Software Industry, but we can also see the increase of React JS popularity in the last 5 years, by Google Trends:React JS Popularity in the last 5 years by…

Continue Reading

Export Objects Array as CSV using TypeScript

Photo by Carlos Muza on UnsplashEnd users might want to download data from a web page so that users can keep a copy of data or do some magic tricks in Excel. Today, I will show a way to export an array of objects as a CSV file using TypeScript. You can view the demo here.https://medium.com/media/9a2cc6f0c40a48ab16f09f50189c0316/hrefShow me the codeThe code snippet below shows a service class CsvDataService which has a static method exportToCsv.https://medium.com/media/1a3f8d2da5b583bd98156a88840f367c/hrefThe usage is very straightforward…

Continue Reading

In OOP, Data is a Bad Idea

In OOP, Data is a Bad IdeaObjects are just enoughI’m not talking about global mutable state, that’s too easy. I mean any globally accessible static data, which is immutable.M83's We Own the Sky takeSome time ago I’ve read a book on Smalltalk, and it made me take look at the concept of data from a different angle. Being a pure OOP language, (almost) everything is object in Smalltalk. Surely, you can create publicly visible class variable, but…

Continue Reading

What the Hook? Learn the basics of Tapable

What is TapableTapable is a library that creates hooks for plugins. It is a core library of webpack, a popular module bundler. What makes Webpack powerful is you can write custom plugins. Tapable creates this powerful custom plugin system using hooks.What are hooksHooks allow other users to get notified of important events, and run the other user’s code when that important event happens. You’ve probably seen this before. The browser exposes many hooks for you to tap…

Continue Reading

Schedule Background Jobs Using Hangfire in .NET Core

Schedule Background Jobs Using Hangfire in .NET CoreYou might have found a variety of use cases of background tasks or scheduled jobs in application development. For example, we can delegate long running tasks to background threads. Most importantly, we sometimes need to schedule background jobs to keep domain models in consistent states, especially when the model state is mutated due to a time-triggered event.This post is neither to discuss the differences between Hangfire and native .Net Core…

Continue Reading

Conditional logic with SUM() and the IF() functions in MySQL…

Recently at work, I began hacking on a semi-personal/on-the-clock/side project, prototyping an idea I had for some “database stuff” on unfamiliar grounds.MS Access or using it period is a foreign landscape to me as I tend to lean more towards open-source alternatives, namely MySQL (and PostgreSQL in the past). However, it is what it is so I dug in a put my SQL thinking cap on…Note: All data, names or naming found within the database…

Continue Reading

5 Questions for Building a Monorepo

Before diving into Lerna, Bit and other monorepo tools, think what you’re building, who you’re building it for and why.The overhead around managing multiple packages in multiple repositories has been leading many teams to explore the old-new concept of a monorepo.Today, this doesn’t mean a huge spaghetti codebase but rather having a repository where multiple packages are hosted in and published from.This repository can be an application, a shared library or any other structure containing…

Continue Reading

Exploring Generated Columns in MySQL with examples.

Perhaps you have columns in your table that work together to provide some meaningful results. During table creation, you have the option to CREATE a GENERATED COLUMN in MySQL. What is that? And, what can you use it for? Read on to learn with me and find out…Photo by Daria Nepriakhina on UnsplashNote: All data, names or naming found within the database presented in this post, are strictly used for practice, learning, instruction, and testing purposes.…

Continue Reading

React — Code Your Own DataTable Step by Step (Video Tutorial)

React — Code Your Own DataTable Step by Step (Video Tutorial)Code a working version of a simple data table using no 3rd party library and using pure React.Broaden your tech vision by building advanced compoenentsThe video tutorial can be watched here (It’s an extract from my udemy course)https://medium.com/media/a2e2a5344bf40a7422b72243bb6b27ea/hrefThe following features are covered in the above tutorial✅ Binding data to the datatable dynamically✅ Searching on multiple columns/fields✅ Sorting✅ Pagination with customization✅ Reorder columns by dragging and dropping✅ Custom Cell renderer using…

Continue Reading

Stop waving the wand of magic numbers

Image by Adina Voicu37. You have no idea what that number is, do you? A number without context nor a label is a random value. It doesn’t tell us anything. Imagine walking by a billboard, with a picture of a person on a boat, and the text is a giant number 89. I’d be intrigued, but utterly confused. We rightfully reject meaningless numbers……so why then do they appear so often in source code? Any time…

Continue Reading

The eventual guide to develop bug free mobile app

Develop bug free mobile app are mandatory nowadays because, slowly smart phones are becoming basic need of people. People have become so addicted to their smartphones that they feel incomplete without it. And what makes them to become so intimate with smart phones? Yes you are right, it’s applications. The variety of apps available today enables users to do the great variety of things using their mobile phone only. So applications must be perfect, smooth…

Continue Reading

How to fail a programming interview

Photo by AlexandraI’ve conducted many interviews. There are many reasons why I reject people, but there are recurring themes. I want to give a list of the most common problems. A few of these things I once thought were obvious, while others are perhaps less so.Don’t know the basics of codingThis one troubles me a lot.It should not be a challenge to create lists, split them, and iterate over them. Functions, classes, variables, the basic structures of…

Continue Reading

Example of the RENAME USER command in MySQL

Naming your users and specifying their host does not have to be permanent. However, to implement any changes to those two fields, it is better to use the RENAME USER command as opposed to directly updating MySQL system tables. Read on to learn about this command with me…Photo by Randy Fath on UnsplashNote: All data, names or naming found within the database presented in this post, are strictly used for practice, learning, instruction, and testing purposes.…

Continue Reading

Understanding CSS BEM Naming Convention

Understanding CSS BEMPhoto by Fotis Fotopoulos on UnsplashNaming things are always difficult in the programming world, and in CSS.Some developers don’t pay that much attention to naming. They claim that there isn’t enough time on thinking about which name to give each class. That may be right, but in the long-run low-quality code consumes much more time.So there are different approaches to solve the naming problem, and one of them is called Block-Element-Modifier (BEM). In this article, we…

Continue Reading
Close Menu
Skip to toolbar