Tagged Questions

21
votes
13answers
3k views

What is the best rails example app? [closed]

What is the best available non-trivial example app for rails with uptodate source, test suite and adherence to best practices? [I am looking for an example of a full fledged application - with ...
14
votes
8answers
5k views

Directory layout for pure Ruby project

I'm starting to learn ruby. I'm also a day-to-day C++ dev. For C++ projects I usually go with following dir structure / -/bin <- built binaries -/build <- build time temporary object (eg. ...
9
votes
3answers
606 views

Writing a code beautifier

I'd like to write a code beautifier and i thought of using Ruby to do it. Could someone show me a place to get started? I've seen a lot of code beautifiers online but I've never come across any ...
5
votes
1answer
309 views

Ruby, Source Code of Splat?

Someone asked about the splat operator yesterday, and I wanted to see the source code... would that be written in C or in Ruby? Where would it be found?
4
votes
2answers
663 views

Source code syntax highlighting like Github

Does anybody know how the github syntax highlighting for source code views is made? To clearify: I don't mean the common highlighting of code blocks in readme files. Github seems to use a modified ...
3
votes
2answers
305 views

Protecting Ruby Code

I'm developing a commercial project on an ARM based embedded board with a custom Linux kernel on it, using Ruby. Target workspace of the project and the device is a closed-environment, no ethernet, ...
3
votes
2answers
491 views

How many characters/columns per line of Ruby source code?

I've been using 80 column terminals as well as setting the text width/wrapping in vim to 80 for years. Is this this still a good default or should I bump it up when writing new Ruby code? Ruby ...
3
votes
1answer
212 views

Ruby source cross-reference tool?

I am attempting to implement a feature in Redmine to enable it to use Bazaar in a more friendly manner, but I am having a decent amount of difficulty for a few reasons: I don't know Ruby at all. I ...
2
votes
1answer
478 views

Encryption Algorithm from PHP to Ruby (Vignere variant)

I am a bit stuck with this. I have to interface with an api that uses a version of an encryption algorithm that they seem to have ripped from Typo3 written by Ari Kuorikoski. I need to create a ruby ...
2
votes
1answer
412 views

organizing source code in filesystem on mac osx

Any recommendations on a good way to organize source code on mac osx? I'm usually doing ruby or ruby on rails development and I have a lot of past projects in classic asp and asp.net MVC C#. I also ...
1
vote
6answers
2k views

Ruby on Rails source code security / obfuscation

I'm just getting started with Ruby on Rails development and I have a question concerning source code "privacy". From what I know so far (i have not done a deployment yet, only used RoR in a local ...
1
vote
3answers
82 views

What does “<<” in “1000 << 16” means in ruby?

I know that for strings << can be used for concatenation, but I don't understand what it does for ints. Could someone please explain?
1
vote
5answers
120 views

How many actually look at the source code for a library?

I guess as a developer you are using a lot of open source libraries. I am curious to know how many actually look at the source code for a library when you have questions about a functionality or find ...
1
vote
4answers
268 views

How do you examine the source code?

How do you examine the source code for a library you are using and want to modify. Eg. when you have downloaded a gem, I guess that you are forking the repo from GitHub and then cloning your forked ...
0
votes
6answers
240 views

In Ruby, what's the equivalent of Java's technique of limiting access to source in a cowork situation?

In Java when you compile a .java file which defines a class, it creates a .class file. If you provide these class files to your coworkers then they cannot modify your source. You can also bundle all ...

1 2
15 30 50 per page