サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ドラクエ3
blog.saeloun.com
Rails 7.2 adds Rubocop by default to new applications Apr 8, 2024 RuboCop is a static code analyzer also linter and code formatter for the Ruby programming language. It will enforce the guidelines outlined in the community Ruby Style Guide. It helps developers in ensuring adherence to coding style standards, identifying potential code flaws, and enhancing the overall quality of the codebase. In ad
Rails 7.2 Adds Rate Limiting to Action Controller Apr 1, 2024 Let’s understand what is Rate Limiting Rate limiting is a technique used to control the rate of incoming requests or traffic to a server or a network. It helps in limiting the rate at which requests are processed which ensures system security and performance. Restricting the rate of requests made by individual clients or IP addresses he
Next.js vs. Remix - A Developer's Dilemma Feb 21, 2024 I am a Javascript and React enthusiast, and I absolutely love writing technical blogs. There's just something about the process of breaking down complex concepts and sharing my knowledge with others that really excites me. In my free time, I enjoy exploring my other passions, such as painting, gardening, cooking, and managing my food blog. The
Ruby adds a new core class called Data to represent simple immutable value objects Nov 22, 2022 Ruby 3.2 adds a new core class called Data to represent simple immutable value objects. The Data class helps define simple classes for value-alike objects that can be extended with custom methods. While the Data class is not meant to be used directly, it can be used as a base class for creating custom v
Rails adds support for Fiber-safe ActiveRecord ConnectionPools Feb 23, 2022 One of the major focuses for Ruby 3 was parallelism and concurrency. A trailblazer in this space is the use of Ruby Fibers. Fibers are a concurrency mechanism that allows us to pause, loop, and resume execution while consuming far fewer context switches. It consumes less memory than threads while giving the developer contr
Understanding Hydration in React applications(SSR) Dec 16, 2021 I am a Javascript and React enthusiast, and I absolutely love writing technical blogs. There's just something about the process of breaking down complex concepts and sharing my knowledge with others that really excites me. In my free time, I enjoy exploring my other passions, such as painting, gardening, cooking, and managing my food
Rails 7 adds the ability to schedule the query on the background thread pool Mar 31, 2021 Often there need to be multiple database queries executed in the controller like, @genres = Genre.all @videos = Video.order(published_at: :desc) These queries get executed sequentially which in most cases isn’t a big deal. However, as our database grows in size, response times get longer and longer. A large p
Ruby adds experimental support for Rightward assignments Aug 31, 2020 This blog post discusses the support for Rightward assignments in ruby. Before Historically, all of the early programming languages were designed by Mathematicians. It’s a common practice in mathematics to say let x = 4y + z, which is read as let x be equal to 4y + z. So the same pattern is followed in programming languages as w
Ruby 2.7 added a new shorthand syntax ... for forwarding arguments to a method. Need for a new operator Currently we do have * and ** operators for single and keyword arguments. These are used to specify any number of arguments or convert array or hashes to several arguments. The ... operator The idea of ... operator is to capture all and forward arguments irrespective of type. So we can forward s
Ruby 2.7 has added Enumerator#produce to generate Enumerator from any custom data-transformation. Before Let’s say we want to print the first 10 numbers of fibonacci series. The code to achieve this would look like: result = Enumerator.new do |yielder| base_1 = 0 base_2 = 1 loop do yielder.yield base_1 base_1, base_2 = base_2, base_1 + base_2 end end result.take(10) => [0, 1, 1, 2, 3, 5, 8, 13, 21
Rails 6 adds delete_by and destroy_by methods. Oct 15, 2019 I am a seasoned developer with over 9 years of experience in Ruby on Rails and Golang. My passion lies in tackling complex data structures and algorithm problems, always pushing myself to learn and grow. In my downtime, I find solace in the pages of books and the soothing sounds of a guitar. But I'm not just a one-trick pony! I love to st
Rails 6 adds support for multi environment credentials Oct 10, 2019 Background Generally in applications there are various secrets and credentials, that we need to make use of like API keys, secrets, etc. For such secrets we need the ability to conveniently and securely manage credentials. Rails 5.1 added a feature to use secrets to manage credentials. Rails 5.2 replaced secrets with credentials,
Many useful features like syntax highlighting, multiline editing, display documents, enable auto indent, enable save and load history by default are introduced in IRB with Ruby 2.7. Let’s take a look at these features in detail. Syntax highlighting Before Ruby 2.7, code on the IRB was only black and white. Ruby 2.7 has introduced syntax highlighting in IRB inspired by pry.gem to source lines, REPL
Ruby 2.7 adds shorthand operator for Object#method Feb 26, 2019 I am an active member of Ruby community. I have been consistently contributing to Ruby on Rails for a number of years and now am one of the top 30 contributors to Ruby on Rails. I also help as co-editor for the This week in Rails newsletter. Besides Ruby on Rails I have also contributed to many other notable open source projects inclu
このページを最初にブックマークしてみませんか?
『blog.saeloun.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く