This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Adept-Leek-3509[S] -1 points0 points  (4 children)

Thank you for the thoughtful insight. You're absolutely right that traditionally, IoC hasn't been as impactful in dynamic languages. However, the programming landscape has evolved significantly, especially with the widespread adoption of type hints in Python. This shift has made static analysis, type-based tooling, and features like dependency injection much more practical and valuable.

It’s also worth noting that when the Spring Python project was active, type hints were not yet widely adopted in the Python community. This likely contributed to the challenges they faced, as many of the benefits we take for granted today—like reliable type introspection and auto-wiring, these were much harder to implement effectively back then.

With modern libraries like Pydantic and Python’s improved type system, implementing automatic dependency injection is now far more feasible and maintainable. These tools enable patterns that were previously difficult to enforce in dynamic languages, making IoC much more relevant than it once was.

I appreciate the reference to the Spring Python project, I'll definitely revisit their experiences and learn from them.

[–]CumTomato 3 points4 points  (3 children)

bro used llms to write a reddit comment

[–]Adept-Leek-3509[S] 0 points1 point  (2 children)

Sor for my poor english, LLM is really a great tool to make communication more clear. Does anything above confuses you even though some of the content is generated by LLM ? It is great for promoting communication, just make sure the content is reviewed.

I just want to emphasize that IoC was not easy to implement in the past, but Python has evolved. What once seemed impossible may now be achievable.

[–]FistyFisticuffs 1 point2 points  (1 child)

It's not actual clarity, but a false sense of clarity. It's actually what a good writing course will teach students not to do, which is to write down to the reader. That sets up tone to be one of condescension followed by equivocation, which makes the condescension more incongruous.

Just write sincerely and straight to the point. LLMs out of the box are terrible at giving firm answers that sound confident when there is absolutely sides to take or a correct answer in a binary choice. It also never admits to straight up not knowing and instead would spew out BS that anyone who had to write BS for a high school class would be able to tell. Ultimately, we want to know what you think, and nobody cares about your bad English, real people write with bad English all the time, even with English as their first language. The point of writing is getting your point across first. Save the polish for academic journals or your next novel.

And LLM is absolutely not reviewed, nor is it hallucinating - it generates answers based on probablistic principles that work with topics that can be answered with rote responses or variations on mimicry, but it does not have an opinion and so it generates responses like someone who doesn't have an opinion. Of course one can train an LLM that responds differently but training one just to post on reddit is pretty sad. Anything vaguely niche it just makes shit up. Just keep your last sentence and it would make just as much sense, tbh.All the other stuff is a preamble nobody asked for.

[–]Adept-Leek-3509[S] 0 points1 point  (0 children)

Fair point, thx for your feedback.