Python Delimiters

  • Comments posted to this topic are about the item Python Delimiters

  • Never used Python but still good question, thanks Steve.

    ...

  • 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]

  • 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

  • Having helped my daughter with learning Python for one of her CS classes this question was easy.

  • 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.

  • Chris Harshman - Friday, July 21, 2017 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.

    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!

  • 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.

  • Kaye Cahs - Friday, July 21, 2017 9:37 AM

    Chris Harshman - Friday, July 21, 2017 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.

    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

  • 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.

  • Chris Harshman - Friday, July 21, 2017 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.

    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