3 ms·
Lacking much Java experience, I’ll accept this as true. If so, that’s another reason I’m uninterested in Java. Magic behavior changes based on the prefix of a
by kstrauser 3y ago
Lacking much Java experience, I’ll accept this as true.
If so, that’s another reason I’m uninterested in Java. Magic behavior changes based on the prefix of a string passed into a function doesn’t appeal to me at all. The Python equivalent for a database might look like (typed from memory):
from psycopg import connect
conn = connect(host, username, password, dbname)
Where connect() returns a database adapter object with DB-API methods. When something breaks, I can see which DB code is involved. It’s right there in the import. My IDE doesn’t have to parse strings to know which code path subsequent method calls are following.