Differentiating Virtual DOM, Glimmer, and Real DOM in Front-End Development

In front-end development, understanding the differences between Virtual DOM, Glimmer, and Real DOM can help you choose the right library or framework for your project. Let’s explore the concepts behind these DOM manipulation engines and compare their performance and features.

March 7, 2018 · 8 min · 1492 words · Bá Tới

Ruby on Rails Best Practices

In Ruby on Rails, following best practices is essential for writing clean, maintainable, and efficient code. By adhering to established conventions and guidelines, developers can optimize their codebase, improve performance, and enhance the overall quality of their Rails applications. Let’s explore some of the best practices for Ruby on Rails development.

October 4, 2016 · 5 min · 868 words · Bá Tới

Prevent Content Type Spoofing on Paperclip

If you have ever used paperclip, maybe you have seen the message like that: Image has contents that are not what they are reported to be. For this bug, we will have two solutions: specify an extension that cannot otherwise be mapped or override media_type_spoof_detector method.

October 3, 2016 · 2 min · 221 words · Bá Tới

Ruby Best Practices

In Ruby, following best practices is essential for writing clean, maintainable, and efficient code. By adhering to established conventions and guidelines, developers can optimize their codebase, improve performance, and enhance the overall quality of their Ruby applications. Let’s explore some of the best practices for Ruby development.

October 3, 2016 · 2 min · 417 words · Bá Tới

Proc, Lambda, and Block in Ruby

In Ruby, you can invoke, execute, or run Threads, Anonymous functions, Strings, and even methods that have been turned into objects. Let’s delve into the Callable and Runnable nature of Objects in Ruby.

October 2, 2016 · 4 min · 684 words · Bá Tới

Ember - Controllers are Singletons

Controllers in Ember are singletons. When the user leaves a page and goes to another one, the controller is not torn down. It lives on, keeping its properties. This makes sense for a framework that aims to create long-lived, rich client-side applications, but it’s something to watch out for when developing Ember applications.

October 1, 2016 · 2 min · 364 words · Bá Tới

Ember - Bootstrap Modal

Learn how to create a modal in Ember.js using Ember Wormhole and Ember Route Action Helper. This tutorial provides a step-by-step guide to implementing a modal component in your Ember application.

September 30, 2016 · 5 min · 1024 words · Bá Tới

Ember - Ember Addons

Ember.js is a powerful front-end framework that comes with a rich ecosystem of addons to extend its functionality. In this article, we’ll explore some of the most popular Ember addons that can help you build better web applications.

September 29, 2016 · 3 min · 484 words · Bá Tới

PostgreSQL Best Practices

PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture. In this post, I will share some best practices to optimize your PostgreSQL database.

September 28, 2016 · 9 min · 1720 words · Bá Tới