|
Marc Clifton most definitely did NOT write: enum DifferentType {
long WeInt = 1,
short creat = 2.345
}
I think I'm getting it ...
Yep, it's 7-letters, the first one's an 'S', it definitely ends in "UM" ...
(apologies to anyone who doesn't follow the CCC threads)
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
|
|
PeejayAdams wrote: I think I'm getting it ...
Yep, it's 7-letters, the first one's an 'S', it definitely ends in "UM" ...
(apologies to anyone who doesn't follow the CCC threads)
...and loving it.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
That is broken for sure - although technically not.
However, it does make me think why don't we just use a readonly, const, static, whatever, class full of values as they (sort of) show in a later example instead of an enum? ...and no casting required.
Is it really much of a performance hit, if any?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Well, that enum is just wrong.
Will that even compile?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
#realJSOP wrote: Will that even compile? therein lies the challenging part
Message Signature
(Click to edit ->)
|
|
|
|
|
#realJSOP wrote: Will that even compile?
Hell no. Not now, not in 2016 when that post was written.
|
|
|
|
|
By unhappy coincidence, I've just finished writing a section for a style guide that tells people never to say that something is difficult, challenging, complicated, etc. -- because, if you do, people will believe it, and it will become a self-fulfilling prophecy.
Marc Clifton most certainly did not write:
enum DifferentType {
long WeInt = 1,
short creat = 2.345} Well, at least they've proven that they can count up to five -- but not much else.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
This is the side effect of "You must use enums for comparisons so that the code is maintainable." code review comments.
|
|
|
|
|
I hate this kind of dogmatic crap.
What the hell is wrong with a define, in upper case for comparisons?
|
|
|
|
|
It's easy. Unless you're doing it wrong, in which case it's challenging.
|
|
|
|
|
Wow...
and with a slogan of "Take your skills to the next level" I'm just wondering what level they speak of?
Technician
1. A person that fixes stuff you can't.
2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge.
JaxCoder.com
|
|
|
|
|
I think they're talking about level 4 (by Dante's reckoning).
|
|
|
|
|
|
OMG, code in the Lounge, will the un go dark next?
Isn't Ord(MyEnumVar) easier?
|
|
|
|
|
In August I will be in London / Bath / Cardiff and I'm trying to book a date for A Midsummer Night's Dream.
Well, they have a site that seem made in the early 2000s, with a non functional payment section (maybe it works only for the UK Maestro cards because with my Mastercard it simply shows a blank space after I click on pay).
Truied with all the browsers on different days, nada. No PayPal option. Send an e-mail to support: they booked the seats for me (I told them the seats and date in the e-mail) I just have to phone to pay. International phone call, ugh, ok no problem... the number they gave me is inactive, and it's the same advertised on their site. [this was a problem on my side, I had to mangle the number to make the call from abroad]
I'm not sure if I am a (wannabe) spectator of a show or the unwitting actor of a comedy.
GCS d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
modified 22-Jul-19 10:23am.
|
|
|
|
|
if the sites looks that old perhaps ie 5, or mosaic netscape 3 will work?
(just don't expect any secure/https connections or encryption of your credit card details.)
Message Signature
(Click to edit ->)
|
|
|
|
|
I'm fairly sure it's a validation problem, it has two fields required for UK cards that don't exist for other cards.
Well, phoning in worked, except that I had to ask to slow down because street british accent is "oufol".
GCS d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: street british accent is "oufol". Same as most languages if you are not a native speaker. But chances are the person you were speaking to was not either. Most help lines in Britain these days are manned by foreigners.
|
|
|
|
|
|
den2k88 wrote: Judging by the accent he was a local descended from the first conquerors in 1061 So either Danish or French.
|
|
|
|
|
Good luck following Shakespeare then
|
|
|
|
|
Not a big problem, I already followed Richard II in 2013 and I didn't find it excessively difficult. I've been more exposed to Shakespearian english than London street english.
Also the new productions tend to go easy on the ancient english, only the traditional plays maintain it in all its splendour and difficulty.
GCS d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: Well, they have a site that seem made in the early 2000s It's Shakespeare; late 1500s.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I've noticed in the past few years that most advertised C++ jobs are in the Linux ecosystem. Apart from legacy applications what new work is being done specifically in the Microsoft ecosystem?
Kevin
|
|
|
|
|
Well, Microsoft itself is always looking for C++ developers.
Apart from that - mostly games and low-level system development.
|
|
|
|