Re:Ask HN: Have you ever worked on a product that was killed...
by gizmo on Tuesday January 17, 2017 @01:03PM
(#13419624)
You can't compare C++ with Ruby code. Rails code especially can very easily become a hairball where everything happens "somewhere else". You don't have static type checking or other compile time hints to figure out what is going on. You can't see which functions are called from which call sites. Refactoring tools? Forget it. Ruby is a very compact and flexible language, but if you're not disciplined you'll pay the price for it.
A 60kloc C++ project is small and easily manageable, a 60kloc Ruby hairball can drive a person insane.
Re:Ask HN: Have you ever worked on a product that was killed...
by RangerScience on Tuesday January 17, 2017 @01:05PM
(#13419649)
Rails code. You get a lot of bang for your buck. That, and the "greater" metric for the project complexity is the stupidly high number of controllers and models.
Re:Ask HN: Have you ever worked on a product that was killed...
by golergka on Tuesday January 17, 2017 @01:07PM
(#13419661)
LOC differ not only by the language or technical difficulty of the task, but by business requirement difficulty as well.
If, for example, they're in banking and finance, and those LOC deal with fine details of tax code... Oh boy.
Re:Ask HN: Have you ever worked on a product that was killed...
by wheaties on Tuesday January 17, 2017 @02:40PM
(#13420446)
As a former C++ dev, you can't compare Ruby LOC to C++ LOC. Just 4x the Ruby and then it becomes more fair. C++ is just verbose. #import <algorithm.h> doesn't fix everything blocks fix.
Re:Ask HN: Have you ever worked on a product that was killed...
by PaulRobinson on Wednesday January 18, 2017 @06:09AM
(#13425535)
This is why LOC is a terrible metric. I was using it as a barometer as most ruby devs would see 60k LOC and go "Ooooookaaaay...."
If anything, we've gone too fast and not spent enough time going back and understanding what we really need to keep.
And that wasn't a stressful place to work with insane deadlines - it was fairly relaxed for the most part.