Skip to main content

5 posts tagged with "Ruby"

A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

View All Tags

Introducing My New Ruby Gem - PDFScanner

· 3 min read
Shekhar Patil
Full stack developer.

PDF files can contain much more than text and images — they may include JavaScript, embedded files, form inputs, or even malicious payloads. If your application processes user-uploaded PDFs, it's essential to scan them for such potential security threats.

The pdf_scanner Ruby gem offers an easy-to-use and customizable way to scan PDF files against configurable security policies. It even supports encrypted PDFs and can quarantine any file that violates your policies.

Difference between puts, p, and print in ruby.

· 3 min read
Shekhar Patil
Full stack developer.

Ruby is developer friendly language and it provides many ways to perform same task. For example for printing the output on the console we can use puts, prints and p. But multiple ways to do same task means more confusion for selecting correct way for our use case. In this blog we will discuss about difference between puts, print and p so that we can select correct method as per our use case.

Eager loading and N+1 query in rails.

· 4 min read
Shekhar Patil
Full stack developer.

Sometimes, the implementation of an algorithm can make performance worst. Then it does not matter whether it has used the faster programming language like C or slower like Ruby. So we should implement the algorithms properly. Same while dealing with the database we should use proper queries so that the performance should not affect.