Quantcast
Channel: User Filip Milovanović - Software Engineering Stack Exchange
Browsing index pages (204 articles)

Comment by Filip Milovanović on Should I run separate APIs for my frontend...

One reason for a separate API is that a company might not want to offer the same level of capability to 3rd-party apps (maybe there are privacy concerns with making the data easily accessible, maybe...

View Article


Answer by Filip Milovanović for Clean Architecture - Interactor, controller...

Which approach aligns better with Clean Architecture principles?Both are in alignment. The first one you might use when you have control flows that are initiated by one side only (e.g. only...

View Article


Comment by Filip Milovanović on When to use std::vector reserve

If you are going to fill that space over time, and/or reuse it, and if the size (or an upper bound) is know in advance it doesn't hurt to do it. It's just one line of code and it's perfectly clear what...

View Article

Comment by Filip Milovanović on Is it good practice to put comment headers...

"code might change and I would have to update my code description in the comment at the top" - well, that's a problem with any form of "offline" documentation, which you often need to have to some...

View Article

Comment by Filip Milovanović on Onion architecture object mapping

@laegirl - a lot of this bloat comes from people thinking they have to copy data layer-to-layer to have layering, and also because ORMs are intrusive and tend to force everything else to play to their...

View Article


Comment by Filip Milovanović on Distinguishing between no selection and...

@SergeyZolotarev - "no selection as a type of selection is awkward" - Why? It's not "no selection". It's an explicitly selected command from the user, requesting that the currently stored value be...

View Article

Comment by Filip Milovanović on Distinguishing between no selection and...

Why can't you represent "Nothing" as one of the options (is there some technical problem)? Then just check for it in the "present" handler? As in, if selection is "Nothing", clear, else assign the...

View Article

Comment by Filip Milovanović on Source-control backed trial and error setting...

I think one of the fundamental problems here is that a DevOps role/team is separate from the development team. That's precisely the opposite of what DevOps was meant to be, and exactly the problem...

View Article


Comment by Filip Milovanović on How to deal with a programmer who acts as a...

@JimmyJames - "we can generate the test cases with AI!" oh, believe me, that's already happening all over the industry. Not the least because a lot of people don't like to write tests, and/or don't...

View Article


Comment by Filip Milovanović on Architecture for layering project-wide AI...

This whole agents.md businesses is a disaster waiting to happen. It's essentially automation using an unreliable tool instructed in an informal language, that sweeps complexity under the rug.

View Article

Answer by Filip Milovanović for How to design extensible data aggregation...

The problem you have there is in some sense similar to what JavaScripts's Array.reduce function is designed to tackle (other languages provide alike facilities).It generalizes various data...

View Article

Comment by Filip Milovanović on OO design - Process that relies on the...

Can you modify the code to simply pass the data to the .process method instead to the constructor: solver.process(data)? This seems like a more natural, more flexible design.

View Article

Comment by Filip Milovanović on Convenience inheritance

If you intend to use the base class only for its implementation but not for its API, then yes, generally prefer composition over inheritance. "Won't it be confusing?" - no. In fact it'll only make your...

View Article


Comment by Filip Milovanović on Term for time spent to "tame" (adopt) new...

Why not use "upfront investment" and "high learning curve"? These are pretty standard terms and you more or less used them yourself to describe the problem.

View Article

Comment by Filip Milovanović on Adding "caller specific" special cases to a...

A generic approach implies some sort of abstraction (not in the sense of "abstract class", but abstraction as in an generalized, abstract concept), while special cases imply, well... the opposite of...

View Article


Comment by Filip Milovanović on Is there a term/pithy law that represents the...

Kent Beck talks about "feedback loop" length - the time it takes to do something before seeing the result (feedback) and potentially re-assessing or course-correcting based on it. Shorter feedback...

View Article

Comment by Filip Milovanović on Extending "base" classes

If you intend to use the base class only for its implementation but not for its API, then yes, generally prefer composition over inheritance. "Won't it be confusing?" - no. In fact it'll only make your...

View Article


Comment by Filip Milovanović on Keeping the impact of changes low when moving...

"These concepts are meant to remain consistent" - RikD has a point. We don't know enough about your domain, so keeping them consistent might be the right choice, but one of the lessons of DDD is to...

View Article

Comment by Filip Milovanović on How to pass arguments of a complex search in...

Not a simple route, but if you really want to use an existing query language with your own condition structure, you could try and find a ready-made RSQL parser (or perhaps extract one from an...

View Article

Comment by Filip Milovanović on How could I map a complex DTO to a Domain...

Many design problems are solved by moving things around. You don't like that your repo is full of complex/intricate construction logic? Take that logic out to a different function or class (in this...

View Article
Browsing index pages (204 articles)


Latest Images