Post #266,834
9/6/06 4:09:57 PM
|

I have stared at the gates of hell.
It made my eyes water.
16,384 line C/C++ function.
|
Post #266,836
9/6/06 4:17:51 PM
|

Huge nested case statements?
|
Post #266,837
9/6/06 4:32:30 PM
|

Nope
Lots and lots of twisty if then elses doing lots and lots of intertwined pointer logic.
No reason to exist other than incompetence.
|
Post #266,845
9/6/06 5:07:01 PM
|

Oh....
Well, I suppose somebody had to finish at the bottom of the class... I've seen assembler code turned into stuff like that but not to that scale. It had to fit in much smaller eproms.
|
Post #266,841
9/6/06 4:55:39 PM
|

The Winnah!
Beats my previous record of 7120 lines...by a friggin mile
My sincerest sympathies...
jb4 "So don't pay attention to the approval ratings that say 68% of Americans disapprove of the job this man is doing. I ask you this, does that not also logically mean that 68% approve of the job he's not doing? Think about it. I haven't." — Stephen Colbert, at the White House Correspondent's Dinner 29Apr06
|
Post #266,844
9/6/06 5:04:05 PM
|

Internally developed?
Hunt down and fire the perp.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #266,856
9/6/06 6:49:49 PM
|

Kind of tough
He's my new boss and directs my day by day activities. He's also the new systems designer now that I've been judged incompetent.
Note: I've been reading "Data Structures with STL". [link|http://www.amazon.com/exec/obidos/tg/detail/-/0130289272?v=glance|http://www.amazon.co...30289272?v=glance]
Decent book. Some stupid typoes, wordos (love it when someone adds a mispelled word to the spellcheck software), and typset-softwaros though.
Done a bunch of examples, and am getting a bit more comfortable with C++.
While the Perl->C drop in productivity would be about 100 to 1, Perl->C++/STL will be about 20 to 1.
|
Post #266,859
9/6/06 7:07:30 PM
|

He's definitely not qualified
Hope you're not paying him too much.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #267,554
9/14/06 5:50:54 PM
|

C++ with STL isn't bad
but can be VERY wordy....and const can drive you crazy.
There are 2 other books, I'd recommend [link|http://www.amazon.com/C%2b%2b-Standard-Library-Tutorial-Reference/dp/0201379260/sr=1-1/qid=1158270515/ref=pd_bbs_1/102-4268238-1448904?ie=UTF8&s=books|http://www.amazon.co...4?ie=UTF8&s=books] and [link|http://www.amazon.com/STL-Tutorial-Reference-Guide-Programming/dp/0201379236/sr=1-3/qid=1158270515/ref=pd_bbs_3/102-4268238-1448904?ie=UTF8&s=books|http://www.amazon.co...4?ie=UTF8&s=books]
But, C++ with STL allows most of the data constructs that PERL allows (just not the RE and modules. <sigh>)
|
Post #267,556
9/14/06 6:20:06 PM
|

No it doesn't
But, C++ with STL allows most of the data constructs that PERL allows (just not the RE and modules. <sigh>)
Or if it did, it is so damn picky and wordy and painful to get from point A to point B it is just not worth it.
Note: Boost libs have REGEXP but it pretty much sucks. At least a dozen lines of error prone C++ code for every line of Perl code.
<sigh back>
Ahh, screw it. I'll do the best I can until something better comes along.
|
Post #267,557
9/14/06 6:30:58 PM
|

STL is insane.
What a POS. Picky, wordy, finicky... everything you don't want in a library that's supposed to make things easier to do.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #267,601
9/15/06 12:17:33 AM
|

I am rather amused
at how the C++ world has latched onto extensive use of templates to get a primitive form of duck typing - even though they insist that duck typing is dangerous and error prone.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #267,602
9/15/06 12:18:47 AM
|

Too bad it doesn't die like a duck...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #267,607
9/15/06 12:46:07 AM
|

You know they don't echo?
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #267,637
9/15/06 10:16:48 AM
|

C++ regex SUCKS!!!!!!
[link|http://www.boost.org/libs/regex/doc/|http://www.boost.org/libs/regex/doc/]
|
Post #266,846
9/6/06 5:32:07 PM
|

2^14 lines exactly?
Blimey.
Tis but a tiddler, though, compared to some of the VMS Pascal monstrosities lurking in our code.
Peter [link|http://www.no2id.net/|Don't Let The Terrorists Win] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes! [link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator]
|
Post #266,857
9/6/06 6:51:17 PM
|

yup
I suspect the compiler barfed on them. What is the max size of a gcc c++ function? Hmmm. Can't find it via Google and I'm too lazy to look hard.
|
Post #266,886
9/7/06 1:45:00 AM
|

I don't think there is a maximum defined
Of course, memory and disk constraints will impose practical limits.
Peter [link|http://www.no2id.net/|Don't Let The Terrorists Win] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes! [link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator]
|
Post #266,851
9/6/06 6:00:08 PM
|

I make do with staring at Windows. That's hell enough :)
Two out of three people wonder where the other one is.
|
Post #266,872
9/6/06 11:13:24 PM
|

Was that including comments?
"Insert crowbar. Apply force."
|
Post #266,875
9/6/06 11:29:50 PM
|

Yes
It did not include the braces.
If you want to include the braces and function name,then it is 16387.
It includes the definitions of about a dozen linked lists, the reading of dozens of files, the parsing of thousands of user defined directives in those files, and the validation of "correctness" of the relationships of the various settings.
Of course, it is usually wrong, since it codes for special cases again and again, not really understanding the total picture.
I'm sure the guy who wrote it was very proud.
|
Post #266,879
9/6/06 11:34:46 PM
|

He probably was.
Many programmers don't understand writng programmable programs aka abstracting away special cases. If I sit and contemplate this lack for too long, I get depressed.
Wade.
"Insert crowbar. Apply force."
|
Post #266,923
9/7/06 12:18:43 PM
|

Buy him the refactoring book
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #266,936
9/7/06 2:31:04 PM
|

Nope
That would imply I'm passing judgement on him. Can't have that, now can we?
|
Post #266,937
9/7/06 2:33:48 PM
|

Have it surreptitiously show up on his desk one day
jb4 "So don't pay attention to the approval ratings that say 68% of Americans disapprove of the job this man is doing. I ask you this, does that not also logically mean that 68% approve of the job he's not doing? Think about it. I haven't." — Stephen Colbert, at the White House Correspondent's Dinner 29Apr06
|
Post #266,938
9/7/06 2:40:07 PM
|

Nope
I'm the only one in the building who has seen this code and knows he wrote it.
|
Post #266,944
9/7/06 3:34:23 PM
|

Bum. Mer.
jb4 "So don't pay attention to the approval ratings that say 68% of Americans disapprove of the job this man is doing. I ask you this, does that not also logically mean that 68% approve of the job he's not doing? Think about it. I haven't." — Stephen Colbert, at the White House Correspondent's Dinner 29Apr06
|
Post #266,978
9/7/06 9:47:49 PM
|

Read it in front of him
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #266,878
9/6/06 11:33:33 PM
|

You saw Barb bend over again?
Smile, Amy
[link|http://kevan.org/brain.cgi?Amy%20Rathman|Pics of the Family]
|
Post #266,880
9/6/06 11:35:51 PM
|

Huh?
|
Post #266,881
9/6/06 11:36:50 PM
|

Wait for it! Wait for it....
Smile, Amy
[link|http://kevan.org/brain.cgi?Amy%20Rathman|Pics of the Family]
|
Post #266,928
9/7/06 12:58:53 PM
|

Still waiting...
jb4 "So don't pay attention to the approval ratings that say 68% of Americans disapprove of the job this man is doing. I ask you this, does that not also logically mean that 68% approve of the job he's not doing? Think about it. I haven't." — Stephen Colbert, at the White House Correspondent's Dinner 29Apr06
|
Post #266,940
9/7/06 3:08:39 PM
9/7/06 3:16:22 PM
|

Well, if I hafta explain, it's not going to be funny
Barry said, "I have stared at the gates of hell." the first thing I thought of was, "You saw Barb bend over again."
I thought it was funny.
I'm going to go sit in the corner now.
Bye bye.
Smile or don't. I don't give a rat's ass, Amy
[link|http://kevan.org/brain.cgi?Amy%20Rathman|Pics of the Family]
(btw, I'm not mad at you, Jay, just in a bad mood. Sorry.)

Edited by imqwerky
Sept. 7, 2006, 03:16:22 PM EDT
|
Post #266,943
9/7/06 3:32:15 PM
|

While in that corner...
...go wash your mind out with soap!
jb4 "So don't pay attention to the approval ratings that say 68% of Americans disapprove of the job this man is doing. I ask you this, does that not also logically mean that 68% approve of the job he's not doing? Think about it. I haven't." — Stephen Colbert, at the White House Correspondent's Dinner 29Apr06
|
Post #267,010
9/8/06 6:40:28 AM
|

*Snicker* I thought it was pretty funny.
|