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 ]

5 ways to style React components in 2019

Categories

Tags frontend-and-mobile software-engineering

An article by Jonathan Saring about styling of building blocks of user interfaces in React in 2019. As visual elements, styling them is a big part of how application actually meets our users, and composes the way our brand and product looks and feels.

Choosing the right method for styling components isn’t an absolute truth. It’s a relative choice that should serve your use case, personal preferences and above all architectural goals of the way you work

The article then describes in the detail how to style components using these techniques:

  • Inline CSS
  • CSS in JavaScript
  • Styled Components
  • CSS Modules
  • Stylable

When scaling our codebase, our styling method is the key to balancing modularity and avoiding common scaling issues which can compromise our development velocity. Good read!

[Read More]

Deploy Node.js App with GitLab CI/CD

Categories

Tags devops-and-ci-cd software-engineering backend-development

An article by Seulkiro Park in which he sheds the light on deployment process utilizing continuous integration and continuous delivery (CI/CD) tools offered by GitLab.

In the tutorial he guides you through:

  • Creating a GitLab project
  • Creating example Node.js express application
  • Heroku application setup
  • GitLab CI/CD configuration file
  • Heroku deployment

GitLab has a runner to manage jobs as part of CI/CD, e.g. test, deploying to staging or production environments. You can navigate to Settings > CI/CD > Secret Variables and then you can store your secret keys or any other environment variables that the Runner can access to.

GitLab CI/CD is super easy to set up and useful for deploying your changes to different staging environments before production then finally production environment.

Heroku supports git repository and even deployments from GitHub out of the box. Good read!

[Read More]

Migration to Google Cloud Platform (GCP)

Categories

Tags architecture-and-apis cloud-and-infrastructure business-and-emerging-tech

By Neeraj Khandelwal, Senior Engineering Manager-DevOps at Hike published series of blog posts about their growth journey and migration to Google Cloud Platform (GCP). They hit scaling challenges once they hit 100 million registered users and sent 40 billion messages every month.

Using GCP’s global load balancing, a single anycast IP can forward up to 1 million requests per second to various GCP back-ends such as Managed Instance Groups(MIG) and it didn’t require any pre-warming.

In the first part they describe why they decided on GCP and how they run proof of concept (PoC). They key areas they cover in PoC:

  • Load Balancer
  • Compute Engine
  • Networking and Firewalls
  • Security
  • Cloud Resource Accessibility
  • Big Data
  • Billing

The POC included testing and verifying for VMs/Network/Load Balancer Throughput, Stability, Scalability, Security, Monitoring, Billing, Big Data and ML services.

Excellent read for any CIO, CTO!

[Read More]

Combining Amazon Aurora, Lambda, and SQS to go beyond the native capabilities of MySQL

Categories

Tags backend-development architecture-and-apis cloud-and-infrastructure devops-and-ci-cd miscellaneous data-and-analytics

David Yahalom posted on redgate Hub about innovative combination of Amazon Aurora, serverless Lambda and Simple Que Service to strecth MySQL beyond native capabilities.

Most commercial database systems are ‘monolithic’ and integrate a great deal of advanced functionality and capabilities directly into the database itself. As one example, both Microsoft and Oracle provide an asynchronous messaging/queuing mechanism that is part of the database engine.

When your run your MySQL databases as an Aurora MySQL cluster in Amazon Web Services, you also have access to the full set of powerful AWS ecosystem services and solutions which you can leverage where native database functionality is missing.

The article provide clear instructions how:

  • Create an Amazon SQS Queue that will be used to store messages as JSON payloads
  • Configure IAM Role and create a cluster parameter group
  • Create a Lambda function which will use the SQS API to send and receive messages from Amazon SQS
  • Invoke the Amazon Lambda function from within an Aurora MySQL Cluster using mysql.lambda_async

This is just one example of how you can extend the core functionality of MySQL by leveraging additional cloud-native components provided by AWS. You will also get screen grabs from AWS admin interface and sample code to implement everything above. Fantastic read!

[Read More]

The power of web components

Categories

Tags frontend-and-mobile software-engineering

Post by Potch html5 developer and web platform advocate from Mozilla about re-usable code. He writes about handful of web standards. Each standard has some independent utility, but when used together, they enable something that was previously impossible to do natively. The capability to create user-defined HTML elements that can go in all the same places as traditional HTML.

Defining your own working HTML elements requires new powers the browser didn’t previously give developers.

This article is meant as a primer, introducing a range of new capabilities and resources. The article then explains in some details:

  • How the <template> element works
  • Custom elements
  • Shadow Document Object Model (DOM)

You will also find code example explaining how to create your custom element – fancy button. Very educational for anybody interested in frontend and web design. Nice!

[Read More]

The McKinsey report on design

Categories

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

Blog post by Emily Esposito for InVision in which she asked: how can you confidently prove the business value of good design?. McKinsey & Company was trying to change that with their October 2018 report highlighting “the most extensive and rigorous research undertaken anywhere to study the design actions that leaders can make to unlock business value.”

Report tracked the design practices of 300 publicly listed companies over a five-year period, interviewing senior business and design leaders. From the data, they uncovered 12 actions showing the greatest correlation with improved financial performance and grouped these actions into four broad themes.

The McKinsey Design Index (MDI), which rates companies by how strong they are at design and, more importantly, how that actually relates to real business value. It relies on four themes of good design.

The four clusters of design actions that make up the MDI offer proven design best practices that you can follow:

  • Analytical leadership
  • User experience
  • Cross-functional talent
  • Continuous iteration

Learn details in this engaging article!

[Read More]

How military-style training may enhance your cybersecurity strategy

Categories

Tags cloud-and-infrastructure devops-and-ci-cd security-and-privacy

Article by Michael Kassner about the facility offering realistic cybersecurity training modeled on the approach used by the military and first responders.

Militaries understand the importance of training in as realistic a manner as possible. It helps automate responses and find areas that need improving, and, most importantly, those involved walk away unscathed.

That realism is achieved by immersing people in simulated attacks. CTO of cybersecurity company root9B suggests that having trained personnel who think like adversaries is as important as the defensive technology in use. The people at IBM’s X-Force Command Center agree and work hard to create training conditions that are as realistic as possible.

IBM’s Cyber Range uses live malware, ransomware, and other real-world hacker tools culled from the dark web to deliver realistic cyberattack experiences. The facility features an air-gapped network of a fictitious corporation, used for simulated attacks, consisting of one petabyte of information, more than 3,000 users and a simulated version of the internet.

Caleb Barlow, vice president at IBM Security and his team have found that under duress those with military or emergency-services experience step up and supply the needed leadership. “Some kinds of leadership can be taught in a classroom, but the true test of leadership happens in the arena,” concludes Barlow. “Leaders thrive in tough situations, and every tough situation needs leaders.”

Read article to discover more. Great read!

[Read More]

Single Responsibility Principle done right

Categories

Tags software-engineering architecture-and-apis miscellaneous

Ricardo Cardin thoughts on Single Responsibility Principle (SRP). Single Responsibility Principle is one of the 5 principles defined in SOLID principles. It should help with readability, lose coupling and cohesion of your code. Ricardo considers it to be one of the most powerful among these principles, yet one of the most misleading.

In 2006, Robert C. Marting, a.k.a. Uncle Bob, collected inside the book Agile Principles, Patterns, And Practices in C# a series of articles that represent the basis of clean programming, through the principles also known as SOLID.

SRE - Every module or class should have responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class.

Simpler definition: A class should have only one reason to change.

Given the above definition of the Single-Responsibility Principle, it is clear that there is no mathematical rigor to it. Every developer, using its own experience can give a different meaning to the word responsibility. The most common misunderstanding regarding responsibilities is which is the right grain to achieve.

Cohesion gives us a formal rule to apply when we are in doubt if a type owns more than one responsibility.

Author comes to conclusion that it is all about cohesion. Learn, what does he mean by that in this excellent article!

[Read More]

10 MySQL database tuning tips for peak workloads

Categories

Tags backend-development data-and-analytics software-engineering

Folks from MariaDB wrote this article in which they collated 10 MySQL tuning tips for peak workloads. As we head into the holiday season and the start of a new year, now is a great time to ensure your database is ready for whatever comes its way.

Some advice in this article:

  • InnoDB buffer pool size
  • InnoDB log file size
  • InnoDB log buffer size
  • InnoDB log flush interval
  • Thread cache size
  • Temporary tables, tmp_table_size, and max_heap_table_size

… for the rest of information please read full article linked here. We also recommend watching the on-demand webinar on Readying Databases for Anything by MariaDB. Great advice!

[Read More]

Connecting multiple OpenShift SDNs with a network tunnel

Categories

Tags software-engineering cloud-and-infrastructure miscellaneous architecture-and-apis

Very interesting post by Raffaele Spazzoli published on OpenShift blog on topic of pod communication in multiple clusters. Istio, the upstream project for Red Hat OpenShift Mesh, has an interesting feature that allows you to extend the service mesh across multiple OpenShift clusters.

A pod in cluster A should be able to communicate with a pod in cluster B, assuming the pod in cluster A knows the IP address of the pod in cluster B.

The article focus on explaining the solution based on assumption that there was no direct connectivity between the nodes of the clusters involved in this design. If you don’t have that constraint, other potentially simpler designs become possible (for example ip over ip tunneling).

The article then explains in great deal:

  • Tunnel design
  • Encrypted tunnel design
  • Routing packets
  • Installation using Ansible playbook

You will also find explanatory schemas and links to further reading in the article.

Author thinks that the technology still needs to mature in this space and over time it will become much easier to implement these types of designs.

And do not forget that you can test OpenShift with free starter tier. Nicely done!

[Read More]