Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root797754y`expect(FUCKING).to(receive(:BULLSHIT).exactly(1).time)`
Error/Failure: FUCKING.BULLSHIT
Expected: 0 times
Received: 1 time
YOU DENSE MOTHERFUCKER! -
Root797754y@uyouthe Tried. Logs don’t show up in RubyMine when running specs 🤦🏻♀️. At least not on this project anymore.
-
Root797754yI got it all working, finally.
I tore apart my specs and rewrote them to avoid the RSpec bugs.
Never did get the breakpoints working again. -
o.o Oh, doesn't this have to do with compiled code changing positions at runtime?
-
The word "debugger" must come from "bugger off", "de" is like "remove" or "make away" 🙃
-
@Root whenever I read your rants...
I want to know... What is this atrocity you're developing with?
It seems not to be Rubys fault per se as far as I understand...
But more IntelliJ / RSPEC / very common Ruby libraries....
Out of curiosity: are the tools so shitty and brittle or is it the project itself? -
Root797754y@IntrusionCM The project is a 10+ year monster that’s been upgraded all the way from Rails 2.x. It has about 550mb of source (just the code). Figuring that out on OSX took me a good twenty minutes of manually subtracting byte counts 🙄. Stupid macs.
Many devs have worked on this, all with their own styles, and with the changing Rails standards and best practices too.
There are hacks and workarounds aplenty, plus quite a few deprecated features/standards/patterns/gems either outright dead or on dwindling life support. And ofc backwards compatibility for many clients who refuse to upgrade. Some are using the api deprecated in year 2!
So. Lots of quirks and strange behavior, and a bloody lot of code to get lost in.
The RSpec bug listed above does seem to be a real RSpec bug, however. There really is no `expect { block }.to invoke(:method).on(object)` pattern, so all method hit-counting is for the entire spec. And redefining them doesn’t always replace the mock correctly, leading to errors that don’t make sense and infuriating debugging sessions.
I’ve also had many problems with RubyMine, though I can’t say if it’s because of the project or not. But it has always felt clunky to me. -
@Root makes sense.
Yeah. Not letting software (-APIs) die is a huge PITA.
And yes, JetStorm crumbles when the source is very... Fundamentally broken.
I remember the pain of importing large PHP into PHPStorm projects and 3-4 h of corrrecting all kind of (auto-assumed) settings. Not as large as half a GiB, but definitely around 75 to 100 MiB.
And yes, coming with the large feature set from IntelliJ / PHPStorm, it get's bad when it has to support alot of different things.
Usually pulling the plug or migrating for the clients is the only way to get out of it. Many (linux-) distributions can tell a tale of that... (eg looking at you Mr Python 2).
Thanks for the explanation, again ;)
It's always sad when something that could be good is so fundamentally broken by bad choices TM.
I wanted to try Ruby sometime later, since I like scripted languages.
Your rant's sparkled my curiosity. XD -
kiki352694yWait. Your rant is perfectly rhythmically aligned with Kendrick Lamar DNA fast flow part
-
Root797754y@IntrusionCM Ruby is amazing. Rails is pretty nice, too. But this project is a monstrosity that should have been reincarnated at least once.
-
-
@IntrusionCM exactly LOL, this weird Ruby code sounds so broken you need to start over
Related Rants
-
MrCSharp40Postman: We will stop supporting our Chrome app. Please download our "Native" app for better performance. No ...
-
Root7I’m adding some fucking commas. It should be trivial, right? They’re fucking commas. Displayed on a fuckin...
-
Root3Out of necessity (or rather: lack of support) I've been neglecting my test suite for the past ~month. Now tha...
THIS FUCKING DEBUGGER IS IGNORING MY FUCKING BREAKPOINTS
GO TO HELL YOU PIECE OF SHIT
AND RSPEC: FUCK YOUR LIMITED METHOD HIT-COUNTING BULLSHIT! ONE HIT-COUNT PER METHOD FOR THE ENTIRE SPEC IS NOT GOOD ENOUGH!
FJA;KLGAKLGJFKSDHG
rant
go to hell
rspec
piece of shit debugger
rubymine