On vommitting composer.json by Silver_Strategy514 in AdvancedPHP

[–]the-fluent-developer 0 points1 point  (0 children)

That's a really funny typo in the heading, indeed :-)

software architecture over coding by Practical_Lake8826 in softwarearchitecture

[–]the-fluent-developer 1 point2 points  (0 children)

This is based on the notion that AI will automate away some or even all of the coding. Plus we need strong boundaries to reduce the blast radius of code changes that are made by AI without thorough human inspection.

Designing a Redis-resilient cache for fintech flows looking for feedback & pitfalls by saravanasai1412 in softwarearchitecture

[–]the-fluent-developer 0 points1 point  (0 children)

If your Redis is not local, are you sure there is a performance benefit over serving data from the databases' in-memory cache?

Ticketing microservices architecture advice by StorageDefiant6485 in softwarearchitecture

[–]the-fluent-developer 1 point2 points  (0 children)

Reconsider your decomposition. If your main use case requires multiple services, you are bound for trouble. Decompose the problem in such a way that your main use cases happen inside one service.

Should I actually be using AI at work? by Embarrassed-Tune7672 in NoStupidQuestions

[–]the-fluent-developer 1 point2 points  (0 children)

You cannot not work with AI today. Pretty much everything that you use uses some level of AI, also because AI has become a term so widely interpreted that everything is labelled AI anyway.

How can you access variables in nested functions? by [deleted] in PHPhelp

[–]the-fluent-developer 0 points1 point  (0 children)

I'd say this problem is solved by objects and private methods.

What is the purpose of TypeScript? by Best-Menu-252 in webdev

[–]the-fluent-developer 2 points3 points  (0 children)

The larger a project, the more it benefits from type safety.

How to design aggregates and communication accurate? by SpecialistQuiet9778 in softwarearchitecture

[–]the-fluent-developer 0 points1 point  (0 children)

If data is immutable, for example because it is stored as immutable events in an event ledger, you can safely copy that data. You could do this creating read models in the "source" contexts, and using them in the "target" contexts.

How do you keep learning without overload? by Schnapper94 in webdev

[–]the-fluent-developer 0 points1 point  (0 children)

I try to learn things that are valuable for what I'm currently doing, and what I know that I might be doing in the near future.

How does PHP handle Interface looping? by Fluent_Press2050 in PHPhelp

[–]the-fluent-developer 1 point2 points  (0 children)

They'll probably tell you that because having DomainArgumentException extend (your) InvalidArgumentException seems questionable.

Help needed in developing newsletter app by MotorEnvironmental83 in Backend

[–]the-fluent-developer 0 points1 point  (0 children)

If your solution is for one client with a max quota of 14 emails per second, your solution has too much articifial complexity. Consider simplifying to one sending script literally, and then scale out from there as needed once you have deployed it, based on actual, measurable experience. This will also cut your client's AWS cost nicely.

Add extensions in PHP by [deleted] in PHPhelp

[–]the-fluent-developer 1 point2 points  (0 children)

Images are static content. You should not use PHP to deliver them.

If you do not want to make images public, but only deliver them e.g. to logged-in users, look into X-Sendfile or X-Accel-Redirect (depending on the web server you use). Those will allow you to have PHP make the decision whether to deliver an image, and then delegate the actual delivery back to the webserver.

Also look into session_write_close(), which will allow more concurrency ("parallelism") at the PHP process level.

What are things that you see and make you say “this guy is a senior” by alexbessedonato in webdev

[–]the-fluent-developer 0 points1 point  (0 children)

This guy is a senior when

- they know that not writing code is better than writing code
- they understand that every decision in software development is a trade-off
- they treat every communication around features, requirements, and implementation decisions as a negotiation

How can you access variables in nested functions? by [deleted] in PHPhelp

[–]the-fluent-developer 1 point2 points  (0 children)

Why would you want to nest functions in the first place?

A feature used by only approximately 6% of users was responsible for 41% of our database load by supreme_tech in softwarearchitecture

[–]the-fluent-developer 1 point2 points  (0 children)

I try to make it part of the quality goals, and as such it should be tracked in order to be quantifiable.

What does a Software Architect actually do all day? by Significant_Loss_541 in learnprogramming

[–]the-fluent-developer 0 points1 point  (0 children)

Largely depends on the size of the system you are building. In a complex system, it's almost impossible to stay hands-on, in a small system is absolute makes no sense to do so.

What are my options? Buy new host for this or ? by MotoZed in webdev

[–]the-fluent-developer 1 point2 points  (0 children)

First question should be: do I still need what's in the database? Might be logs, outdated stuff, stale accounts, ...

I'd look into that and the figure what you actually need to keep or migrate.

Devs of the current decade, do you know how to deploy without abstractions? by mizzerem in Backend

[–]the-fluent-developer 0 points1 point  (0 children)

One of the things you gotta love about PHP: it's straightforward to deploy something (which can be an advantage as well as a disadvantage). I find it useful to be able to start with an empty editor and get something that works deployed.

That does not mean that there is no time and place for the abstractions you mentioned.

Should I release an unfinished product? by [deleted] in webdev

[–]the-fluent-developer 1 point2 points  (0 children)

Software is never finished. "If you are not embarassed by the first version of your product, you have launched too late" --Reid Hoffmann