 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Just what the world needs, another ALGOL based multi-paradigm, imperative, functional, generic, object-oriented language.
Can't we all just settle on COBOL and be done with it?
------------------------------------
In science, 'fact' can only mean 'confirmed to such a degree that it would be perverse to withhold provisional assent.' I suppose that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. Stephen J Gould
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
|
 |
|
 |
Go is only part of it's name. The rest of it is rather obscene, and biologically very tricky, except for those who are very, very blessed.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes. My blog | My articles | MoXAML PowerToys | Onyx
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
 |
The Go page tells us it's only supported on the Mac OS and Linux. I can't help feeling like they forgot something...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
A programmingcommenting question.
I have been writing commentaries above a related line of code, like this:
Init(); However, I have seen a big sample of code written by one of my professors recently. The commentaries was placed below a line.
Init();
Sincerely, I have found it very clear and understable. Did anybody encounter such approach to commenting code? Is it recommended?
Greetings - Jacek
|
| Sign In·View Thread·PermaLink | 2.75/5 |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
That's right. The old 'self documenting code' joke is not always a joke. Take time and space to make variable names mean something. Make the method name be really indicative of what it does. I use long, descriptive variable and method names, and my experience is that they are more likely to stay up to date than the comments are, and less likely to be re-used in an inappropriate manner. 'int i;' will get used/reused on demand, but 'int windowIdx; will generally only be used for the index of a window, into a list of windows. But comments are required where the code can not be made easy to understand, because it is actually very complex algorithm, it has been optimized, or for some other reason obfuscated.
Silver member by constant and unflinching longevity.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
above
Humans read downwards and we want to know what you intend to do (comment) before we read what you are doing (code).
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
|
 |
|
 |
Comments below the line of code?
Sure, if you're the sort of person who wears their underpants on top of their trousers.
"People who don't like their beliefs being laughed at shouldn't have such funny beliefs." ~ Anon "If you can't explain it simply, you don't understand it well enough" ~ Albert Einstein
Currently reading: 'The Greatest Show on Earth', by Richard Dawkins.
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
|
 |