All Questions
7
questions
2
votes
1
answer
1k
views
Bank ATM machine in Ruby
I've made a simple implementation of a bank ATM machine in pure Ruby. I'd like to hear some recommendations to make my code more idiomatic.
atm.rb
This is the startup file. I didn't use a class and ...
1
vote
2
answers
77
views
Expense family script
I wrote a script in Ruby for a better family budget overview. The expenses are hold under a CSV file. Any feedback is welcomed!
...
7
votes
3
answers
670
views
ATM program with loan section
I have spent a few days coding an ATM. What I'm looking for is some critique of my work. Is there anything I can do better here?
The entire project has 9 files and one class, a checking account and ...
6
votes
2
answers
2k
views
Bank ATM program in Ruby
After reading a bunch of Ruby tutorials, I decide to write fake ATM bank software. I've tried to use OOP design and just want to know if I'm on the right road.
...
4
votes
1
answer
800
views
Calculating IRR (Internal Rate of Return) in Ruby using recursion
Is there a way to improve this code? (specially how I built the recursion and the breaking out of the loops and conditionals)
...
3
votes
2
answers
87
views
Determining if a product is taxable or imported
This should tell me whether the product is taxable or imported. Name should indicate if the product is imported or certain keywords should tell that the product is non-taxable (chocolates, book, pills)...
5
votes
1
answer
4k
views
Transactions and locking in Rails 3
I am new to Rails and have a system that needs to process transactions.
A user can enter a transaction to which one or more users are tied. These users owe some amount of money to the person making ...