LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > 2007 LinuxQuestions.org Members Choice Awards
User Name
Password
2007 LinuxQuestions.org Members Choice Awards This forum is for the 2007 LinuxQuestions.org Members Choice Awards.
You can now vote for your favorite products of 2007. This is your chance to be heard! Voting ends February 21st.

Notices

View Poll Results: Programming Language of the Year
PHP 136 13.78%
Perl 77 7.80%
Python 215 21.78%
Ruby 74 7.50%
Java 108 10.94%
C 138 13.98%
C++ 167 16.92%
Lisp 18 1.82%
Smalltalk 4 0.41%
erlang 4 0.41%
Haskell 17 1.72%
C# 25 2.53%
JavaFX Script 4 0.41%
Voters: 987. You may not vote on this poll

Reply
 
Search this Thread
Old 02-29-2008, 09:48 PM   #106
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 41

Quote:
Originally Posted by jgombos View Post
it varies from one context to the next.
Curious: what do you mean by that?

Also, I don't really understand why people are scared off by the whitespace thing, but it's probably just my anal nature to keep my code neat and clean that has made it a non-issue for me.
 
Old 02-29-2008, 10:23 PM   #107
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
Quote:
Originally Posted by taylor_venable View Post
Curious: what do you mean by that?
I don't know exactly myself, because I didn't get past the intro in a python book before bailing on the idea. But someone told me the whitespace sometimes has meaning that changes depending on how much whitespace there is, under some circumstances. I said, no thanks. It's bad enough that the language is going to make style decisions for me. May be appropriate for a team environment, but not the individual.
Quote:
Originally Posted by taylor_venable View Post
Also, I don't really understand why people are scared off by the whitespace thing, but it's probably just my anal nature to keep my code neat and clean that has made it a non-issue for me.
Everyone has a different idea of what's readable. You're apparently lucky that the language mandated layout appears clean to you.

I cannot stand the K&R format, but to others there's nothing more readable. And others find my Whitesmith style intolerable, when really there's no better choice.

Last edited by jgombos; 02-29-2008 at 10:24 PM.
 
Old 02-29-2008, 10:40 PM   #108
paddy3118
LQ Newbie
 
Registered: Jul 2007
Location: Bristol UK
Distribution: RedHat, Cygwin
Posts: 14

Rep: Reputation: 0
Smile

Quote:
Originally Posted by jgombos View Post
I started to give python a gander.. and got scared off upon discovering that whitespace actually has meaning - and that it varies from one context to the next.
It is indentation that has meaning rather than the more general 'whitespace'.

The rules for indentation in Python are:
  1. Indentation follows program logic.
  2. Don't mix tabs and spaces in indentation.
The first is enforced by the interpreter. Why would you want the programs indentation to not follow the programs logical structure?
The second isn't, but gets more support in Python 3 which is currently alpha testing.

- Paddy.
 
  


Reply

Tags
languages, lua


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM


All times are GMT -5. The time now is 09:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration