|
|
I do that often enough, and I don't like it, but it's necessary.
I often use have a method that verifies that the DB and enum match. Better than nothing, especially while developing, and the enum can change. If I don't do that, I put in a SCREAMING COMMENT that the enum and DB lookup table must match.
Marc
|
|
|
|
|
No, but you're looking at it backward.
You should have such a table in your database, so you can have referential integrity and such.
Then you may define an enumerated type that matches it, to serve the same function in your code.
Having a technique to generate that enumerated type from the database (before or at compile time) is a rather simple task.
I did it my way:
GenOmatic[^]
|
|
|
|
|
Hi All,
So we have Brexeted but I have the feeling this is not done by a long shot because Scotland that has an elected body both came down on the stay side. Now the important WTF am I doing I type a couple of nicely worded Emails and sent them to the opposite companies so ' Dear Company A' was sent to company B and 'Dear Company B' was sent to company A!
|
|
|
|
|
Maybe, just maybe, you should take a little break from the pub?
|
|
|
|
|
glennPattonInThePUB wrote: Scotland and Wales that have elected bodies both came down on the stay side. The results I saw showed that Scotland and Northern Ireland voted Remain, but Wales voted Leave.
|
|
|
|
|
Yup, I have no idea what I am typing today Wales is a leaver, Northern Ireland stoopid!
|
|
|
|
|
glennPattonInThePUB wrote: Scotland that has an elected body both came down on the stay side
Scot and Land are two countries?
|
|
|
|
|
I need to start drinking earlier!
|
|
|
|
|
You could argue that certainly. I've often wondered whether an independent Scotland would result in a campaign for independent Gaelland and Scotland before long.
I am not a number. I am a ... no, wait!
|
|
|
|
|
I wouldn't worry. a) they probably won't read your email and b) if they do, they probably won't notice.
Marc
|
|
|
|
|
Considering the events of last night in the UK
Racing one around could be blissful ? (9)
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Ignorance - love the hint - very, very apt!
|
|
|
|
|
Thank you - you are up on Monday - I tried to compile one for Black Friday but could only come up with pathetically easy anagrams.
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Boycott Crusoe's man for a bad day at the market (5,6)?
|
|
|
|
|
Black Friday.. too easy
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Sounds like a dark day for Scottish food markets?
"Black Fry Day?"
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
V good but I was trying to involve the events of yesterday - try again
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
pkfox wrote: V good but I was trying to involve the events of yesterday - try again
Fair point, how about:
Boycott Crusoe's man for the inevitable consequences of Nigel's nonsense (5,6)?
|
|
|
|
|
Back in the '90s he was the but of all jokes on 'Have I Got News For You', a very popular British political satire game show, and now it looks like he is going to get the party leadership.
If anyone it should have been Farage, shame the rest of his 'party' is a a complete joke!
|
|
|
|
|
Boris has 3 months to drop out of favour, I'm sure he will.
|
|
|
|
|
Butt even
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
No - it will almost certainly be Gove...and the split in the Tory party that this was all meant to fix will still be there...but that is a soapboxable thought.
|
|
|
|
|
I'm sure Osborne will throw his hat in the ring as well.
But...I wouldn't write off Boris. I suspect he works very hard at playing the fool...and that he is a lot brighter than he appears. I also suspect he'd probably make a very, very good PM simply because he seems like a total idiot, while all the recent ones have actually been idiots!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
People seem to forget that Boris, while appearing to play the fool, was politically at the farthest right end of the tories. Without European rules to prevent him from doing unspeakable things to the country, and with a working majority, how long do you think it will be before he starts undoing a lot of the good legislation that is in place? You know, those regulations that protect workers and consumers rights?
This space for rent
|
|
|
|