Lurker News
Can be super esoteric or super generalized, I love it when I get them, or when I just learn something new.

Comments (852) 364 threads

Show all comments

Showing thread 21 of 364

tilolebo5 replies#
A programmer had a problem. He thought to himself: "I know, I'll solve this with threads!"

has Now problems. two he

imglorp1 reply#
Then he thought he'd use Java. Now he has a ProblemFactory.
spacemanmatt4 replies#
This is funny because no one uses the factory pattern in other languages
isoprophlex1 reply#
You'd be surprised to see how many WhateverFactory classes there are in the current python project I'm working on... sigh.

Continue this thread — 1 reply

sheikheddy#
Sadly I've seen it used in Scala
marcosdumay1 reply#
Well, to a first approximation, no, nobody uses the factory pattern in other languages.

Once in a long while you see one in C# or C++. But the people making fun of Java aren't comparing it with C# and C++.

Continue this thread — 1 reply

imglorp#
> "This thing comes with documentation, right?"

This is the most painful part for me. If you're trying to understand some code written in Gratuitous Object Astronautics style, it's almost universally assumed you're fully aware of why the product contains hammer factory factory factories, how factories work, and how get an actual hammer to swing.
The Gratuitous Object Astronautics culture is so accustomed to all the nonfunctional boilerplate that skilled, self-gratifying, astronauts never need to document their cleverness. This leaves casual tourists in the dark, which is a problem in any organization.

oars#
Best one.
CGamesPlay1 reply#
This one always bugs me because it says "two" but this output couldn't be produced with fewer than 3 threads.
axaxs#
Fair point if you read it literally and assume each thread is a problem. But I assume, as it's a variation of the regex joke, 'using threads' is seen as a singular thing. Perhaps it should say 'threading?'
cupofcoffee#
lmfao
DarkWiiPlayer#
Fuck threadsing