Rails

Showing 1-7 of 7 results

分享

Linters Implemented by Ruby Libraries

When you hear the word “linter,” you probably think about particular widely used tools. But there’s a different kind of linters.

在本文中, Toptal 后端 Architect 罗伯特Pankowecki introduces you to linters implemented by Ruby libraries and details their capabilities.

8分钟阅读继续阅读
罗伯特Pankowecki

罗伯特Pankowecki

Choosing a Tech Stack Alternative - The Ups and Downs

If a web application is big and old enough, there may come a time when you need to break it down into smaller, isolated parts and extract services from it. Some of these will be more independent than others.

在这篇文章中, Toptal Full-stack Developer Viktar Basharymau explains how his team extracted an app from the monolithic Rails application that powers Toptal, and how the new service’s technical stack was selected.

11分钟阅读继续阅读
Viktar Basharymau

Viktar Basharymau

Rails 6 Features: What’s New and 为什么 It Matters

Rails 6 is finally here, featuring major improvements and clever new features that should make development easier and faster than ever.

在本文中, Toptal Ruby on Rails Developer 的米塔尔 dives into the Rails 6 changelog to introduce you to these new features and explain how you will be using them in your next Rails project.

9分钟阅读继续阅读
的米塔尔

的米塔尔

Field-level Rails Cache Invalidation: A DSL Solution

Fragment caching in Rails provides an easy yet a powerful way of improving your application’s performance. 然而, some real-world scenarios do not work quite well with how the Rails cache behaves by default.

在本文中, Toptal Ruby on Rails Developer Orban Botond shows how you can implement a small DSL to optimize how the cache for related entities is invalidated to improve template rendering performance.

7分钟阅读继续阅读
被测试的班

被测试的班

Grape Gem Tutorial: How To Build A REST-Like API In Ruby

在本教程中, Toptal Engineer Orban Botond demonstrates how to use the Grape gem – a REST-like API micro-framework for Ruby – to build backend support in Rails for a JSON API. Grape is designed to run as a mountable rack engine that complements your web applications without interfering with them.

15分钟阅读继续阅读
被测试的班

被测试的班

为什么 Use Ruby on Rails? My Take After Two Decades of Programming

有时 I hear people complaining about their clients, saying that they insist on using Rails, that they’ve had too much Kool Aid. If they are recruiters, they almost feel sick in the stomach from perspective of having to find yet another ROR primadona. From the programmers point of view it sometimes looks like clients don’t have a clue. 然而, I believe most clients know their options just fine and they still decide to go with Rails.

8分钟阅读继续阅读
Krešimir央行č我ć

Krešimir央行č我ć

Build Dumb, Refactor Smart: How to Massage Problems Out of Ruby on Rails Code

有时, clients give us feature requests that we really don’t like. It’s not that we don’t like our clients, we love our clients. It’s not that we don’t like the feature, most client-requested features are aligned perfectly with their business goals and income. 有时, the reason we don’t like a feature request is that the easiest way to solve it is to write bad code, and we don’t have an Elegant Solution on the top of our heads. This will throw many of us on fruitless searches through RubyToolbox, github, 开发人员博客, and stackoverflow looking for a gem or plugin or example code that will make us feel better about ourselves.

Well, I’m here to tell you, it’s okay to write bad code. 有时, bad code is easier to refactor into beautiful code than a poorly thought out solution implemented under a time-crunch.

7分钟阅读继续阅读
丹尼尔刘易斯

丹尼尔刘易斯

World-class articles, delivered weekly.

Subscription implies consent to our 隐私政策

加入总冠军® 社区.