Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6253227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:56:59+00:00 2026-05-24T13:56:59+00:00

I sought for a solution to make a Ruby code much more unreadable. In

  • 0

I sought for a solution to make a Ruby code much more unreadable.

In fact i’m not interested about obfuscating totally the code but getting a “one line *.rb file” or some thing like “Pretty Numbers” on this link should be appreciated.

Before posting here I passed hours to find a solution but can’t get any script, gem or program to transform an easy readable code on something quite more hard to understand for “dummies”.

Tried for example these ones but any can do the whole job easily.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:57:01+00:00Added an answer on May 24, 2026 at 1:57 pm
    • Replace all variable, method or class names for 1-letter names, just like a, b or c.
    • Do you know DRY? Forget it. Repeat parts of the code to make it bigger and more complicated to understand. Try to also write the same piece of code in many ways.
    • Transform simple integers and string on big expressions or calculations.
    • Define extra functions and use undef after or define existing functions before the real definition.
    • Add things that does nothing between the code, or code that does something followed by another that undoes it.
    • Move parts of the code to the somewhere before and use heredoc to transform this code to a string. Then execute it where it should be in.
    • Merge everything in one line and forget indentation. After put new lines in the middle of instructions, try to draw a rectangle with the code or something like that.
    • Test the code. If it stopped working, I’m so sorry, you will never be able to read it again.

    Anyway, just make a mess in the code. But it have to be done manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an installation where FM Pro 9 clients open a solution from an
Clearly if performance is critical it makes sense to prototype and profile. But all
The target platform is Windows. Sought-after languages: C++ (Native as well as CLI ),
I have only seen code solutions to this problem. I am looking for a
Forgive me for my ignorance on this subject, but I'm a relatively seasoned php
I have this existing code: Private Function GetTypeFromName(ByVal FullTypeName As String, ByVal AssemblyName As
I am planning create a site that lets users in finance visualize the price
Working on a common codebase, one developer is running SQL Server Express 2005 and
I have a server (SQL Server 2005) with multiple archive databases (1 per quarter
I have been tearing my hair out now for a week or so, it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.