July 20, 2017 at 9:24 pm
Comments posted to this topic are about the item Python Delimiters
July 21, 2017 at 12:26 am
Never used Python but still good question, thanks Steve.
...
July 21, 2017 at 7:48 am
hahahahahahahahahahahahahahahaha....
I got it right
Because I knew it
From a class I took in October
lulz
------------------------------------------------------------------------------------------------Standing in the gap between Consultant and ContractorKevin3NFDallasDBAs.com/BlogWhy is my SQL Log File HUGE?!?![/url]The future of the DBA role...[/url]SQL Security Model in Plain English[/url]
July 21, 2017 at 8:10 am
I would have have gotten this if I hadn't gone through a book a couple years ago.
If anyone wants to learn more, this is how I got started: https://www.youtube.com/watch?v=IbYyVh5BZws
July 21, 2017 at 8:40 am
Having helped my daughter with learning Python for one of her CS classes this question was easy.
July 21, 2017 at 9:18 am
I'm not sure I like the idea of significant whitespace, oh well I did get the question right since I remembered this as one of the reasons I didn't want to get too much into Python.
July 21, 2017 at 9:37 am
Chris Harshman - Friday, July 21, 2017 9:18 AMI'm not sure I like the idea of significant whitespace, oh well I did get the question right since I remembered this as one of the reasons I didn't want to get too much into Python.
Meaningful whitespace is a huge drawback for Python, IMO.
I can't count how many times, I've asked "Is that a tab, or is it four spaces?" So frustrating!
July 21, 2017 at 12:01 pm
After a month or so, I came to appreciate the whitespace. I think it makes reading much easier. Easier than finding the curly braces in C#, IMHO.
July 21, 2017 at 1:10 pm
Kaye Cahs - Friday, July 21, 2017 9:37 AMChris Harshman - Friday, July 21, 2017 9:18 AMI'm not sure I like the idea of significant whitespace, oh well I did get the question right since I remembered this as one of the reasons I didn't want to get too much into Python.Meaningful whitespace is a huge drawback for Python, IMO.
I can't count how many times, I've asked "Is that a tab, or is it four spaces?" So frustrating!
I find that I use whitespace to make code in SQL or JavaScript or Prolog or LML or Algol or indeed almost any programming langage I've ever used easier to follow. If a language requires such layout that's not a minus, it's a plus because developers who are too dim to use layout to make their code clear are forced to lay their code out sensibly anyway. Insisting on indents being a fixed number of spaces rather than whatever I've chosen to set my tabs to is annoying but I don't think Python commits that particular bit of silliness, although I remember coming across it in a different language in about 1968.
Tom
July 21, 2017 at 1:31 pm
I'm not arguing against whitespace, I vertically use whitespace to separate things, and indent code all the time (even if I'm just writing a 3 line ad-hoc query). I just don't think that only using indentation to signify blocks or execution scope of code is an advance over what other languages do.
July 21, 2017 at 2:33 pm
Chris Harshman - Friday, July 21, 2017 1:31 PMI'm not arguing against whitespace, I vertically use whitespace to separate things, and indent code all the time (even if I'm just writing a 3 line ad-hoc query). I just don't think that only using indentation to signify blocks or execution scope of code is an advance over what other languages do.
I wouldn't say it's an advance, either, although I've known several developers for whom the discipline of having to indent would have been a good thing, enormously improving the clarity of their appallingly bad code.
And it's important to remember that Python allows you to use bracketing as well as indentation, and that in Python bracketing (if used) overrides indentation.
Of course most of the fore-mentioned developers would probably benefit from it language which required them to use both bracketing and indentation and make the two match.
Tom
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply