Details
-
Skillsc#, js, random web tech and infrastructure
Joined devRant on 4/16/2020
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
-
1.5 million lines of undocumented spaghetti code. Think 500~1000 lines functions, 5k+ lines classes, string html concatenation. You name it, it had it. And complete unwillingness to improve it by the company. I eventually quit after considering doing it about 2, 3 times.5
-
Alright fuck this, I'm sick of Sequelize's bullshit. I'm thinking of moving this over to Prisma2. If anyone has done it before, how painful do you think moving 90ish table related Typescript code will be?1
-
It's really painful to go through a codebase when the other guy doesn't comment anything. It's a new project, you have the opportunity to make it not a nightmare to work with, and yet you choose to not document shit. I've been documenting stuff as I go along at least. Feels like I should have some linter forcing comments on methods at least.
-
Best: Initiated the formal process to get a work visa, which is really the first step into settling down here after my studying period.
Worst: Have to work with with WordPress sometimes, and 80% of the other system's tech stack being new, making me feel like an absolute retard because I'm slower than a drunk snail.
Overall a nice year, despite 2020 shitting all over everyone. -
Every time (by which I mean 2 times so far) I update docker something stops working in one of my containers. Is this common or just my incompetence?2
-
Seems like sequelize doesn't support delete join queries. I keep missing all those things I took for granted on my previous stack.
But it's too late for me, it's gonna be node and I'm gonna like it. -
Chances are you won't code something you care about.
That said I guess that applies to almost every occupation. -
I'm that person that makes shit inefficient code, hello everyone. I'm just now learning algorithms and data structures after years of employment.
It is my hope to one day atone and be forgiven for my crimes against computer science.3 -
Been using nodejs for a rest API. It may be the old fart in me, but I'm regretting using it instead of a normal static typed language. I hope something changes my mind soon, or I'll go through a case of sunken cost fallacy.3
-
When do you know something is being overdesigned or overengineered?
The applications that the other programmer started building are killing me. He's using Clean Architecture and it has like a million different classes and shit. It's not messy or anything, but fuck it's overwhelming.
Just to figure out wtf was happening when getting the currently signed in user's email, I had to go through like 30 folder and files. Maybe more. All files were fairly simple on their own, but the entire flow was mindfucking me. Use cases, schemas, gateways, repositories, entities, models, etc etc
And that's the client facing application, I haven't checked the API yet, though it seems like that one is simpler.
The worrying aspect here is, any time anyone else has to mess with this, they'll also have to deal with this shit. This needs some really good documentation.2 -
I'm not liking docker so far. I assume it gets better later, but I've had a miserable experience using it as part of my dev environment so far. Just now I updated it and it broke my db container, so now I'm looking to either downgrade docker or fix the issue, both beings things that take time away from coding.2
-
So I'm new to NestJS, Node, etc. and I just noticed that the guy working on the API made every request call a different service class, instead of using a single service class. For example.
get() {
return await this.getObj.run()
}
post(myDto){
return await this.storeObj.run()
}
update(myDtoUpdate){
return await this.updateObj.run()
}
And I'm not sure why. He's also injecting the request into those classes, instead of passing the DTO to the method call. I mean, it's still injecting the data into it I guess, but it seems so roundabout. Something like this:
public constructor(
@Inject(REQUEST) private request: Request,
){}
I'm scared, but I'm not sure if it's just my own ignorance or a sixth sense telling me that this is gonna be a mess.
Have you seen APIs implemented this way? I can see the benefit of dividing the code into smaller classes, but it just seems overkill to me, specially when there's a big chance that code will be repeated (getting an entity by ID when updating it, for example).
I'm still in time to kill this with fire before a new monster is born though, so that's something.1 -
Looking for some opinions here. Chatbot from scratch or use an existing service?
I have to work with a messenger chatbot. The company has been using chatfuel, so I'm trying to work with it but it's kinda buggy in some parts. Have any of you created a messenger bot from scratch? I flipped through the documentation and it seems like a pain in the ass, but it's obviously more flexible than using a third party service.
So yeah, I'm trying to weigh the convenience of the third party vs its limitations compared to coding my own. What's your take on it?2 -
Every night, after all is silent and peace and calm reigns, I pray to Santa to bring swift death to WordPress.5
-
Assuming you're working 8 hours a day, for how long do you manage to stay productive? I think I can't do more than 4 and a half. Maybe 6 on a good day.1
-
"The client needs this feature by the end of the month."
Me: "Ok."
You can probably figure out what happened by the end of the month.5 -
This Macbook Pro (2017 model I think?) is probably. the worst computer I've. purchased in my life. Really, the worst electronic device surpassed only by my old Xbox 360.
Not only is t he keyboard absolute shit. as. you can see from the way this was typed and riddled with extra spaces and dots, but apparently. the way the monitor was built doesn't. let y ou simply replace the flex cables if they kick the bucket, you have t o replace. the entire screen. Because reasons.
It seems it was a common issue but. they won't fix i.t without charging you for THEIR fuckup.
Never again.20 -
I'm the only developer here. I'm also pretty bad.
I can't handle all this responsibility, every single fuck up will be my fault.11