- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Is it a planar graph? This reminds me of the excellent game at: http://www.planarity.net/ - rearrange the dots to get into a circle. Oh, the hours one could waste disentangling things like this.
Admin
A graph is planar iff it doesn't (transitively) contain an instance of K5 (the complete graph of 5 vertices) or K3,3 (the familiar graph with three houses and three utility companies). I would expect that very few projects, let alone complex ones, have planar dependency graphs.
Admin
Hey - are we sure that the Death Star was destroyed by a rebel attack squadron - or was it an off-by-one error in IEDeathStarStormTrooperClassFactoryKillKillKill?
"Luke, this is the Death Star's code dependency diagram!"
"Nooooooooooooooooo!"
Admin
Duh. It would be a fun requirement though. Then again if we required that for home construction we couldn't have phone, electricity and water.
Admin
"But Captain why would you"; "Because I can Spock"
Admin
I'll have to ring you back on that one...
Admin
There's a small thermal exhaust dependency, right below the main class. The target area is only 4 lines long. A precise hit will start a chain reaction that should segfault the system. The code is wrapped in try { }, so you'll have to use proton torpedoes.
DaveE
Admin
Davee123's comment is the funniest comment so far, but quoting it makes Akismet accuse me of being a spammer.
Addendum (2011-03-08 08:03):
+10, best comment of the day!
Admin
If you can export the graph info, I'd recommend a good diagramming program: http://www.yworks.com/en/products_yed_applicationfeatures.html
Admin
Admin
Must be the source code of Kirby's Epic Yarn.
Admin
Testing if a computer will go into an infinite loop is fairly trivial is the memory of the computer is limited (like it is for all normal computers) and the input data is of limited length and known in advance.
However for this to be a practival approach the memory and the input data must be a limited to only a handful of bytes, or the program may run very, very, very long.
CAPTCHA: erat - A rodent that was created in the marketing department of a Web1.0 company.
Admin
I've been on this site for several years and this is the first time I ever actually stared, wide-eyed and terrified, and audibly spoke the words, "WTF!?"
Admin
You're looking at the installation package dependency graph for it.
Admin
Sure. You need something called an "intern."
Admin
No, this is abstract art. It belongs next to that brown smear in Munich.
Admin
This probably would be a mess no matter what visualization you used, but it's a little unclear that X-Ray ever produces nice visualizations in the circle layout. http://xray.inf.usi.ch/xray.php#classDependencyViewXray.png certainly doesn't look much better than this example, and without a nice-looking example, the jury is out on whether even a beautifully layered system would look nice viewed this way....
Admin
It is not the death star -- this is what happens when you try to add the iGenesisTorpedo interface onto one of your core classes.
Admin
Is there some tool you can run to produce this? I am not familiar with it. I can try and do the same on some of our apps.
On our database we have purposely (client request) not maintained any foren key relationships. Make it easier to insert data and also all those peskey errors gone.
Admin
It looks like blood...
Admin
If you think that's bad, what about an enterprise application where the dependencies are hidden in various cron jobs, procmail recipes, shell scripts, Perl scripts, PHP scripts, and Java programs, none of which reference each other but all of which depend on the others to run at specific times for specific intervals. I doubt there's a code analyzer alive that could represent this mess visually.
Admin
The little blue box that was drawn to represent what area was zoomed in on is not accurate. The box should be twice as big, and moved up and to the left a little to accurately represent the area zoomed in on.
Admin
That's kind of like only using scripting languages so you can avoid all those pesky compiler errors.
Admin
I'm in a similar situation where none of the tables have relationships, have about 6 different naming conventions, and about 1/3 isn't being used anymore, maybe (and I'll let you guess which tables those are). Oh, and I'll make the code so archaic in design (if you can call it that), that it makes you want to beat the original developer with a book on programming. Oh, and the most funnest part, about 60% of the database access is done via string contatenation. Oh, oh oh, AND formatting is done at the DB-access level, meaning that calling the data access classes returns you formatted HTML...
Don't worry guys, I've already started compiling a list of [s]fecal[s/] code samples for submission soon. I just want a few more, and to anonymize it.
Here's a taste: a "User" object, traditiionally stored in session, actually exists as a public static variable in some base class. It's used as a session object for the currently logged in user...
Oh, and if it wasn't obvious, it's a web application (ASP.NET).
/rant
Admin
That is not where you are, that is where you NOT want to be... Just like where every other arrow in there is pointing, you do not want to be there..
Admin
If it not broke, why fix it? It works and serving client purposes every day. I am not in favour of one over other. Foren key or no foren key doesn't matter to me. For record, I inherit maintenence work on application; did not create it.
Admin
Sometime we inherit such things.
Admin
LMFTFY:
A graph is planar iff it does not contain a subgraph that is homeomorphic to K_5 or K_{3,3}...
Admin
Yall are chicken s h i t. Its called job security yo.
capcha: genitus- (add perverted joke here)
Admin
Wait...Do you guys think Nagesh is a real person?
Admin
Would be interesting to see what this software would output when given Magento. That app's a abstracted class nightmare|!
Admin
Gosh, this sounds an awful lot like my handiwork. Glad to see it's still being worked on. The production database wouldn't be called sitdev2 would it?
Admin
Admin
Why do you think I am not real? I am more realer than you, unregistred clown.
Akismet, stop clowning around!!! Akismet is devil.
Admin
Why don't you allow foreign relationships in your database? Are you some kind of xenophobe?
Admin
(Deadline > Data Integrity)!
Admin
I have six different phobias and fear of foren devil is not amongst them.
Admin
If you want to post unregistered, at least stop pretend to be girl.
Admin
Admin
I wish I could attribute this pile of madness to you, or to just one person... Unfortunately this is the result of many people, all of whome have a very tenuous grasp on OOP, C#, and probably standing upright too. This is bad design, on top of terrible understanding, on top of band-aid, on top of misunderstanding, with a cherry on top.
I mean, here is a paraphrased line of code:
Now, if the above doesn't just scream "I don't know what the hell I'm doing", then I don't know what does...
Admin
This ^^
Admin
Admin
Anyone know of a good && free tool for C# for generating such diagrams?
Admin
Admin
That POS dependency has Nagesh written all over it.
Admin
Admin
Looks like a rubber band ball.
Admin
AGREED SOMEWHAT. That's why Nagesh not make equal to 200 K US Dollars per year like boog.
Admin
Wow real clever use of the apostrophy mark.
Admin