Ruby

Showing 1-9 of 23 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 执行官威克塔•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分钟阅读继续阅读
执行官威克塔•Basharymau

执行官威克塔•Basharymau

An Array of Possibilities: A Guide to Ruby Pattern Matching

Pattern matching is a powerful tool commonly found in functional programming languages. 红宝石2.7 release is going to include this feature.

在本文中, Toptal Ruby Developer Noppakun Wongsrinoppakun provides a breakdown of what this addition will include and why it matters.

8分钟阅读继续阅读
Noppakun Wongsrinoppakun

Noppakun Wongsrinoppakun

Ruby Algorithm Documentation with AsciiDoc and Knitr

A functional specification is a high-level design document created before implementation and serves as a true plan for the team.

在本文中, Toptal Freelance Ruby Developer 亚历克·滕·哈塞尔 walks us through prototyping an algorithm and creating a functional specification with the help of AsciiDoc and R for a Ruby on Rails project.

5分钟阅读继续阅读
亚历克·滕·哈塞尔

亚历克·滕·哈塞尔

Option/Maybe, 要么, and Future Monads in JavaScript, Python, Ruby, 斯威夫特, and Scala

If you’re searching for the holy grail of bug-free code in JavaScript, Python, Ruby, 斯威夫特, Scala和/或, 不要再看了! This monad tutorial by Toptal Freelance Functional Programmer Alexey Karasev takes you from category theory to the practical implementations of the Option/Maybe, 要么, 和未来单子, plus a sample program—in all five languages.

23分钟阅读继续阅读
Alexey Karasev

Alexey Karasev

Rails Service Objects: A Comprehensive Guide

Rails ships with everything you need to prototype your application quickly, but when your codebase starts growing, you’ll run into scenarios where the conventional Fat Model, Skinny Controller mantra breaks. When your business logic can’t fit in either a model or a controller, that’s when service objects come in and let us separate every business action into its own Ruby object.

11分钟阅读继续阅读
阿明·沙·吉拉尼

阿明·沙·吉拉尼

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分钟阅读继续阅读
被测试的班

被测试的班

Creating a Ruby DSL: A Guide to Advanced Metaprogramming

Write better Ruby code by leveraging its metaprogramming features. 在本文中, you will learn how to create your own Ruby domain specific language (DSL).

15分钟阅读继续阅读
伴侣Solymosi

伴侣Solymosi

Build Sleek Rails Components With Plain Old Ruby Objects

Your website is gaining traction, and you are growing rapidly. Ruby/Rails is your programming language of choice. Your team is bigger and you’ve given up on “fat models, skinny controllers” as a design style for your Rails apps. 然而, you still don’t want to abandon using Rails? 没有问题.

在本文中, Toptal Software Engineer Eqbal古兰经 explains how you can decouple and isolate your Rails components using nothing Plain Old Ruby Objects. Ruby objects and abstractions can decouple concerns, 简化测试, and help you produce clean, 可维护的代码.

18分钟阅读继续阅读
Eqbal古兰经

Eqbal古兰经

World-class articles, delivered weekly.

By entering your email, you are agreeing to our 隐私政策.

加入总冠军® 社区.