4 ms·
We had a developer write his own System.out.println in Java. But it wasn't because he didn't like the built-in System.out.println, it was because he didn't know
by suzzer99 2y ago
We had a developer write his own System.out.println in Java. But it wasn't because he didn't like the built-in System.out.println, it was because he didn't know it existed. He had a PhD and was supposedly a senior developer. He didn't last very long.
- deleted 2y ago[deleted]
- zanderwohl 2y agoHe must have had a very interesting educational path to write functional Java code without knowing about println. I marvel at that. I almost admire it. Because I think pretty much every tutorial in the world for every language starts with printing, and every project has it someplace. He must have learned via some esoteric means.
- suzzer99 2y agoHe worked for some failed startup before we got him. Our project manager who had worked with him there, brought him in and said he was a genius. I think maybe Java wasn't his first language. But to me, not realizing that Java would have something like System.out.println was a bad sign.
- rchervot 2y agoI believe it was System.out.printf not System.out.println
- peeters 2y agoTo be fair that was quite a late addition to the language all things considered. It could be he learned Java before it existed, or had most of his experience in 1.4 (which survived quite long in some environments because 1.5 was such a huge overhaul). But still, a good dev will keep up to date with language features.
- suzzer99 2y agoThis was circa 2002 FWIW.
- rad_gruchalski 2y agoAnd everyone had a laugh until String.format became a thing?
- nobleach 2y agoI once worked with a dev that implemented his own forEach in JavaScript. And literally used an ECMAScript version 6 feature to do so! (native forEach in JS showed up in ECMAScript 5) Meanwhile, that project already had jQuery and Underscore... which also had their own versions of forEach! It was a bizarre choice.
- suzzer99 2y agoA forEach that could handle async/await would be nice. But for ... in is almost as good.
- IvarTJ 2y agoA motivation for reimplementing System.out.println might be to have it reliably display Unicode characters in Windows terminals, using WriteConsoleW.
- ChrisMarshallNY 2y agoSome of the worst (and some of the best) developers I've known, have had advanced degrees. This guy has a high school diploma, and regularly stunned the Ph.Ds in Japan.
- 0xEF 2y agoSame here, and I have worked alongside engineers from both ends of that spectrum. The only thing the degree'd individuals seemed to bring to the table is that they typically did not know what they did not know, thus were much more subject to Dunning-Kreuger.
- lttlrck 2y ago"only thing they brought the table"? Only you'd know but that seems rather uncharitable.