|
That's nothing! We lived for three months in a brown paper bag in a septic tank...
Python references aside, I think I can top that. I've actually seen a *system* where they did something about as clever: One program generated contracts from document templates and some data. The resulting doc was then turned into a TIFF image by automating Word, server-side, and print it using a TIFF printer driver. This image file was then run through OCR logic to extract from the document the data that you originally started with in order to generate the document.
The reason for this wonderful design? Everything else that was to happen whenever a contract was entered into was tightly coupled to a scanning solution from a time when all contracts were received physically by snail-mail and scanned in order to be processed by computer. The scanning solution wasn't actually very old, but the people who owned it had more influence than the people owning documents.
It's amazing what convoluted silliness can survive out there in the wild. And that, in part, is why I can believe Elon Musk when he says it's perfectly possible to build a transportation system that costs 1/10th of a bullet train to set up, is safe, runs on solar, and about twice as fast as an airplane...
Of course, our industry still easily gets the top spot for wasteful idiocy. Taking a few bytes of character data and turning it into a TIFF image of millions of bytes most of which are not even related to the data of interest, then doing OCR to get (most of) the data back again (most of the time) is surely serveral million times more complicated, and several million times more work, than almost any straightforward mechanism.
Maybe there is hope for the future. If we can be this crazy in software, who's to say existing transport systems, or energy useage in general, isn't simply the result of narrow thinking and attempts to improve what already exists? By starting with a clean sheet, it may well be possible to do radically better in a lot of areas.
|
|
|
|
|
|
I can't view TinyPic links at the office, so it'll have to wait a few hours. In the meantime, here's[^] an example of how it looks.
|
|
|
|
|
I have made a similar picture and uploaded to TinyPic. I have snipped the picture of this thread in IE11 on Windows 8.1 running in VirtualBox with the W8.1 Snipping Tool and snipped again with the Snipping Tool of the W7 host
|
|
|
|
|
I took the lazier option: Snip the thread and Alt+PrintScreen the window that shows up.
|
|
|
|
|
I've received a screen capture of Microsoft Paint displaying a screen capture .
Software Zen: delete this;
|
|
|
|
|
I have seen one where that goes 6 levels deep.
brisingr_aerowing@Gryphon-PC $ rake in_the_dough
Raking in the dough
brisingr_aerowing@Gryphon-PC $ make lots_of_money
Making lots_of_money
|
|
|
|
|
...they should implement new touch method;
Faceplant.
When its too much for a facepalm that you just smash your face at it, it would immediately run a sophisticated application which would find out the reason of the daily horror youre facing and type properly aggravated post with delicate use of profanities as a reply to whichever forum or system it is.
It would evolve humankind greatly forward in quick fashion, and leave all normal display users jealous of those touch screen device users.
|
|
|
|
|
Optional responses:
Siri: While the sentiment is appreciated, I don't have lips to likewise respond in kind. Besides, your breathe reaks.
Siri: OK! OK!! I'll show you a list of local stores that have breath mints, already!!
Siri:
|
|
|
|
|
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];
Most of the cases are keeping around 4 - 10 max points.
And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
|
|
|
|
|
So I guess 50 is rather.... (puts on sunglasses).... pointless.
brisingr_aerowing@Gryphon-PC $ rake in_the_dough
Raking in the dough
brisingr_aerowing@Gryphon-PC $ make lots_of_money
Making lots_of_money
|
|
|
|
|
and... (puts on a black hat)... derivative.
tee hee
Greetings - Jacek
|
|
|
|
|
Unused memory is a wasted memory, they said
CPoint m_points[50];
It will be fast, they said.
Greetings - Jacek
|
|
|
|
|
50? Wait a sec.. A yes, 5 more years and I am there (Didn't think I was so old..)
The signature is in building process.. Please wait...
|
|
|
|
|
The project history stated its there since 2007 at least. I guess then they added the cvs system. The problem is that noone noticed this problem for 6 years :X
|
|
|
|
|
Can happen. Sometimes it makes sense to put a fixed array
example:
int[] iMonths = new int[11];
Assuming it is 0 based..
The signature is in building process.. Please wait...
|
|
|
|
|
vonb wrote: int[] iMonths = new int[11];
I hope that was a joke, or a typo!
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
if it's Zero based or not - the Count of elements you give should be 12 - or are you using a "Special" calendar?
|
|
|
|
|
I put away the month of August of course (usually holidays...) so 11. In case of salary should be 13. We have a 13th salary here.
The signature is in building process.. Please wait...
|
|
|
|
|
The programmer has exactly 50 days left on his/her contract. Out door and wait for the frantic "It's broken call... please come fix it at 3x your previous rate!!!"
Just a guess. We had a bug tracking system written some time ago that had a primary record holder delared something like
DefectRecord Records[50];
Because he/she never thought anyone would have more than 50 defects to see at one time on a report. Guess they never ran into a project like the one I'm currently on.
|
|
|
|
|
|
Lol
Previous -> Read "CLR via C#" by Jeffrey Ritcher.
Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder.
Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.
|
|
|
|
|
Does this really belong to this forum? I would put it to SoapBox.. Not sure so.
The signature is in building process.. Please wait...
|
|
|
|
|
I think this is the correct forum - it seems to be CodeProject's equivalent to TheDailyWTF. The Soapbox seems to be mainly for terrible jokes and insane rants.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I wrote this because it seems that here there are mostly developers who are publishing their owns / collegues super good or super bad code.
The signature is in building process.. Please wait...
|
|
|
|