 |

|
When it closes on your finger - sue.
|
|
|
|

|
Start spreading rumours about their inflated salaries.
Even if they're paid peanuts, the rumours will stick.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|

|
... and the corporate sauna parties.
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
It's not me that drives like an idiot it's everyone else.
|
|
|
|

|
Fight fire with fire...
Faced with a similar escalating situation over keeping the kitchen area clean, I created a poster (I really REALLY wish I had kept a copy, because it was funny)
essentially it had things like
If you don't have time to clean your own cup, just chuck it in the sink - someone else will clean it for you.
I made it look just like one of the health and safety posters.
|
|
|
|

|
Not uncommon, we have signs up in all the bathrooms showing you how to wash your hands!
Never underestimate the power of human stupidity
RAH
|
|
|
|

|
What started out as refactoring rapidly became rewriting and has now advanced to reimplementing.
I have stepped waaaaaay back on my Expression Evaluator. There was a wee bug in comparing values that showed a flaw in the way it all works. I had a small Eureka moment and found this description for an expression:
* <pre> EXPRESSION ::= ID "=" ELEMENT
| LOGICAL_OR
LOGICAL_OR ::= LOGICAL_AND "||" LOGICAL_OR
| LOGICAL_AND
LOGICAL_AND ::= COMPARE "&&" LOGICAL_AND
| COMPARE
COMPARE ::= SUM "<" SUM
| SUM "<=" SUM
| SUM "==" SUM
| SUM "!=" SUM
| SUM ">=" SUM
| SUM ">" SUM
| SUM
SUM ::= TERM "+" SUM
| TERM "-" SUM
| TERM
TERM ::= FACTOR "*" TERM
| FACTOR "/" TERM
| FACTOR
FACTOR ::= PRIMARY "^" FACTOR
| PRIMARY "%" FACTOR
| PRIMARY
PRIMARY ::= "-" ELEMENT
| "!" ELEMENT
| ELEMENT
ELEMENT ::= ID
| CONSTANT
| "(" EXPRESSION ")"
So each item is a class of it's own and I can build the hierarchy quite easily.
The first go at evaluation works well, but then comes re-factorisation pain. Most of the types have two sides so the super class takes two expressions. What I then wanted to do was process the two sides, validate them and then bring them together. I come up with a interface and it works.
Bollocks does it. It has to evaluate both sides, so I need to complicate things by deciding if it should continue after the first evaluation. I'm thinking of just making it support any number of the same type of expressions and allow it to evaluate them one after another and decide when to stop.
Re-Write City Arizona, here I come!
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
who is this Brian and why is he hurting?
(I'm full of rubbish today, ... oh dear, shouldn't have said that)
|
|
|
|

|
Nagy Vilmos wrote: SUM "<" SUM etc So this means you can't XOR comparisons (often written as a != b where a and b are comparisons), right? Because you also skip the bitwise operators. Writing a XOR the long way around is kind of tedious.
But maybe you don't need XOR, I don't know.
|
|
|
|

|
The != is in there. I'm not too sure I'll be doing the bitwise operators just yet as I have no need for them in what I am using it for.
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
It's there, but you'd have to sprinkle it with parenthesis to make it parse, because it's not "SUM '<' COMPARE" etc.
Well I guess you'd have to do that anyway, so I'm going to get some coffee and stop posting dumb things
|
|
|
|

|
You're suggesting A < B > C != D is valid. AFAIK that's blx.
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
It is. Blx that is, not valid. Told you, hadn't had my coffee yet..
I'd probably still make that parsable though, and reject it in the semantic checker, but I guess that's more of a style thing.
|
|
|
|

|
Find out that Brian and kill him.
|
|
|
|

|
I've been trying for years; one gin at a time.
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
So you're working at a snail's pace?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|

|
How very dare you!
Since getting back from the pub, I've rewritten both the And and Or classes. If I can do If as well I'll be happy.
Reality is an illusion caused by a lack of alcohol
|
|
|
|

|
Try wearing these[^] on your fingers.
The more Brians you apply to a problem, the better it goes.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|

|
Ah yes, two Brian's is better than one.
|
|
|
|

|
Nagy Vilmos wrote: Re-Write City Arizona, here I come!
Look me up when you get here.
|
|
|
|

|
For a moment there, I thought Brian was a euphemism.
Is Nagy playing with the vacuum cleaner again?
|
|
|
|

|
Nagy Vilmos wrote: Re-Write City Arizona
Was that Tony or David?
BDF
I often make very large prints from unexposed film, and every one of them turns out to be a picture of myself as I once dreamed I would be.
-- BillWoodruff
|
|
|
|

|
Who hasn't felt like this[^] at some point?
|
|
|
|

|
Reminds me of my interview at Network Solutions years ago. That's not a day I will forget in a hurry although not because of the interview.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|

|
Who was she and did you get her number?
Reality is an illusion caused by a lack of alcohol
|
|
|
|
 |