• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:40
CEST 23:40
KST 06:40
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Team TLMC #5 - Submission extension0Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7Weekly Cups (June 30 - July 6): Classic Doubles7[BSL20] Non-Korean Championship 4x BSL + 4x China10
StarCraft 2
General
Team TLMC #5 - Submission extension TL Team Map Contest #5: Presented by Monster Energy RSL Revival patreon money discussion thread The GOAT ranking of GOAT rankings Weekly Cups (June 30 - July 6): Classic Doubles
Tourneys
$5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces Hiatus From ASL BW General Discussion [ASL19] Finals Recap: Standing Tall BGH Auto Balance -> http://bghmmr.eu/ A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues 2025 ACS Season 2 Qualifier Small VOD Thread 2.0 Last Minute Live-Report Thread Resource!
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread CCLP - Command & Conquer League Project The PlayStation 5 Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Summer Games Done Quick 2025! Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Accidental Video Game Porn Archive
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 663 users

Ruby sucks, a poem

Blogs > Alzadar
Post a Reply
Alzadar
Profile Blog Joined April 2010
Canada5009 Posts
January 31 2014 17:29 GMT
#1
def ruby_is_the_ugliest_language(why_use_it_ever)
all_the_clutter_of_scheme(but,none,of,the,elegance)
duck = get_thing # is this real
duck = get_banana # why would you do this to me
duck = get_firetruck # fuck I give up
mystery = is_this_a_method_or_a_variable
did_I_mention_the_ugly_naming_standard = true
ruby_annoys_me.each do |day|
get_mildly_convenient_loop_syntax
unless is_it_worth_it?
ruby_sucks
end
end
Thread.new {
multithreading_is_a_joke = true
}
end
end
end
end


****
I am the Town Medic.
MysteryMeat1
Profile Blog Joined June 2011
United States3292 Posts
January 31 2014 19:14 GMT
#2
mystery is a method.
"Cause ya know, Style before victory." -The greatest mafia player alive
Alzadar
Profile Blog Joined April 2010
Canada5009 Posts
January 31 2014 19:19 GMT
#3
On February 01 2014 04:14 MysteryMeat1 wrote:
mystery is a method.


Maybe, maybe not. You can't know without seeing more. Even if you saw the method definition you wouldn't know for sure.

Consider:

mystery = 4

def mystery
return 2
end

puts mystery


This won't even complain about the ambiguity, it just outputs 4. This is why Ruby sucks.
I am the Town Medic.
rafaliusz
Profile Joined December 2009
Poland482 Posts
January 31 2014 19:33 GMT
#4
Does that code actually work?
Alzadar
Profile Blog Joined April 2010
Canada5009 Posts
Last Edited: 2014-01-31 19:49:35
January 31 2014 19:48 GMT
#5
On February 01 2014 04:33 rafaliusz wrote:
Does that code actually work?


It's correct syntax (other than the three superfluous end statements at the bottom), yes.
I am the Town Medic.
Chairman Ray
Profile Blog Joined December 2009
United States11903 Posts
January 31 2014 19:50 GMT
#6
Ah Ruby, I hated it so much.
Alzadar
Profile Blog Joined April 2010
Canada5009 Posts
January 31 2014 20:01 GMT
#7
On February 01 2014 04:50 Chairman Ray wrote:
Ah Ruby, I hated it so much.


Seriously though, duck typing may be fine for a teaching language or a small personal project, but when you're digging through and debugging huge files and/or trying to use big libraries, it's like, what the FUCK does this method return? What kind of shit is this variable holding? What asshole named this method to_m?

end

Also Ruby can't multithread for shit, all you end up doing is context switching on a single core and making everything take 3x as long.
I am the Town Medic.
hp.Shell
Profile Blog Joined April 2010
United States2527 Posts
January 31 2014 20:39 GMT
#8
On February 01 2014 04:14 MysteryMeat1 wrote:
mystery is a method.

lol, +1, high five sir.
Please PM me with any songs you like that you think I haven't heard before!
Logo
Profile Blog Joined April 2010
United States7542 Posts
Last Edited: 2014-01-31 22:25:12
January 31 2014 22:24 GMT
#9
On February 01 2014 05:01 Alzadar wrote:
Show nested quote +
On February 01 2014 04:50 Chairman Ray wrote:
Ah Ruby, I hated it so much.


Seriously though, duck typing may be fine for a teaching language or a small personal project, but when you're digging through and debugging huge files and/or trying to use big libraries, it's like, what the FUCK does this method return? What kind of shit is this variable holding? What asshole named this method to_m?

end

Also Ruby can't multithread for shit, all you end up doing is context switching on a single core and making everything take 3x as long.


Ehhh depends on your developers. If people are good about not being terrible, duck typing can save you a ton of code and still remain workable on large projects. Less so for primitives where it's annoying, but it's nice for some functions that aren't distinct enough to create an object hierarchy for (say load and unload if you're dealing with some sort of widget type things).

Plus it avoids an equally annoying bloat you see in large projects where you have someone doing:
addNumbers(int i, int j)
addNumbers(string i, string j)
addNumbers(int i, string j)
addNumbers(string i, int j)
addNumbers(float i, float j)
... and on and on...
Logo
Alzadar
Profile Blog Joined April 2010
Canada5009 Posts
January 31 2014 22:39 GMT
#10
On February 01 2014 07:24 Logo wrote:
Show nested quote +
On February 01 2014 05:01 Alzadar wrote:
On February 01 2014 04:50 Chairman Ray wrote:
Ah Ruby, I hated it so much.


Seriously though, duck typing may be fine for a teaching language or a small personal project, but when you're digging through and debugging huge files and/or trying to use big libraries, it's like, what the FUCK does this method return? What kind of shit is this variable holding? What asshole named this method to_m?

end

Also Ruby can't multithread for shit, all you end up doing is context switching on a single core and making everything take 3x as long.


Ehhh depends on your developers. If people are good about not being terrible, duck typing can save you a ton of code and still remain workable on large projects. Less so for primitives where it's annoying, but it's nice for some functions that aren't distinct enough to create an object hierarchy for (say load and unload if you're dealing with some sort of widget type things).

Plus it avoids an equally annoying bloat you see in large projects where you have someone doing:
addNumbers(int i, int j)
addNumbers(string i, string j)
addNumbers(int i, string j)
addNumbers(string i, int j)
addNumbers(float i, float j)
... and on and on...


You could achieve a similar thing via regular polymorphism, although that takes a decent amount of foresight and would be hard to implement retroactively.
I am the Town Medic.
docvoc
Profile Blog Joined July 2011
United States5491 Posts
January 31 2014 23:19 GMT
#11
I was so sure this was gonna be about pokemon and I was about to get in here and defend that game to death lol.
User was warned for too many mimes.
Tufas
Profile Blog Joined April 2010
Austria2259 Posts
January 31 2014 23:24 GMT
#12
On February 01 2014 08:19 docvoc wrote:
I was so sure this was gonna be about pokemon and I was about to get in here and defend that game to death lol.


Same thought, but I just wanted to see TL burn.
Where is my ACE flair
Otolia
Profile Blog Joined July 2011
France5805 Posts
February 01 2014 10:28 GMT
#13
Had to dev a FTP in ruby and when I realized there was no high-level storage from ruby-objects to yaml in ruby I cried. Still there is far worse than Ruby.

*shrugs* FORTRAN *shrugs*
Chef
Profile Blog Joined August 2005
10810 Posts
February 01 2014 13:57 GMT
#14
Rails is excellent for quickly developing web-applications. Choose the right tool for the right job. Of course there's certain annoying things about Ruby and the asset pipeline can be frustrating.
LEGEND!! LEGEND!!
Please log in or register to reply.
Live Events Refresh
BSL20 Non-Korean Champi…
18:00
RO8 Round Robin Group - Day 2
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
ZZZero.O256
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 136
ProTech73
StarCraft: Brood War
ZZZero.O 256
LaStScan 128
Aegong 99
Dota 2
syndereN361
canceldota129
League of Legends
Grubby5225
Dendi1156
Counter-Strike
fl0m1627
pashabiceps1329
chrisJcsgo94
Super Smash Bros
hungrybox595
Heroes of the Storm
Khaldor361
Other Games
summit1g11012
B2W.Neo1035
Pyrionflax112
ROOTCatZ67
Sick53
ViBE28
Organizations
Other Games
gamesdonequick5293
EGCTV2651
BasetradeTV32
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• Berry_CruncH46
• Hupsaiya 35
• musti20045 34
• davetesta23
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Pr0nogo 8
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21889
• Ler101
League of Legends
• Doublelift4208
Other Games
• imaqtpie2400
• Scarra1793
• Shiphtur202
Upcoming Events
Wardi Open
13h 20m
Replay Cast
1d 12h
WardiTV European League
1d 18h
PiGosaur Monday
2 days
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
The PondCast
3 days
Replay Cast
4 days
Epic.LAN
4 days
CranKy Ducklings
5 days
[ Show More ]
Epic.LAN
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
6 days
Online Event
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Liquipedia Results

Completed

KCM Race Survival 2025 Season 2
HSC XXVII
NC Random Cup

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
2025 ACS Season 2: Qualifier
BSL20 Non-Korean Championship
Championship of Russia 2025
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.