|
Quote: "Recycle" only works on the Dalai Lama Are you sure? Rats!
|
|
|
|
|
I'm told it works like this:
Quote:
ON ILKLA MOOR BAHT'AT
(Traditional English - Yorkshire)
Wheear 'as ta bin sin ah saw thee,
On Ilkla Moor baht 'at?!
Wheear 'as ta bin sin ah saw thee?
On Ilkla Moor baht 'at?!
On Ilkla Moor baht 'at?!
Tha's been a cooartin' Mary Jane
On Ilkla Moor baht 'at
Tha's been a cooartin' Mary Jane|
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Tha's bahn t'catch thi deeath o'cowd
On Ilkla Moor baht 'at
Tha's bahn t'catch thi deeath o'cowd
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Then we shall ha' to bury thee
On Ilkla Moor baht 'at
Then we shall ha' to bury thee
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Then t'worms 'll cum and eat thee oop
On Ilkla Moor baht 'at
Then t'worms 'll cum and eat thee oop
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Then ducks 'll cum and eat oop t'worms
On Ilkla Moor baht 'at
Then ducks 'll cum and eat oop t'worms
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Then we shall go an' ate oop ducks
On Ilkla Moor baht 'at
Then we shall go an' ate oop ducks
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Then we shall all 'ave etten thee
On Ilkla Moor baht 'at
Then we shall all 'ave etten thee
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
That's wheer we get us oahn back
On Ilkla Moor baht 'at
That's wheer we get us oahn back
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
On Ilkla Moor baht 'at
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
modified 25-Dec-19 10:47am.
|
|
|
|
|
Now you've done gone and scared me!
|
|
|
|
|
That's "Standard Yorkshire" - and pretty much incomprehensible unless you grew up on a diet of mushy peas, black pudding, and Whippet sandwiches. Yorkshiremen are forbidden from teaching Standard Yorkshire to mere mortals, on pain of permanent exile to Lancashire and a lifetime ban from drinking tea.
In English that would be:
Where have you been since I saw you, I saw you?
On Ilkley Moor without a hat
Where have you been since I saw you, I saw you?
Where have you been since I saw you?
On Ilkley Moor without a hat
On Ilkley Moor without a hat
On Ilkley Moor without a hat
You've been courting Mary Jane
You're bound to catch your death of cold
Then we will have to bury you
Then the worms will come and eat you up
Then the ducks will come and eat up the worms
Then we will go and eat up the ducks
Then we will all have eaten you
That's where we get our own back
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Thanks for translating, but I did get some of it!
|
|
|
|
|
OriginalGriff wrote: the inner foam was missing - presumed blown to pieces
Don't worry. Those pieces have found permanent residence in your inner ear canal.
|
|
|
|
|
Eh? What? Pardon - you'll have to type UP A BIT, I'm going a little mutton.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Is that a BYTE of mutton?
|
|
|
|
|
Only if it has some mint sauce with it.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Makes me wonder if I should renovate my old AKG K260 headphones?
|
|
|
|
|
Looks like you can still find parts for 'em on FleaBay!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Harrumph - lucky you is all I can say.
Back in the late eighties I was working in Bahrein, and had to make a trip over the causeway to Al Khobar, where I happened upon a HiFi shop that sold me a set of Stax electrostatic 'Ear speakers' - much too posh to be just headphones. They cost around five hundred bucks, which I thought pretty good back then.
Move on thirty plus years, and I decided that as the power supply was dodgy, and the volume control a bit hit and miss, I would replace them. Off to Amazon I go, and then went into serious cardiac arrhythmia. Three and half thousand ing quid!
Needless to say, the soldering iron was wheeled out and a massive amount of TLC applied. The volume control is now external, as the original was part of the circuit board, and the power supply replaced and directly soldered to the board as the socket had cracked away from it.
MrsLadyWife is not overly enamoured with the four piece combo (headphones, power supply, amplifier and volume control) and a four metre cable littering 'her' drawing room, but the complaints lessen considerably when I mutter about spending £3.5k on a replacement.
The problem really stems from her liking to watch television of an evening, whereas I much prefer to read and listen to the great groups of yesteryear, like Mo's Art, Jo's off hidin' and Beat Oven.
|
|
|
|
|
OriginalGriff wrote: Repair, reuse, recycle ... you know it's worth it. Most companies are spending resources on preventing that
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.
|
|
|
|
|
|
It is appreciated
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
I have never been lonely except when I've been surrounded by people
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Isn't that the worst kind of loneliness?
|
|
|
|
|
So many lonely people, in an overpopulated world.
Your own choice. It doesn't take much to reach out.
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.
|
|
|
|
|
Quote: It doesn't take much to reach out.
Now why would I want to do that?
|
|
|
|
|
|
Frequently when I generate code, I require a LOT of state. This, I've found, is the nature of code generation. You just have to keep track of sometimes over a dozen things at once.
I also tend to find that it lends itself to procedural style coding, rather than OO coding - not the generated code mind you, but the process of generating it.
The problem is, this results in an anti-pattern wherein I'm constantly passing at least 6 parameters per method.
Now, I could keep state in a struct and pass that around but the trouble is, those 6 (or more) different parameters - what they are - varies wildly depending on what I'm calling.
Again, the problem is the amount and variation of state I must work with at any given time.
Creating a bunch of types (classes or structs) just to hold it increases maintenance.
I don't have much of a problem reading the code. It's just the pattern crops up and I don't like it.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Have you tried the obvious?
Have one "state" class that aggregates the entire state for the current parsing tree. Each method gets a pointer to this state, and extracts (or modifies) the necessary stuff from (in) it.
Admittedly, this is one level up from putting everything in global variables ( ), but if your state is used globally, it should be available globally.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
unfortunately a lot of it is not used globally, but manufactured inside loop bodies which then delegate to methods.
I could store whole arrays in there, but i've already processed that information, and I'd need to just process it again, so that's code in two places.
I do actually use the pattern you talk about elsewhere in my project, to good effect. I just don't think it will be effective here. That's not to knock your suggestion in general. Just you haven't seen this code, so you're flying blind as it were in this case.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
It's hard to answer this without looking at your code, and I haven't used C# and the other things that you write about.
I also don't know what you mean by procedural vs OO. OO still has procedures, but ideally they're small, with many being private or protected. If you're saying that your code looks more like a C free-for-all than C++, my guess is that you haven't yet found a division of responsibilities that yields good encapsulation. And it might just be that there isn't one.
I also don't know what the "input" to your code generator is. When I parse C++ to do static analysis, I also "execute" it using operand and operator stacks, which can emit a sort of stack machine pseudo-code to verify that the code was properly understood. My guess is that it wouldn't be difficult, although lots of work, to turn this into (inefficient) machine code. But this isn't at the same level of abstraction as generating class definitions, like you are.
You say that you can read your code easily, so it doesn't much matter if you think you'd still be able to pick it up again, with modest effort, in a year. If this is the first time you're doing code generation, be patient. Soon you'll probably have an epiphany about how it should be structured, presenting you with the painful choice between leaving it alone and doing a big refactoring!
|
|
|
|