Article XZN6 Representative Line: The Returned Value

Representative Line: The Returned Value

by
Remy Porter
from The Daily WTF on (#XZN6)

Wilson Silva was looking through some production code, and found this representative line. This particular block of Ruby code was written by someone who claimed to have "lots of programming experience". One must wonder what that experience was.

def return_value(value) return valueend
inedo50.png[Advertisement] Use NuGet or npm? Check out ProGet, the easy-to-use package repository that lets you host and manage your own personal or enterprise-wide NuGet feeds and npm repositories. It's got an impressively-featured free edition, too! TheDailyWtf?d=yIl2AUoC8zAoUvY7C1hQ1M
External Content
Source RSS or Atom Feed
Feed Location http://syndication.thedailywtf.com/TheDailyWtf
Feed Title The Daily WTF
Feed Link http://thedailywtf.com/
Reply 0 comments