Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # The dumbest piece of code I've EVER written.
- #
- # I REALLY don't know WTF I was thinking, or not thinking.
- # I must have been drunk and asleep while I wrote this method.
- #
- # It's not only stupid, but IT DOESN'T EVEN WORK! *stabs self in face*
- #
- def stupid_method
- data = fetch.some(:data)
- if !(data.prop_1 == "something" && data.prop_2 == "something else")
- @result = false
- else
- @result = true
- end
- @result = true
- end
- #
- # Looking at it today, I fixed it in 30 seconds after screaming
- # "WHAT THE FUCK?!?" for 25 seconds.
- #
- def stupid_method
- data = fetch.some(:data)
- @result = false
- if data.prop_1 == "something" && data.prop_2 == "something else"
- @result = true
- end
- end
Add Comment
Please, Sign In to add comment