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
-
You’ll need uninterrupted space. Best of luck!
Ps. I’m guilty of writing a similar piece of code for myself once. I still haven’t refactored it haha. Dreading it tbh but might be easier these days. 😆😁 -
Do pointers just not exist in this language or some shit? Why would anyone take the time to copy+paste such a thing?
-
@Krokoklemme what the hell do you do when you want to pass a function into another function, or iterate over classes? Do you pass the class itself? The class instance itself? I dont get it... How does front-end do this shit?
-
@arcsector how tf would I know? I can't stand JS (or front-end dev, for that matter)
-
@arcsector you can use polymorphism in place of function pointers in C++. Using function pointers is considered "the C way".
I don't know jack about js. -
@electrineer i know how to do it in C and C++ which is why i was asking about js lol. I dont know squat about it! Thanks for the info though.
-
At least the scope is limited. I've seen JS files with similar depth but each scope spanning 30+ lines. THAT was hell
Related Rants





Everyone always says the previous developer was crap, sometimes you're right
This never gets old...
Exactly
I've found this beauty in our company's legacy code.
The main doubt is: is that possible have the required strength to refactoring this 💩?
rant
javascript
legacy code
train station