Details
-
AboutHi, I am Samin.I recently started learning web development. I hope u guys will help me to learn and solve my problems
-
SkillsHtml,Css
Joined devRant on 8/13/2021
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
-
I’m trying to add digit separators to a few amount fields. There’s actually three tickets to do this in various places, and I’m working on the last of them.
I had a nightmare debugging session earlier where literally everything would 404 unless I navigated through the site in a very roundabout way. I never did figure out the cause, but I found a viable workaround. Basically: the house doesn’t exist if you use the front door, but it’s fine if you go through the garden gate, around the back, and crawl in through the side window. After hours of debugging I eventually discovered that if I unlocked the front door with a different key, everything was fine… but nobody else has this problem?
Whatever.
Onto the problem at hand!
I’m trying to add digit separators to some values. I found a way to navigate to the page in question (more difficult than it sounds), and … I don’t know what view is rendering the page. Or what controller. Or how it generates its text.
The URL is encrypted, so I get no clues there. (Which was lead dev’s solution to having scrapeable IDs instead of just, you know, fixing them). The encryption also happens in middleware, so it’s a nightmare to work through. And it’s by the lead dev, so the code is fucking atrocious.
The view… could be one of many, and I don’t even know where they are. Or what layout. Or what partials go into building it.
All of the text on the page are “resources” — think named translations that support plus nested macros. I don’t know their names, and the bits of text I can search for are used fucking everywhere. “Confirmation number” (the most unique of them) turns up 79 matches. “Fee” showed up in 8310 places before my editor gave up looking. Really.
The table displaying the data, which is what I actually care about, isn’t built in JS or markup, but is likely a resource that goes through heavy processing. It gets generated in a controller somewhere (I don’t know the resource name so I can’t find it), and passed through several layers of “dynamic form” abstraction, eventually turned into markup, and rendered as a partial template. At least, that’s how it worked in the previous ticket. I found a resource that looks right, and there’s only the one. I found the nested macros it uses for the amount and total, and added the separators there… only to find that it doesn’t work.
Fucking dead end.
And i have absolutely nothing else to go on.
Page title? “Show”
URL? /~LiolV8N8KrIgaozEgLv93s…
Text? All from macros with unknown names. Can’t really search for it without considerable effort.
Table? Doesn’t work.
Text in the table? doesn’t turn up anything new.
Legal agreement? There are multiple, used in many places, generates them dynamically via (of course) resources, and even looking through the method usages, doesn’t narrow it down very much.
Just.
What the fuck?
Why does this need to be so fucking complicated?
And what genius decided “$100000.00” doesn’t need separators? Right, the lot of them because separators aren’t used ANYWHERE but in code I authored. Like, really? This is fintech. You’d think they would be ubiquitous.
And the sheer amount of abstraction?
Stupid stupid stupid stupid stupid.11 -
My uncle wants me to get a faster OS on this (I'm thinking android since its touch screen) he wants to embed it in his car as a GPS computer (older car) he's an actual mechanic don't worry lol so he won't fuck up any car wiring
But this monster doesn't have a USB-A it has usb-mini. Oof. Wish me luck while I try to figure this out11 -
soy eating developer: * change the name of his master branch to "main" *
Me: That's it, you ended racism!25 -
Why would you send me an email that "the opening is not longer available" when you're going to list the job again 3 more times in the same month??
At least be honest! i'm a big boy, i can handle it.6 -
When my kids would not seriously injure themselves (scrape, bruise, etc) I would suggest we cut it off. They would respond, "NO DAD!"
Now, I go to the doctor because my dentist found something growing on my uvula. My doctor sits me down and says, "Lets cut it off. The whole thing. You will snore less." I am like "...okay!" Then it reminded me of what I used to tell my kids.1 -
Failure is not the problem.
Problem is not admitting and accepting that you failed.
Problem is not learning from your mistakes.
Problem is causing the same damage over and over again.
What's worsens the situation is defending the dumb act.
If you cannot handle failure then not only you stagnate your growth, but you also negatively affect people around you.
Mistakes make you perfect only when you fix them.7 -
Any body goes through a phase where they feel unmotivated to work?
Normally, I’m the kind of person that work a lot and even code on side projects during the weekend. For the past 2 weeks+, I feel unmotivated and just want to eat, shower, Netflix and sleep.
I’m certain I’m not depressed but I don’t know if I am burnt-out though.
Anybody had similar experience?7