sweetcode.io sweetcode.io

Object Relational Mapping & Object Data Mapper – Node.js Approaches

Object Relational Mapping (ORM) is a simplified way of converting data between the relational database and objects. Object NoSql Data Mappers (ONDM), also known as Object Data Mappers (ODM), serve the same purpose of mapping data objects into a database structure, particularly for NoSQL databases. In this tutorial, we will look at Node.js implementation approaches for ORMs and ODNMs. Why ORMs and ODMs? As a developer, you may have...

sweetcode.io sweetcode.io

The Top 10 Programming Tasks That Perl Is Used For

In 2020, what are the tasks that Perl continues to be used for? Read on! Programming languages wax and wane, but they never truly disappear. Sometimes that’s because the language is too widespread and therefore too costly to rewrite, and sometimes it’s because the language still offers the simplest way to accomplish a set of common tasks. Take Perl for example. My first encounter with Perl gave me a false sense of its value since...

sweetcode.io sweetcode.io

WordPress Website Security Weakened by Some Plugins

WordPress (WP) website security can be compromised by even the most useful plugins. In this post you will read about ten popular plugins with vulnerabilities. In a companion piece I wrote, I give tips on how to prevent plugins from being compromised, and what to do if you’ve been hacked. It is linked at the end of this post. There is no denying that plugins significantly extend the functionality of WP websites. They boost the user...

sweetcode.io sweetcode.io

DaemonSets in OpenShift and Kubernetes

There are times when running the same application on every node in a specific set of nodes in a cluster, or even the entire cluster is required. These are usually applications that provide some kind of system management functionality. Examples include storage processes which use local storage devices attached to the nodes, and log consolidation and diagnostic services which often feed data into an AIOps solution. Why...

sweetcode.io sweetcode.io

Top 10 Tasks To Automate With Python

As a developer, there are always more tasks to complete than you have time for in a day. While it’s important to prioritize time-sensitive, impactful or blocking issues, they’re usually not the kind of things that can be knocked off your list quickly. If you try breaking down bigger tasks into smaller subtasks, you just end up increasing the list of things that still need to get done. But what if you could knock off some of these...

sweetcode.io sweetcode.io

Debug in Node.js with Async Hooks

Asynchronous applications are great because they are faster compared to synchronous applications. However, they create a new challenge when debugging because it is difficult to inspect log and tracking requests of a single threaded architecture such as Node. In Node, there is a tool to help with this called Async Hooks. We will explore that tool in this article. Fundamentally, Node.js is a single-threaded, non-blocking architecture....