http://defyallchallenges.com/
jergosh
@jergosh
Best posts made by jergosh
Latest posts made by jergosh
-
What might be 'scoreboarding'?
I was recently asked by a friend of mine who is a translator to explain what is 'scoreboarding,' as she is about to translate some sort of EU meeting on that subject. Quick google/wiki search reveals that apparently it's a scheduling algorithm invented for a mainframe dating back to 1964 and I can't think of any wider context to that, or reason why a EU working group would discuss it. My best guess so far is that the word has another meaning which I am unable to find. Could anyone familiar with the term provide me with some more info?
TIA.
Greg
-
RE: C++ - what's the default method of opening a file passed to main via *argv[]?
Do have a look at getopt() (it's POSIX C I think). There are also versions for cpp (http://www.math.utah.edu/docs/info/libg++_39.html) and some more fancy versions implemented as classes ( http://ulisse.elettra.trieste.it/services/doc/libg++/libg++.html#SEC83 )
HTH,
Greg
-
RE: A Newbie Coding
As a person who is in contact with a huge number of people were introduced to programming in C, I'd discourage you from starting with low-levelish languages. The technical details connected with the computer architecture are often confusing, it's easy to make a mistake with which the compiler won't help you at all and you're likely to be very frustrated by hunting elusive bugs. I think you'll be best off starting with Python. You'll be able to concentrate on the concept you're trying to implement without worrying about technicalities. It's syntax encourages clarity and brevity which are foundations of good style. It also has a very universal but not overwhelmingly large standard library. From what I'm told, Ruby is similar in idea. I believe MIT uses Scheme for it's introductory courses which is quite a recommendation. Stay away from Java unless you hope to find work as a programmer. Pascal is plain stupid.
-
RE: "OO" WTF
How about a reference/pointer to it? Perhaps the compiler thinks it's smarter then the programmer and returning an object would be less efficient? Just a wild stab in the dark.
-
RE: How Not to Get Laid.
A friend of mine sent me a link to this site, and I thought it'd be good to share here. Similar to WTF, people share stories of their sexual blunders. Great reading:
How Not to Get Laid: http://hntgl.com/
Aye, some of these are fucking brilliant. Not brilliant fucking perhaps, but there you go ;)
-
RE: Programming style question
Note that they don't suggest that it's better to always use a short variable name, only that *context* and *clarity* are the key. If you have a short function, and it's clear from context what i and c stand for within that function, then i and c are perfectly valid. If you've got a longish function with a dozen local variables, i and c could get lost in the shuffle. Use your common sense. Also, go upside the head of whatever TA suggested PositionInLineFromLeftSide and tell him it's from me.
I'm aware of that, I find this fragment useful because I'm taught to use long variable names regardless of context ;)
-
RE: Programming style question
I'm not aspiring to control the discussion, I hoped to get answers to my question and so far I got 4 of them (out of 54 posts).
For the record, in the meantime I found an excellent quote from The Practice of Programming by Brian Kernigham and Rob Pike:
"Programmers are often encouraged to use long variable names regardless of context. That is a mistake: clarity is often achieved through brevity."
-
RE: Programming style question
I asked for pointers to reference not for style guidance.
Besides, at least I'm not calling people names.