|
The postman allways rings twice
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Carry On Matron
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
In that case, I would have thought "Carry On Nurse"[^]
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Okay, it has to be said.
Paris does anyone.
Mongo: Mongo only pawn... in game of life.
|
|
|
|
|
You may notice a certain gen'mum of the Welsh persuasion is missing presumed fed.
I reckon, like the rest of Wales, @OriginalGriff is still drunk!
veni bibi saltavi
|
|
|
|
|
Nope - I hardly drink these days - and I've been in and out here since 05:00!
I'm trying to get a whole bunch of other stuff done this week, is all.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Light weight!
I phoned the Ma this morning to discuss last night, but she's "taken the day off";despite retiring nearly 20 years ago!
veni bibi saltavi
|
|
|
|
|
Of course I'm a lightweight!
Mind you, I gained a bit when I gave up smoking, and I'm still carrying that...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: I hardly drink these days Way better than softly drinking in my opinion.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
It was at its peak around 0315am UK time so meant getting up early, but was totally worth it. A relly spectacular sight
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|
|
We had too much cloud cover where I live, so I didn't get to see it.
Jeremy Falcon
|
|
|
|
|
Yes, I saw it and it was very impressive. Having been thwarted by cloud for our last two major solar eclipses (by only a matter of minutes for the latest), I was determined to see this lunar one.
Interestingly, my camera was really struggling to see it once it had turned red.
|
|
|
|
|
So you'd say it really put other eclipses in the shade then?
|
|
|
|
|
|
They're awesome. Misused, but awesome.
|
|
|
|
|
I'm not sure if they're considered "poor style", but C/C++ macros are very powerful. I've worked on projects where they were used to essentially provide a DSL. That was many years ago, but I have fond memories of the C preprocessor and C++ templates (the 'real' thing). Still miss both in Java/C#.
|
|
|
|
|
In fact Macros are really powerful tool. It is one of the best way by which one can talk to the underlying compiler and by which the compiler can talk to you. Yes compiler can talk to you by the means of Predefined Macros.
If we look at the "Preprocessor Definitions" of Visual Studio editor of a C++ project, there are a lots of things configured which can be done otherwise using #define macros.
Following are some of the application areas of macros.
1. Platform based API declarations. Platform can be different Operating Systems, it can be 32 bit or 64 bit.
2. Generation of conditional code.
3. Switching between UNICODE and Multi-byte.
4. Prevention of multiple times inclusion of header files. Achieved using #ifndef,#define,#endif.
5. API generation when used in conjunction with template meta programming.
|
|
|
|
|
I always thought macros were the function-like things, the rest being preprocessor definitions. Apparently everything substituted by the preprocessor is called a macro. https://gcc.gnu.org/onlinedocs/cpp/Macros.html[^]
I personally dislike function-like macros, except for the really simple ones like min and max. They are a real horror to debug.
|
|
|
|
|
Poor style? Macros are extremely powerful and used in the right way are faster and can be more useful than templates, classes and functions.
Using defines for constants - that's poor style and should be avoided if possible. Const and enums are scoped and reduce namespace pollution - other than misuse of similarly named constants (MAX_CHARS is a perfect name for a lot of max chars things, in different classes may have diffwerent meaning and values. If it is a scoped const you avoid potential deadly pitfalls).
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
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
"When you have eliminated the JavaScript, whatever remains must be an empty page." -- Mike Hankey
|
|
|
|
|
To wear out the motorbike tyres in less than a hour is poor riding style, still in motoGP...
|
|
|
|
|
Well so what? They don't have to use "Good Style", whatever that is.
|
|
|
|
|
swampwiz wrote: I have always been told that the macro in C/C++ is considered to be poor style Beware absolutes. They are never right.
|
|
|
|
|
Pete O'Hanlon wrote: Beware absolutes. They are never right.
What, never?! Yes, never!
What, never?! Well... hardly ever.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Like most things, they only become poor style when abused / misused.
Jeremy Falcon
|
|
|
|
|
Are your streets full of pedestrian iZombies ? [^]
"By now, everyone knows that talking or texting while driving can get you killed. But the fact that 3,154 people died and an estimated 424,000 were hurt in 2013 is evidence that a great many people are willing to ignore the advice to keep their attention on the road."
"Some data suggests that at any given moment on the streets of America, 60 percent of pedestrians are distracted while walking, meaning either on the phone or doing something on their phone," said Alan S. Hilibrand of the American Academy of Orthopaedic Surgeons. "It’s a bit of a startling number."" I live in one of the smallest nations in the world to be in the top five for the highest vehicle death/accident rates, but that was happening with the advent of mobile-phone usage becoming the national blood-sport.
Since, so often, the words "public sidewalk" are an oxymoron here for death-trap, and "walking" is not a modal cultural pastime here, I don't encounter that many pedestrian zombies except once in a while in the tourist zones, and most of the tourists are dazed anyway (that's what they come to Amazing Thailand for). As happens elsewhere, some tourists lost in the raptures of selfie-snapping come to bloody grief.
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
modified 27-Sep-15 23:38pm.
|
|
|
|