|
Damnit, I read that, guessed Andromeda just from the first part and the awkward transition to the second part, but didn't respond in time I'm usually pretty slow at these too. Well done Peejay
|
|
|
|
|
I got a bit lucky with the timing today, I just happened to look within a few minutes of it being posted - they're usually long solved by the time I see them.
Slogans aren't solutions.
|
|
|
|
|
How does "nearby star" lead to "Andromeda"? It's not a star, and it's 2.5 million light years away!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
When the universe is estimated at 93 billion light-years across, 2.5 million light years is "nearby".
|
|
|
|
|
Nearby star family (galaxy in loose terms) leads to it. Andromeda galaxy is the nearest one to ours. It is not a friendly one either. Just in few billion years, it will take over our nice little Milky way.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
Ah, "star family", not "star". That makes more sense.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
I'm even worse -- if I see a book like that in the bargain bin, I'll actually buy it!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Back at my old job we kept Pascal, VB4 and Clipper books around.
That stuff was from the 80's and early 90's.
We also had a VB6 book that we actually used from time to time
|
|
|
|
|
My shelf starts with K&R, a 1981 copy (I got it actually much later)...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I still have all my books from when I got my degree. I have loaned out the COBOL book as a monitor stand though.
|
|
|
|
|
Old IT books are the gift that keeps on giving - I have a book on VB6 performing sterling work as a monitor riser.
Slogans aren't solutions.
|
|
|
|
|
I currently have 7 programming related books doing duty as monitor/laptop stands at the moment. Web Programming with Rerl, VC++6, and a computer architecture textbook for the right monitor stand. My laptop stand stack consists of 3 old text books: C++ Algorithms, C++ Data Structures, Tanenbaum's Modern Operating Systems (2nd ed), and one classic i bought with my own money: Tufte's The Visual Display of Quantitative Data. My center monitor was something I was able to pick out as opposed to something already in the office and available; it has a proper adjustable stand.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Code books are like old T-Shirts, just can't seen to justify throwing them out!
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
My belly has made that decision easy.
|
|
|
|
|
I hear ya, am getting there myself!
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
As people prepare to evacuate their cubes they are cleaning out... I recently gained A UNIX System V book and a COBOL book.
|
|
|
|
|
can anyone point me to it? my search-fu is failing me.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
|
Not the one I was looking for which is Multiple Return Statements - blog@CodeFX[^] but that's a good one as well.
thanks
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Look like one of the reason people like me don't use C++ at all at work....
|
|
|
|
|
I think this thread would be more valuable, in the long run if it were in the C# language forum.
Yegor Bugayenko has some interesting views on this topic: [^].
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
modified 24-Jan-17 3:34am.
|
|
|
|
|
I disagree that this would be more valuable in the C# forum. This is not just a C# case, but has implications on the thought processes of developers in any OOP language as well as procedural languages.
As to Yegor's article, I have to admit that it's not very compelling. While he says that the features he wants don't exist in a modern OOP language, he then says "stick with one and try and look like pure OOP" without justifying why this is purer OOP (I would argue heavily that it isn't). Statements without clear arguments backing up the approach means that I'm more likely to ignore a proposal, especially as his argument completely fails to address issues such as cyclomatic complexity.
This space for rent
|
|
|
|
|
Hi, Pete,Pete O'Hanlon wrote: This is not just a C# case, but has implications on the thought processes of developers in any OOP language as well as procedural languages Of course, I agree, CP does not have, now, a popular, widely used, forum for such "generic" discussions; in fact, I think there is much more "value meat" in content where such design principles are salient in articles "grounded" in usage in specific languages, and frameworks.
I'd consider your recent articles here an "epitome" of exactly such design content grounded in real-world coding contexts.
The issue I bring up here is one I have "banged the drum" about many times: imho there is technical content, like this thread, that could very valuable for many CP users in the future ... if it were not "submerged" in the spate of the ever-overflowing Lounge collage of bonhomie, brain-farts, puzzles, rambles, etc.
Since there are forums designed for specific languages, here, which are very popular, my idea, based on sheer pragmatism, was to have a way to hoist this content out of the Lounge, put it on one of those forums, and, hopefully, enable further technical discussion.Pete O'Hanlon wrote: his argument completely fails to address isusues such as cyclomatic complexity. You can bet yor boots (... err ... jodhpurs ?) I and others here would like to hear your thoughts on cyclomatic complexity and the issue of when, and how, to "return" !
Finally, I linked to Yegor's blog post because it was cited in one of the other posts mentioned, and because I thought it would add a contrarian perspective to the discussion. I do not endorse Yegor's views.
Personally, I favor using explicit multiple 'returns, rather than "fall through" to one 'return.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
I can't read the articles (company rule blocking Internet access) but I give my experience on the subject.
At first I believed - and wrote my code in such a way - that returning early from a function wasn't a bad choice because it allowed to avoid conditional execution of subsequent actions should one prerequisite not be met and because all in all it's faster: if something's already over then why execute other operations?
Then reality hit me hard:
1) Intermediate return points are easy to miss and lead to a waste of time during debug, as I'd have to set breakpoints on every return statement and as I said they are easy to miss;
2) Adding further logic that check complex conditions in order to decide the course of action requires more work as you'd have to substitute the clean return with the very same state variables that you'd have to use in case of a single point of exit;
3) Logging at the end of a function with the whole state of the operations is done extremely cleanly if there is one or only a few return points. The more exit points the more recaps you have to write... and that's redundance, with all the known problems it carries;
4) clean-ups!!! With the bare minimum of return points it's very easy to place the various free(), delete, WSACleanup, whatever you need: just before the return! If there are previous triggerable returns chance are that in those cases, which may be rare, the cleanups are not called. Hilarity ensues.
So while I'm not a taliban of single point of exit (sometimes they are the best choice) as of now I prefer going in that direction as my experience proved me that on the long run it's the most stable and observable pattern.
Take my two cents for what they are worth.
CALL APOGEE, SAY AARDWOLF
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
"Go ahead, make my day"
|
|
|
|
|