Respecting Users’ Motion Preferences — Smashing Magazine

The `prefers-reduced-motion` media query has excellent support in all modern browsers going back a couple of years. In this article, Michelle Barker explains why there’s no reason not to use it today to make your sites more accessible.

#CSS#Javascript
Added: 22 Oct 2021
Video Tutorial: Get Started with RBS in RubyMine | The RubyMine Blog

Hello everyone, In this tutorial, you will learn how to add RBS to your project and get an overview of the main RBS features that RubyMine offers. For more information about this topic, read the sec

#Ruby
Added: 22 Oct 2021

I was doing some research on introspecting Ruby on Rails database transactions for a Reddit thread, and came across this Rails PR that had some new Ruby beha...

#Ruby
Added: 22 Oct 2021
Essential Skills For A Senior Rails Developer

Ruby on Rails and ReactJS consulting company. We also build mobile applications using React Native

#Ruby on Rails#Soft Skills
Added: 20 Oct 2021
Business logic in Rails with operators

Having a thousand lines long controllers and/or models is not the right way to have sustainable applications or developers’ sanity. Let’s look at my solution for business logic in the Rails app.

#Ruby on Rails
Added: 20 Oct 2021
Rails 7 adds the ability to use pre-defined variants

Rails 7 series | Rails 7 adds the ability to use pre-defined variants

#Ruby on Rails
Added: 20 Oct 2021
Rails 7 introduces ActiveModel::API

Ruby on Rails and ReactJS consulting company. We also build mobile applications using React Native

#Ruby on Rails
Added: 15 Oct 2021
Covariance and Contravariance in TypeScript

Covariance and contravariance are the concepts behind the subtyping of composable types.

#Typescript
Added: 15 Oct 2021
Building with Stencil: Bar Chart - Ionic Blog

There are a number of very robust charting libraries on the market. Some are commercial. Some are free. You should use them. Every once in a while though, you need to roll your own. Not to worry! With a splash of SVG and helping hand from Stencil, you can create a chart as a web component for all to use.

#Javascript
Added: 15 Oct 2021
Upgrading to Zeitwerk - FastRuby.io | Rails Upgrade Service

Zeitwerk is the code autoloader and reloader that was integrated with Rails 6. Beginning in Rails 7, it will be the only codeloader option. As a result, upgrading to Zeitwerk will be an important step in getting your application ready for the next version of Rails. In this article, we’ll...

#Ruby on Rails
Added: 15 Oct 2021
Smart CSS Solutions For Common UI Challenges — Smashing Magazine

Writing CSS has probably never been more fun and exciting than it is today. In this post we’ll take a look at common problems and use cases we all have to face in our work and how to solve them with modern CSS. If you’re interested, we’ve also just recently covered [CSS auditing tools](https://www.smashingmagazine.com/2021/03/css-auditing-tools/), [CSS generators](https://www.smashingmagazine.com/2021/03/css-generators/), [front-end boilerplates](https://www.smashingmagazine.com/2021/06/useful-frontend-boilerplates-starter-kits/) and [VS code extensions](https://www.smashingmagazine.com/2021/05/useful-vs-code-extensions-web-developers/) — you might find them useful, too.

#CSS
Added: 15 Oct 2021
The Rails Style Guide

The guide is separated into several sections of related rules. I’ve tried to add the rationale behind the rules (if it’s omitted I’ve assumed it’s pretty obvious).

#Ruby on Rails
Added: 14 Oct 2021
Ruby Safe Navigation

Ruby’s safe navigation can hide some subtle edge cases. We explore approaches to think about conditional logic, alternatives to <code>&.</code>, and when <code>&.</code> is the best tool for the job.

#Ruby
Added: 13 Oct 2021
Organizing business logic in Rails with contexts

Rails programmers have almost always tried to figure out the golden approach to business logic in their applications. From getting better at object-oriented design, to service objects, all the way to entirely new ideas like Trailblazer or leaving Active Record altogether. Here’s one more design approach that’s clean yet railsy.

#Ruby on Rails
Added: 13 Oct 2021

Learning to use Turbo Frames through examples in a Ruby on Rails app

#HOTWire#Javascript#Ruby on Rails
Added: 9 Oct 2021
What’s the right font size in web design? – Pimp my Type

If you want your text to be read, set it at a sufficient size! But what is a good font size, and how can you apply it in your web design? This article and video has answerers for you with some practical examples focused on body text in responsive web design. Ready – then let’s size up, how to size your fonts!

#CSS
Added: 9 Oct 2021
Have Single-Page Apps Ruined the Web? | Transitional Apps with Rich Harris, NYTimes

The backlash to modern front end development is gaining steam, with good reason: single-page apps have ruined the web. Can we rescue it without going backwar...

#Javascript
Added: 8 Oct 2021
The Developers Guide To Scaling Rails Apps - DevGraph

Scaling Rails apps is a process of master app architecture and supporting infrastructure. Learn how it’s done straight from our developer-friendly Rails guide.

#Ruby on Rails
Added: 7 Oct 2021
Simplifying Form Styles With accent-color — Smashing Magazine

The new CSS `accent-color` property makes it quick and easy to roll out our brand colors to certain form inputs by leveraging user agent styles. In this article we’ll take a look at what it does and how to use it alongside `color-scheme` for simple, accessible checkboxes and radio buttons — and imagine how we might use it in the future.

#CSS
Added: 7 Oct 2021

It's fairly common when working on existing or legacy codebases to find models that have instance methods defined on them that return ActiveRecord::Relation collections. This post explains how this can be avoided to improve the performance of your application.

#Ruby on Rails
Added: 7 Oct 2021
Fun with Rails Enums and PORO

I really like enums. They can be really powerful if they are used wisely. Let’s see what we can do with them in a multilingual Rails app with a little help from PORO (Plain Old Ruby Object).

#Ruby
Added: 6 Oct 2021
Trunk-based Development | Atlassian

Learn about trunk-based development, a version control management practice where developers merge small, frequent updates to a core “trunk” or main branch

#DevOps
Added: 6 Oct 2021

Maybe you are already familiar with includes or preload, but you know that a lot of the time you will need more than just preload(:comments). It is common to have complex nested associations, scopes that you need or want to reuse, places where preloading all the associated records could hurt the performance of your app. How do you work with complex nested associations?… How do you simplify the preloading of those nested associations?… How do you “preload an scope”?… How do you preload just the latest n of each record?

#Backend#Ruby on Rails
Added: 6 Oct 2021
Conditional Border Radius In CSS - Ahmad Shadeed

How to use CSS comparison functions to create a conditional border radius

#CSS
Added: 4 Oct 2021
Rails Testing Antipatterns: Fixtures and Factories

Get familiar with common antipatterns in writing tests for Rails applications when using fixtures and/or factories to manage dependencies.

#testing
Added: 3 Oct 2021
First Previous Next Last