Comment On A Forest of Trees

Our system was written by neophyte troglodytes who didn't follow standards of any kind. They coded whatever they wanted, however they wanted, whenever they wanted, wherever they wanted. Usually via copy/paste/plagiarize. [expand full text]
« PrevPage 1 | Page 2Next »

Re: A Forest of Trees

2013-01-15 08:05 • by Steve The Cynic
Message for snoofle: Today you have explained the principal justification for the hunter's knife as essential programming equipment.

And I mean the one in Monster Hunter Tri that is essentially just a sword as long as your arm.

Re: A Forest of Trees

2013-01-15 08:15 • by Tree Hugger (unregistered)
Work at my place and you'll see out very own framework covering everything from MVC servlets to Logging to class loaders - needed because nothing is done in code, everything is configuration and a scripting language has been implemented using XML to piece together the sequence of events defined in the XML or the properties files. All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).

Essentially anywhere you might expect to find 'Apache' X we have our very own special way of doing things (all held together with config and XML scripts).

Worse? This was conceived and built in the last 2 years.

And before anyone asks we've already had the discussions, heated discussions, arguments, shouting matches and everything up to but not including physical violence.

captcha 'gravis' - i.e. the state of our 'modern' green field project.

Re: A Forest of Trees

2013-01-15 08:23 • by Smug Unix User (unregistered)
Sometimes you can't see the forest for the trees. Why not merge the trees to a Tree<t> and then use control of flow to point to the correct logic?

Re: A Forest of Trees

2013-01-15 08:23 • by snoofle
399242 in reply to 399240
Tree Hugger:
...and everything up to but not including physical violence.
See, there's your problem; would you care to borrow my clue-bat?

Re: A Forest of Trees

2013-01-15 08:24 • by sisidra (unregistered)
At least your coders know what's Tree!
I'm stuck with Delphi 5 and here nobody knows such thing as Tree or HashMap, or anything beyond List...

Re: A Forest of Trees

2013-01-15 08:25 • by snoofle
399244 in reply to 399241
Smug Unix User:
Sometimes you can't see the forest for the trees. Why not merge the trees to a Tree<t> and then use control of flow to point to the correct logic?
I did. 99% of the logic went into the base class, and two subclasses with one or two overloaded methods to handle the actual special case logic.

Re: A Forest of Trees

2013-01-15 08:38 • by $$ERR:get_name_fail (unregistered)
399246 in reply to 399241
Smug Unix User:
Sometimes you can't see the forest for the trees. Why not merge the trees to a Tree<t> and then use control of flow to point to the correct logic?


Because when you would attempt that, it would take a lot of man-hours and you would introduce at least one bug due to some stupid mistake.

And then you have to explain to some non-technical manager why you wasted so much time and money on making the product work worse than it worked before.

Re: A Forest of Trees

2013-01-15 08:43 • by edgsousa
Me reading snoofle's post:
[to my inner self] Ooooh crap.
** runs to check the classpath on the target device **

I am afraid of what I'll find buried in there. Last big improvement (6 months ago) was switching to Java 1.5, after 1 year from us, devs, pushing it.

Maybe I could also start posting some wtf-y material on sidebar..

Re: A Forest of Trees

2013-01-15 08:52 • by Pista (unregistered)
399249 in reply to 399240
Tree Hugger:
Work at my place and you'll see out very own framework covering everything from MVC servlets to Logging to class loaders - needed because nothing is done in code, everything is configuration and a scripting language has been implemented using XML to piece together the sequence of events defined in the XML or the properties files. All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).

Essentially anywhere you might expect to find 'Apache' X we have our very own special way of doing things (all held together with config and XML scripts).

Worse? This was conceived and built in the last 2 years.

And before anyone asks we've already had the discussions, heated discussions, arguments, shouting matches and everything up to but not including physical violence.

captcha 'gravis' - i.e. the state of our 'modern' green field project.


Soft coding, huh?

Re: A Forest of Trees

2013-01-15 08:52 • by Smug Unix User (unregistered)
399250 in reply to 399246
Explaining yourself to management is the first mistake. Not testing code is the second. As for the time and man hours, you work on it with your other items.

Re: A Forest of Trees

2013-01-15 08:55 • by ubersoldat
399251 in reply to 399247
Well, since they're using generics, it's not some 0.1 version of Java, so you've TreeMap and friends. But hey, maybe we should reinvent the well... 18 times!!!

Oh, and not using an interface to implement the different classes should give you a sign of the level of knowledge the person behind this monster has about OOP.

And someone is getting paid to write this shit.

Re: A Forest of Trees

2013-01-15 09:01 • by Schmitter (unregistered)
How do you update your resume and find a new job when working on that crap?

Re: A Forest of Trees

2013-01-15 09:14 • by Severity One
399253 in reply to 399240
Tree Hugger:
All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).
Um... mind translating that into English?

Re: A Forest of Trees

2013-01-15 09:16 • by Antti (unregistered)
Where's the wtf? I can't see the wood for the trees.

Re: A Forest of Trees

2013-01-15 09:19 • by Charles F. (unregistered)
Solution: only ever have one class file and put everything in it.

Also everything static.

And public.

Re: A Forest of Trees

2013-01-15 09:20 • by Jo (unregistered)
Here's the German variant of a cluebat:

http://www.werbeblogger.de/wp-content/uploads/2011/07/ikea_kloppe.jpg
Translation:
Make an argument convincing (literally: Still arguing or convincing already?)
KLOPPE opinion amplifier
Solid Beechwood, untreated
length 70 cm, diameter 4 cm
EUR 9,00

There's even an instruction sheet:
http://www.the-invisible-front.de/wordpress/wp-content/uploads/2011/06/ikea_kloppe2.jpg

Captcha: praesent (German word for "gift" - fitting)

Re: A Forest of Trees

2013-01-15 09:24 • by Meep (unregistered)
Arrgh!

A neophyte: someone "new" at something

A troglodyte: a hermit; in the context of computing, it would mean a neckbeard

Leave the wholesale butchery of English to the experts.

Re: A Forest of Trees

2013-01-15 09:38 • by TGV
399260 in reply to 399258
Meep:
Arrgh!

A neophyte: someone "new" at something

A troglodyte: a hermit; in the context of computing, it would mean a neckbeard

Leave the wholesale butchery of English to the experts.

And leave the finer points of etymology to other experts: a troglodyte is meant here as "cave man", a primitive, not a hermit.

Re: A Forest of Trees

2013-01-15 09:46 • by Valczir (unregistered)
399261 in reply to 399258
Meep:
Arrgh!

A neophyte: someone "new" at something

A troglodyte: a hermit; in the context of computing, it would mean a neckbeard

Leave the wholesale butchery of English to the experts.


Pretty sure troglodytes also have a cloud of horrible stench, scales, and a long tail.

Re: A Forest of Trees

2013-01-15 09:50 • by Justsomedudette (unregistered)
399262 in reply to 399256
Jo:

There's even an instruction sheet:
http://www.the-invisible-front.de/wordpress/wp-content/uploads/2011/06/ikea_kloppe2.jpg
Ahh Scandinavian style is so sleek

Re: A Forest of Trees

2013-01-15 09:55 • by someone (unregistered)
399263 in reply to 399240
Tree Hugger:
Work at my place and you'll see out very own framework covering everything from MVC servlets to Logging to class loaders - needed because nothing is done in code, everything is configuration and a scripting language has been implemented using XML to piece together the sequence of events defined in the XML or the properties files. All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).


Sounds actually great! (no sarcasm)

I'm sure there are amazing things it can do the other frameworks can't...

Don't forget *someone* has to write all the frameworks that are there .

Perhaps you can publish a research paper about it?

Re: A Forest of Trees

2013-01-15 10:00 • by XXXXXX (unregistered)
This would have been an awesome disgruntled Bomb:
http://thedailywtf.com/Articles/The-Disgruntled-Bomb.aspx

What you need to do is have the build script randomly rename the jars at build time or deployment time, so that the classpath order is randomized...

Re: A Forest of Trees

2013-01-15 10:14 • by Verisimilidude (unregistered)
I'd say the maintainer gets left barking up the wrong tree.

Re: A Forest of Trees

2013-01-15 10:57 • by Zylon
Interesting to see a front page WTF written from the first person.

Re: A Forest of Trees

2013-01-15 10:59 • by snoofle
399268 in reply to 399267
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.

Re: A Forest of Trees

2013-01-15 11:45 • by ¯\(°_o)/¯ I DUNNO LOL (unregistered)
399271 in reply to 399267
Zylon:
Interesting to see a front page WTF written from the first person.
or: Interesting to see a Snoofle story written as a front page WTF.

Re: A Forest of Trees

2013-01-15 11:55 • by cellocgw
399272 in reply to 399268
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.


Cellocgw thinks it's only natural to talk about cellocgw in the third person. He learned it from any number of extremely egocentric overpaid athletes.

Re: A Forest of Trees

2013-01-15 12:04 • by chubertdev
This is why I love being able to have System.Object parameters. They handle everything.

Re: A Forest of Trees

2013-01-15 12:56 • by Zunesis... Again (unregistered)
399275 in reply to 399256
Jo:
Here's the German variant of a cluebat:

http://www.werbeblogger.de/wp-content/uploads/2011/07/ikea_kloppe.jpg
Translation:
Make an argument convincing (literally: Still arguing or convincing already?)
KLOPPE opinion amplifier
Solid Beechwood, untreated
length 70 cm, diameter 4 cm
EUR 9,00

There's even an instruction sheet:
http://www.the-invisible-front.de/wordpress/wp-content/uploads/2011/06/ikea_kloppe2.jpg

Captcha: praesent (German word for "gift" - fitting)
4 centimeter penis? Is that the kind of guy this tool is recommended for?
I should probably get one

Re: A Forest of Trees

2013-01-15 13:03 • by Matt Westwood
399276 in reply to 399240
Tree Hugger:
Work at my place and you'll see out very own framework covering everything from MVC servlets to Logging to class loaders - needed because nothing is done in code, everything is configuration and a scripting language has been implemented using XML to piece together the sequence of events defined in the XML or the properties files. All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).

Essentially anywhere you might expect to find 'Apache' X we have our very own special way of doing things (all held together with config and XML scripts).

Worse? This was conceived and built in the last 2 years.

And before anyone asks we've already had the discussions, heated discussions, arguments, shouting matches and everything up to but not including physical violence.

captcha 'gravis' - i.e. the state of our 'modern' green field project.


Sounds like Ant to me. Bleaugh.

Re: A Forest of Trees

2013-01-15 13:08 • by hat (unregistered)
...weren't they just doing this to avoid auto-boxing the primitive types into their corresponding object types?

Re: A Forest of Trees

2013-01-15 13:11 • by Loren Pechtel
We need a giant to beat the creator of this mess into a pulp using a Tree.

Re: A Forest of Trees

2013-01-15 13:34 • by vinnybad (unregistered)
so glad I'm not you dude. that really sucks, I'm sorry.

Re: A Forest of Trees

2013-01-15 14:52 • by Fry-kun (unregistered)

with fire:
os.kill(it, signal.SIGKILL)

Re: A Forest of Trees

2013-01-15 15:11 • by Z (unregistered)
399287 in reply to 399243
You? No, my friend, you are not stuck with Delphi 5 (may God rest it's soul). Only your benighted company is stuck in the last millennium. You still have a chance to escape the madness. Run! Run while you can! Run while the spark of employability still clings to you!

Re: A Forest of Trees

2013-01-15 15:14 • by Doodpants (unregistered)
399288 in reply to 399242
snoofle:
In particular, we have a class called Tree. More accurately, there are 18 (yes, that's e-i-g-h-t-e-e-n) Tree classes; one each for: char, byte, short, int, long, float, double, Character, Byte, Short, Integer, Long, Float, Double, String, BigInteger, BigDecimal and Object[].

No Tree class for boolean nor Boolean? Thats TRWTF.

Re: A Forest of Trees

2013-01-15 16:06 • by locallunatic
399289 in reply to 399268
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.

I was wondering if these were going to be your stories posted on the main instead of sidebar or if they would be handing you submissions.

Re: A Forest of Trees

2013-01-15 16:07 • by ahhhhh (unregistered)
refactor -> rename
solved. Any code that this breaks already is.

solved

Re: A Forest of Trees

2013-01-15 16:10 • by someone (unregistered)
399291 in reply to 399287
My program still compiles with Delphi 4!

For every class I needed to put in a list, I wrote a special list implementation just for that class...

Re: A Forest of Trees

2013-01-15 16:35 • by The Real Nagesh (unregistered)
Now all yoU need to do is get a chainsaw and take those trees to task.

Re: A Forest of Trees

2013-01-15 17:05 • by Alan APZ (unregistered)
Not sure if anyone has already mentioned this but:
"The class loader finds a Tree which by dumb luck has a matching method because of auto up-casting" is wrong. The compiler is responsible for upcasting (technically, short->int is a conversion, not a cast), the JVM will only allow exact matches (unless you are calling reflectively), so you will always get a NoSuchMethodError.

Re: A Forest of Trees

2013-01-15 18:04 • by foxyshadis (unregistered)
399294 in reply to 399240
Tree Hugger:
Work at my place and you'll see out very own framework covering everything from MVC servlets to Logging to class loaders - needed because nothing is done in code, everything is configuration and a scripting language has been implemented using XML to piece together the sequence of events defined in the XML or the properties files. All the code is is abstract terms to process each chunk of XML/config and load a class that uses other abstract terms configured elsewhere in the XML - to messaging to testing (I kid you not).


"I need to make a function!"
"I have a function that does something completely unrelated!"
"Awesome, we'll make it ultra-generic and flexible with XML!"
"Awesome!"

Re: A Forest of Trees

2013-01-15 18:38 • by Gerry (unregistered)
399295 in reply to 399243
sisidra:
At least your coders know what's Tree!
I'm stuck with Delphi 5 and here nobody knows such thing as Tree or HashMap, or anything beyond List...


When Delphi 5 was released in 1999, C# didn't even exist! (outside of MS anyway, and it was called Cool).

It sounds like you need to get a version that wasn't designed for developing Win98 and NT4 applications.

Re: A Forest of Trees

2013-01-15 18:51 • by Norman Diamond (unregistered)
399297 in reply to 399268
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.
And that, dear friends, is the reason why he talked about himself in the second person.

Re: A Forest of Trees

2013-01-15 19:44 • by snoofle
399298 in reply to 399289
locallunatic:
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.

I was wondering if these were going to be your stories posted on the main instead of sidebar or if they would be handing you submissions.
Both actually. This was just something bizarre that I happened to encounter (and had to fix) between submissions.

Re: A Forest of Trees

2013-01-15 20:03 • by John (unregistered)
399299 in reply to 399247
edgsousa:
Me reading snoofle's post:
[to my inner self] Ooooh crap.
** runs to check the classpath on the target device **

I am afraid of what I'll find buried in there. Last big improvement (6 months ago) was switching to Java 1.5, after 1 year from us, devs, pushing it.

Maybe I could also start posting some wtf-y material on sidebar..

so 18 months ago you started pushing for Java 5....you know Java 7 was just coming out then, right?

Re: A Forest of Trees

2013-01-15 20:08 • by Zylon
399300 in reply to 399268
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.

Nah, it's easy:
Bartholomew's system was written by neophite troglobytes who did'nt follow standards of any kind. They codes whatever they wanted, however they wanted, whenever they wanted, whenever they wanted. Usually via copy/paste/plagiarize. It was a dark and stormy night.

There, that's more DailyWTF'y.

Re: A Forest of Trees

2013-01-15 20:56 • by Mick (unregistered)
399301 in reply to 399261
Valczir:
Meep:
Arrgh!

A neophyte: someone "new" at something

A troglodyte: a hermit; in the context of computing, it would mean a neckbeard

Leave the wholesale butchery of English to the experts.


Pretty sure troglodytes also have a cloud of horrible stench, scales, and a long tail.
I think you might mean a trilobite

Re: A Forest of Trees

2013-01-15 20:57 • by pedant (unregistered)
399302 in reply to 399271
¯\(°_o)/¯ I DUNNO LOL:
Zylon:
Interesting to see a front page WTF written from the first person.
or: Interesting to see a Snoofle story written as a front page WTF.
and he seems to make a point of using "snoofle" rather than "Snoofle"

Re: A Forest of Trees

2013-01-15 20:58 • by Jules (unregistered)
399303 in reply to 399272
cellocgw:
snoofle:
Zylon:
Interesting to see a front page WTF written from the first person.
When it's your own story, it's kind of hard to talk about yourself in the third person...at least it is for me.


Cellocgw thinks it's only natural to talk about cellocgw in the third person. He learned it from any number of extremely egocentric overpaid athletes.
only in America.

Your "football" stars seem to be among the most egotistical in the world.
« PrevPage 1 | Page 2Next »

Add Comment