News for hackers. Stuff that matters.
Re:Mistakes engineers make in large established codebases by newaccountman2 on Tuesday January 07, 2025 @09:38PM (#42630297)
Am I naive for thinking that nothing like that should take as long as 6-9 months in the happy case and that it's absurd for it to not succeed at all?
Re:Mistakes engineers make in large established codebases by murkt on Tuesday January 07, 2025 @09:45PM (#42630333)
No, you’re not naive. If it’s done by one-two people that know what they’re doing, it should be done much faster.

If it’s a big new team that doesn’t know what they’re doing, working separately from existing codebase, with lots of meetings… I see no reason why it would finish at all.

Re:Mistakes engineers make in large established codebases by Aeolun on Wednesday January 08, 2025 @12:33AM (#42631270)
Maybe. There's a lot of dragons hidden inside enterprise code. Only if you know all of them can you really succeed the first time around.
Re:Mistakes engineers make in large established codebases by 000ooo000 on Wednesday January 08, 2025 @02:13AM (#42631843)
You know so little about the team, the organisation, the codebase, other concurrent obligations (e.g. prod support), and the way the project is run. The only way I can imagine one having confidence in a statement like "nothing should take that long" is naïveté.
Re:Mistakes engineers make in large established codebases by franktankbank on Wednesday January 08, 2025 @01:29PM (#42637015)
Then maybe 18 months wasn't too long and they should have been given more time. But seriously?
Re:Mistakes engineers make in large established codebases by baq on Wednesday January 08, 2025 @02:19AM (#42631877)
Authz can make the most otherwise trivial features into a depressing journey in the valley of edge cases.
Re:Mistakes engineers make in large established codebases by mjr00 on Wednesday January 08, 2025 @02:23AM (#42631900)
It really depends. Honestly 6-9 months would have been an optimistic estimate even if it were 2-4 devs intimately familiar with the existing codebase. Permissions is a very cross-cutting concern, as you might imagine, and touched a huge amount of the monolith code. A big problem was that permissions checks weren't done in a consistent layer, instead scattered all over the place, and the team responsible for the rewrite, being new to the code, was starting from scratch and finding these landmines as they went. Scoping was also unclear and kept changing as the project went along, at first to pull in more scope that was peripherally related, then to push stuff out of scope as the project went off track. And during all these changes you have to keep the existing auth system working with zero downtime.

The devs were good developers, too! Two people on the team went off to Google after, so it's not like this was due to total incompetence or anything; more just overambition and lack of familiarity with working on legacy code.

Re:Mistakes engineers make in large established codebases by yid on Wednesday January 08, 2025 @02:28AM (#42631932)
> Am I naive for thinking that nothing like that should take as long as 6-9 months in the happy case and that it's absurd for it to not succeed at all?

Bluntly, yes. And so is every other reply to you that says "no this isn't naive", or "there's no reason this project shouldn't have finished". All that means is that you've not seen a truly "enterprise" codebase that may be bringing in tons of business value, but whose internals are a true human centipede of bad practices and organic tendrils of doing things the wrong way.

Re:Mistakes engineers make in large established codebases by arkh on Wednesday January 08, 2025 @05:32AM (#42632808)
> whose internals are a true human centipede of bad practices and organic tendrils of doing things the wrong way

Currently there. On one hand: lot of old code which looks horrible (the "just put comments there in case we need it later" pattern is everywhere). Hidden scripts and ETL tasks on forgotten servers, "API" (or more often files sent to some FTP) used by one or two clients but it's been working for more than a decade so no changing that. On the other: it feels like doing archeology, learning why things are how they are (politics, priority changes over the years). And when you finally ship something helping the business with an easier to use UI you know the effort was not for nothing.

Re:Mistakes engineers make in large established codebases by tuyiown on Wednesday January 08, 2025 @06:23AM (#42633084)
If you find me any resources to build access control on arbitrary (I mean it, arbitrary) rules the right way, I would be very very (very) glad.
Re:Mistakes engineers make in large established codebases by yid on Sunday January 12, 2025 @02:49AM (#42671957)
I think that's just called "code".
Re:Mistakes engineers make in large established codebases by tuyiown on Wednesday January 08, 2025 @06:19AM (#42633063)
authorization and access control is an awfully difficult problem, as soon as you derive from user defined ACLs on all persisted objects and user/groups based granting data. Each access can have an arbitrary rule that must be evaluated with all dependant data, that will end up being anything in the persisted data. How to you make this long rule list maintainable, without redundancy, ensuring that changing re-used rules won't introduce regressions on all call sites ?
Re:Mistakes engineers make in large established codebases by lkjdsklf on Wednesday January 08, 2025 @10:50AM (#42635426)
At a large enterprise, 6-9 months is blazingly fast.

Everything takes longer than you think and this sounds like it involves at least 2 teams (the php team and the scalar team). Every team you include increases time line factorially in the best case.

It takes a lot of time to have meetings with a dozen managers to argue over priority and whatever. Especially since their schedules are full of other arguments already

Re:Mistakes engineers make in large established codebases by franktankbank on Wednesday January 08, 2025 @01:30PM (#42637025)
> the php team and the scalar(*scala) team

LOL why is this two teams!?

Re:Mistakes engineers make in large established codebases by dennis_jeeves2 on Wednesday January 08, 2025 @07:12PM (#42640089)
>Am I naive for thinking

Yes.

Re:Mistakes engineers make in large established codebases by 59nadir on Thursday January 09, 2025 @06:38AM (#42644266)
Only in the sense that you seem to not understand how terrible big companies, big teams and big code bases are for efficiency and productivity. It pushes the bar for reaching desired results way up, and the time it takes to get there even more. No one should ever want to be part of organizations, teams or code bases like this, for their own sake.