Click here to Skip to main content
Email Password   helpLost your password?

Welcome to the Lounge! RSS Feed     


You must Sign In to use this message board.
 
 
Per page  Date Filter 
 FirstPrevNext
GeneralRe: Putting Green Bra
Steve Mayfield
14:05 11 Nov '09  
so go ahead and hit me while I'm double down Laugh

Steve
_________________
I C(++) therefore I am

GeneralRe: Putting Green Bra
PIEBALDconsult
15:19 11 Nov '09  
Nah, you can stand.
GeneralRe: Putting Green Bra
TheIndian
19:11 11 Nov '09  
This would be a 7 hole golf course though Poke tongue (could not stop posting this)
GeneralSo yet another programming language...
Kevin McFarlane
4:08 11 Nov '09  
...from Google - Go[^]

Apologies if repost.

Kevin

GeneralRe: So yet another programming language...
Rajesh R Subramanian
4:14 11 Nov '09  
Kevin McFarlane wrote:
...from Google - Go[^]

Apologies if repost.


Apologies accepted[^]

Smile

“Follow your bliss.” – Joseph Campbell

GeneralRe: So yet another programming language...
Kevin McFarlane
4:34 11 Nov '09  
Cheers. I went back a few pages before posting but not far enough! Smile

Kevin

GeneralRe: So yet another programming language...
PIEBALDconsult
7:00 11 Nov '09  
Try thread view; they're on the same page.
GeneralRe: So yet another programming language...
Kevin McFarlane
7:22 11 Nov '09  
Didn't even know about that! Blush You learn something new every day.

Kevin

GeneralRe: So yet another programming language...
Dalek Dave
4:14 11 Nov '09  
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

GeneralRe: So yet another programming language...
Jim Crafton
4:19 11 Nov '09  
I can see you've already blown my lunchtime reading for today Smile

Looks interesting, thanks for the link!

¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

GeneralRe: So yet another programming language...
Pete O'Hanlon
4:42 11 Nov '09  
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


GeneralRe: So yet another programming language...
Alan Balkany
6:38 12 Nov '09  
The Go page tells us it's only supported on the Mac OS and Linux. I can't help feeling like they forgot something...
GeneralRe: So yet another programming language...
Ravi Bhavnani
7:18 12 Nov '09  
Heh.  Love the Pascal assignment operator!

/ravi

My new year resolution: 2048 x 1536
Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

GeneralCommentaries - above or below the code?
Jacek Gajek
2:47 11 Nov '09  
A programmingcommenting question.

I have been writing commentaries above a related line of code, like this:
// The Init() method we call here initializes an array of points
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();
// The Init() method we call here initializes an array of points
Sincerely, I have found it very clear and understable. Did anybody encounter such approach to commenting code? Is it recommended?

Greetings - Jacek

GeneralRe: Commentaries - above or below the code?
Nishant Sivakumar
2:49 11 Nov '09  
If it's a small comment, you could even do this:

Init(); // The Init() method we call here initializes an array of points



GeneralRe: Commentaries - above or below the code?
Norm .net
3:38 11 Nov '09  
Some people can't see with wood from the trees Smile


GeneralRe: Commentaries - above or below the code?
Electron Shepherd
3:46 11 Nov '09  
Or even better, rename the function so you don't need the comment.


GeneralRe: Commentaries - above or below the code?
RichardM1
14:13 12 Nov '09  
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.

GeneralRe: Commentaries - above or below the code?
Duncan Edwards Jones
2:51 11 Nov '09  
above

Humans read downwards and we want to know what you intend to do (comment) before we read what you are doing (code).

'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd

GeneralRe: Commentaries - above or below the code?
Rajesh R Subramanian
2:52 11 Nov '09  
Above or on the same line, but never below.

“Follow your bliss.” – Joseph Campbell

GeneralRe: Commentaries - above or below the code?
1.21 Gigawatts
2:58 11 Nov '09  
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.

GeneralRe: Commentaries - above or below the code?
Media2r
3:10 11 Nov '09  
You think he's Superman?

//L
GeneralRe: Commentaries - above or below the code?
RichardM1
14:14 12 Nov '09  
Wait a minute, is there some problem with that? WTF

Silver member by constant and unflinching longevity.

GeneralRe: Commentaries - above or below the code?
crudeCodeYogi
3:09 11 Nov '09  
Above.
When reading code it helps you to understand what the following line does.

If you fail to plan, you plan to fail!

Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya

GeneralRe: Commentaries - above or below the code?
Aman Bhullar
3:28 11 Nov '09  
Above are the Comments for human. Smile

Below may be for the machine. Roll eyes

Regards
Aman Bhullar
www.arlivesupport.com[^]


Last Updated 12 Mar 2010 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2010