byGink▻ Wed, 29 Nov 2023
Middleware is an extremely useful tool for any web framework. It provides us a process to filter requests as well as route requests with similar characteristics. Actix-web is no exception. Let's explore how to create middlewares with this framework.
byGink▻ Sun, 26 Mar 2023
Just a take notes about Domain-Driven Design (DDD). Have you ever heard of it?
byGink▻ Wed, 10 Aug 2022
Ruby on Rails, often shortened to just Rails, is a popular framework that provides developers with a range of tools for building web applications.
One of its key features is the Active Record library, which provide a layer responsible for representing business data & logic, including a set of tools to work with database. However, many applications today require the use of multiple databases, especially with the replication model. In this article, we'll explore how to manage multiple databases in Ruby on Rails using the Active Record library.
byGink▻ Sat, 10 Apr 2021
We already know that Ruby is an object-oriented programming (OOP) language. But the matter is it doesn't support multiple inheritance. Which means any class in Ruby can inherit from only one single parent class.
However, we still have several alternatives to achieve similar functionality. One of its key features is the ability to create and reuse code with modules and mixins. In this article, we'll explore what Modules and Mixins are, and how they can be used to organize and reuse code in a Ruby program.
byGink▻ Sun, 14 Mar 2021
Ruby is a high-level, dynamic programming language known for its simplicity and elegance. One of its core features is the ability to create and manipulate blocks, procs, and lambdas, which are all types of closures in Ruby. These closures are blocks of code that can be passed around as objects and executed at a later time, making them a powerful tool for implementing functional programming techniques in Ruby.
However, despite their similarities, there are some key differences between blocks, procs, and lambdas that you need to be aware of in order to use them effectively. In this article, we'll take a closer look at these differences and explain when and why you might choose one over the others.
byGink▻ Mon, 10 Oct 2016
Working with javascript Array is quite interesting because it provides you a lot of built-in methods. The long list can be started with forEach()
, map()
, filter()
, find()
, every()
and so on. Each one has a different purpose and mostly cover all what you need. But sometimes, it can be a challenge for a newbie to understand which to use correctly.
Today, I’ll list out some commonly used methods and make it more clear for anyone new to it.
© 2016-2024 GinkCode.com