3 ms·
I would love to see an example of a large project in another language besides python, that uses frequent cases of non-pythonic indentation. Sure, there are cer
by alexanderh 14y ago
I would love to see an example of a large project in another language besides python, that uses frequent cases of non-pythonic indentation.
Sure, there are certain edge cases when I wish I could represent something all in one line, or something similar, but they are so few and far between that I really cant see it as a major argument against not wanting to use python.
I felt the same way about whitespace at one time, but then I got used to it, and wonder why I ever felt so strongly one way or the other. The cases when my indentation isnt exactly like python in other languages is very rare.
If you find yourself using frequent cases of non-pythonic indentation in other languages, you may be writing some very unfriendly/unreadable code in a lot of instances.
It may make sense to you, but I wouldnt want to work on the same team.
- kamaal 14y agoThe problem is something like this. There is a cancer patient and he complains of head ache, the family members around give him a Paracetamol 500mg. The family members now also expect that Paracetamol just given will also cure him of cancer apart from curing his headache too. Python people constantly advocating white space indentation as some kind panacea to all programming problems programmers have ever faced is irritating to those people who know it is not and can never be. Also look at what is happening in this thread. This thread is about Ruby, every time some thread on Ruby or Perl is started- You see Python trolls descending all over the thread to push their shiny tool down others throat. I mean this is happening for years now, may be even decades. There is also this quote... "And what defines a 'python activist' anyway? Blowing up Perl installations worldwide?" - Ivan Van Laningham http://mail.python.org/pipermail/python-announce-list/2005-June/004139.html http://mail.python.org/pipermail/python-announce-list/2005-J... That is how notoriously Python people troll on other languages. Trolling on other languages is a irritating thing, sooner or later people figure you have nothing to offer. Instead of doing this and trolling on other languages, may be the Python community should build about something awesome and let people decide if they should use on its merits.
- wyuenho 14y agoYou should note that there's a huge gap in the definition in the English language between "trolling" and "defending". Also, stop putting your words into other people's mouth. Who here is advocating Python indentation as a cure-all? Point is, you can talk about Ruby all you want, but when you diss on Python indentation, you'd better back up your opinions with facts instead of substituting your opinion as facts. The only valid reason to diss on Python indentation is if you find yourself constantly writing really long functions in multiple nested blocks. You'll have trouble seeing which block you are closing the further down you go. Now we are done defending, I still haven't seen a valid argument against Python whitespace, or people who have the guts to say they just don't like it.
- kamaal 14y agoWhat exactly are Python defending in a "Ruby 2.0.0 Released" thread? What is the there to defend here? The title is "Ruby 2.0.0 Released" not "Ruby 2.0.0 Released against Python". Why did the OP of this thread even question the relevance of Ruby as compared to "Python". And why is it that only Python people feel a need to do that in every thread on other languages? Its always the Python guys who do this, I never see any Java, C, C++ or Perl guys do this. This has become very common. The way I see and this very theme, is pretty re current in every language thread. >>I still haven't seen a valid argument against Python whitespace I still haven't seen a valid argument on why Python people need to descend on every language thread and start this discussion. Even if the topic has nothing even remotely to do with Python. >>or people who have the guts to say they just don't like it. Or people who have the guts to see an opportunity on every language thread, then descend and do marketing-through-trolling.
- wyuenho 14y agoDo you even know how forums work? Did you even read this thread? When I click the reply button to levels down am I replying the parent comment or the OP? The sole reason I'm here is to find out what's new and fun in Ruby. The reason I'm replying is because I see people spreading FUD again about Python's whitespace rules without anything to back it up. I've seen tons of derogatory names Java, C, C++ people call Pythonistas, Rubyists and Perlists scripting kiddies and such. I've seen some pretty prominent Perl hackers (Sam Tregar and others) complaining about Python's range start at 0 and such. Stop living in a paranoia bubble and think everyone is against you.