How to avoid using \sloppy document-wide to fix overfull \hbox problems?

This is my minimal working example.
\documentclass[12pt]{report}
\usepackage[english,ngerman]{babel}
\usepackage[a4paper,inner=25mm,outer=25mm,top=30mm,bottom=30mm]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
Have a look at this URL ignoring the page margin within the text flow \textit{example.com/donc\_oe/longurl} lorem ipsum.\par
The very strange plugin Java-JDT (\textit{en. Java Development Toolkit}) "`Plugin-Entwicklungsumgebung"' -- what's wrong with this german word?\par
\lipsum[2]
\end{document}
With \sloppy it looks better.

But I got told it's (obviously) better to avoid using it document-wide. What else can I do?

\urlfrom theurlpackage. – Gonzalo Medina Jun 08 '12 at 21:21\usepackage[ngerman]{babel}; so input the offending long word asPlugin"-Entwicklungsumgebung, using the"-shorthand: a hyphen allowing hyphenation in the rest of the word. – egreg Jun 08 '12 at 21:41Plugin"=Entwicklungsumgebung– topskip Jun 08 '12 at 22:27\sloppythroughout the whole document? – shuhalo Aug 18 '23 at 21:34