29 Feb '16, 12pm

Ruby/Rails Code Smell Basics 02

class PaymentHandler STANDARD_CHARGE = 10000000 BONUS_CHARGE = 10000000 REFUND_AMOUNT = 10000000 STANDARD_CONTRACTOR_PAYOUT = 200000 BONUS_CONTRACTOR_PAYOUT = 1000000 def initialize(payment_handler = PaymentGem) @payment_handler = payment_handler end def accept_new_client(evil_client) @payment_handler.create_client(evil_client.email) end def charge_for_initializing_operation(evil_client) evil_client_id = @payment_handler.find_client(evil_client.email).payments_id @payment_handler.charge(evil_client_id, STANDARD_CHARGE) end def charge_for_successful_operation(evil_client) evil_client_id = @payment_handler.find_client(evil_client.email).payments_id @payment_handler.charge(evil_client_id, BONUS_CHARGE) end def refund(operation) transaction_id = @payment_handler.find_transaction(operation.payments_id) @payment_handler.refund(transaction_id, REFUND_AMOUNT) end def contractor_pa...

Full article: http://code.tutsplus.com/articles/rubyrails-code-smell-ba...

Tweets

Ruby/Rails Code Smell Basics 03

code.tutsplus.com 02 Mar '16, 12pm

You can start refactoring classes like these by possibly extracting the behavior from other classes that act on the data i...

A handy series for #RubyonRails pros and beginners alike: Ruby/Rails Code Smell Basics.

A handy series for #RubyonRails pros and beginn...

code.tutsplus.com 03 Mar '16, 8am

This is a small series about code smells and how you can deal with them. Don’t worry if you’re new to this topic or just s...

Ruby/Rails Code Smell Basics 01

Ruby/Rails Code Smell Basics 01

code.tutsplus.com 18 Feb '16, 12pm

class CastingInviter EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/ attr_reader :message, :invitees, :casting ...

What Makes Ruby On Rails Special?

What Makes Ruby On Rails Special?

hostgator.com 29 Feb '16, 10am

Ruby on Rails (ROR) was first released on December 12, 2005. Since then, it has been a hot commodity for developers and us...

Ruby/Rails Code Smell Basics 04

code.tutsplus.com 09 Mar '16, 12pm

Buy a hosting plan & get a year free on Envato Tuts+ (RRP $180) This post is part of a series called Ruby / Rails Code Sme...

Starts now! 29% Off sitewide with code LEAP2016

eastlandshoe.com 29 Feb '16, 1pm

Use the LEAP2016 promotional code at checkout to receive 29% off all shoe styles sitewide. The LEAP2016 promotional offer ...

6 coolest Ruby on Rails projects

6 coolest Ruby on Rails projects

gsmbible.com 28 Feb '16, 5pm

Find a villa for your next vacation, watch Deadpool from your couch, and share your software projects with others . These ...

CERTFR-2016-AVI-075 : Multiples vulnérabilités ...

cert.ssi.gouv.fr 01 Mar '16, 2pm

De multiples vulnérabilités ont été corrigées dans Ruby On Rails . Elles permettent à un attaquant de provoquer une exécut...

Ruby on Rails disclosed a bug submitted by krat...

hackerone.com 01 Mar '16, 11am

It looks like your JavaScript is disabled. For a better experience on HackerOne, enable JavaScript in your browser.

6 coolest Ruby on Rails projects

thenextweb.com 28 Feb '16, 2pm

When software developers create an application, they make constant changes to the lines of code and release new versions, ...

6 coolest Ruby on Rails projects

thenextweb.com 28 Feb '16, 1pm

When software developers create an application, they make constant changes to the lines of code and release new versions, ...

via @TheNextWeb @Airbnb @hulu @github @joindias...

thenextweb.com 28 Feb '16, 6pm

Find a villa for your next vacation, watch Deadpool from your couch, and share your software projects with others. These a...

Ruby/RAILS Backend Developer - True Key API tea...

eluta.ca 26 Feb '16, 9am

Ruby/RAILS Backend Developer - True Key API team Intel of Canada, Ltd. (Montréal QC ): "As part of the True Key API team, ...

Experienced Ruby on Rails Developer — FullStack...

authjo.bz 26 Feb '16, 5pm

Experienced Ruby on Rails Developer FullStack is looking for an experienced, passionate, and talented Ruby on Rails develo...

Software dev3 by EtienneR: Add some features to...

freelancer.no 28 Feb '16, 4pm

I am Ruby on Rails developer having 2.5+ years of experience. I believe in code quality and on time delivery. I have 4+ ye...