|
Hard to believe. But, yes, I believe it.
|
|
|
|
|
Asumming this is actually compiled using the Visual C++ compiler I think I get boolean and NULL stuff, but what's the ERROR definition for in Windows - does this break the #error directive or something crazy like that?
|
|
|
|
|
This is compiled using the C++ compiler from the Windows SDK. The O(0) moron refused to use Visual Studio. The whole fetid mess is glued together using a make file and a page of command line operations.Dar Brett wrote: I think I get boolean and NULL stuff
TRUE and FALSE have been in windows.h for eons, as well as their 'type' BOOL , which O(0) didn't use. He used int 's. The code also assumes in a lot of places that FALSE == 0 and TRUE == 1 by using the actual constants rather than the #define 's.Dar Brett wrote: ERROR definition for in Windows - does this break the #error directive Windows defines ERROR as 0. It doesn't break #error , which is a compiler directive. It does break understanding return values from certain Windows API functions, mainly GDI. Fortunately this app is more or less a service, and there was no UI involved.
Software Zen: delete this;
|
|
|
|
|
Gotcha, I wasn't far off with the BOOL stuff.
Not that I'd change it, but isn't it weird that ERROR == ERROR_SUCCESS ?
|
|
|
|
|
The ERROR value was used as a return from some GDI functions. ERROR_SUCCESS is a far more general Windows API return value.
Software Zen: delete this;
|
|
|
|
|
Quote: The O(0) moron refused to use Visual Studio.
Sounds similar to a guy at a company that I used to work for. He did use Visual Studio, but he was "too good" to use the debugger, preferring to output values to a file to do testing. He also liked to keep his variable names <= 3 letters long to "save time".
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
BillW33 wrote: he was "too good" to use the debugger, preferring to output values to a file to do testing This software includes a 'built-in' debugger, which is basically a home-grown command-line assembler/disassembler.
This is for debugging code written mostly in C. The makefile that builds this crap sets compile options to generate assembly language source files to aid in the debugging.
Software Zen: delete this;
|
|
|
|
|
Aww cr@p, I met these kind of "people"... and I'm currently maintaining their "work".
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Gary Wheeler wrote: zero-order asshat
That is probably the best quote I've seen in awhile
|
|
|
|
|
:bows:
Thank you, thank you! I'm here all week. Try the veal, it's to die for!
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: Try the veal, it's to die for!
Is it ... veally good?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I think it meats and exceeds people's expectations.
|
|
|
|
|
It looks similar to the code I have to maintain. My gods...
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
You have my most profound sympathies. Maybe we should start our own support group.
Oh wait.
That's what this forum is...
Software Zen: delete this;
|
|
|
|
|
a = cx.ExecuteQuery<string>("select top (1) a from foo where id={0}", id).First();
b = cx.ExecuteQuery<string>("select top (1) b from foo where id={0}", id).First();
c = cx.ExecuteQuery<decimal>("select top (1) c from foo where id={0}", id).First();
... and about 20 more of those, yes, each effectively querying a scalar from foo with the same qualifier.
Major redaction in the above, but you get the idea.
So many things wrong about this. And people here wonder why the performance of nightly jobs is so bad.
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
(Probably) Paid by lines of code
|
|
|
|
|
|
|
Relaxing, that's just what Marc needs
|
|
|
|
|
Adamski actually met that guy he was cool
|
|
|
|
|
Haven't heard much of him after his hit with "Killer", I wonder what has become of him ...
|
|
|
|
|
RickZeeland wrote: Listen to this and you will feel better: Adamski & Seal -
Restricted at work. It'll have to wait until I get home.
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
That's why we're expensive
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
The whole code I'm working on right now is like that but worse.
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Subject: Must....not....kill....
you can always claim self-defense.
|
|
|
|