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
-
Normal people: *zoom to see the face*
Me: *zoom to look for typos*
Also, that's what u get for using ruby. -
Root797487y@tbodt This is a rare issue lovingly titled "autoloader hell" where rails can't immediately resolve an unloaded constant but finds a correctly named path and file with a matching (but incorrect) declaration, and only realizes that the declaration is incorrect on the second lookup.
Thus the first attempt works (erroneously), and fails on all subsequent references.
The short: I did something wrong somewhere and confused the poor thing. -
Root797487y@Condor yes and no
I usually use curl for API testing, plus the usual rails server and rails console (and git) via cli. My primary editor is sublime, not vim, and I still need to use Firefox for frontend since lynx doesn't care about css 😋
So. 2/3rds cli? -
Root797487y@AlgoRythm Yep. This is why autoloaders are secretly terrible things, even though they feel wonderful and reduce your effort the rest of the time. Everything is great while they work as expected, but as soon as you run into issues, understanding what is happening and why takes a deep understanding of exactly how the autoloader works, which very few people have. Knowing exactly how inheritance works might not help you here, and debugging can be a nightmare... especially when you've never encountered it before.
If you instead load everything manually through e.g. require, you'll never run into an issue like this (unless you really screw up, ofc)
It's pretty rare, but it can still happen.
In this case, I have two MerchantController classes with different parents and an ambiguous reference somewhere. There are other aspects complicating this, but that's the root cause. -
Root797487y@rising It's a slider blocking my webcam. Free swag from some convention a friend of a coworker attended.
-
"It's not magic, just look at the source"
When it works Rails is lovely. When it doesn't debugging is quite doable. But when it breaks deep down inside, you're doomed
Related Rants
-
codeclod15When you have a super annoying problem that Google has been unable to help with... But you stumble upon a link...
-
Meta15My shower renders temperature as a boolean. 😩
-
marthulu88This dev world is still so damn fucking sexist, it's driving me nuts. "it's so cool seing a GIRL doing this s...
Here's how my day is going:
> Access::MerchantsController
=> MerchantsController
> Access::MerchantsController
NameError: uninitialized constant Access::MerchantsController
-.-
rant
ugh
reveal: maleficent
reveal: joker
one of those days
rails
reveal: tentacles
reveal: hands