3 ms·
I don't think we read code the same way we read normal text. If you have this in your code: qry.setParameter("a", a); qry.setParameter("b", b); qry
by strictnein 10y ago
I don't think we read code the same way we read normal text. If you have this in your code:
qry.setParameter("a", a);
qry.setParameter("b", b);
qry.setParameter("foo", foo);
qry.setParameter("bar", bar);
After the first "qry.setParameter" you're no longer reading anything but the parameters and your eyes are moving vertically.
Or if you have something like this:
Query qry = getEntityManager().createNamedQuery("User.findUserBySomething", Long.class);
You're only reading the "User.findUserBySomething". The rest of it is mainly fluff.
- lukeschlather 10y agoJust for the record, that bit of code gets cut off at ", Long." for me, and then there's a scrollbar. (I always read HN zoomed-in.)
- jdbernard 10y agoThere's a CSS rule constraining the width of <pre> blocks to 600px.
- jdbernard 10y agoPersonally I find that second line annoyingly long and would split it for readability's sake.