Python Forum
Newbie have thoughts about logic
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie have thoughts about logic
#8
(Sep-02-2021, 04:15 AM)perfringo Wrote: Consider this:

- for-loop means 'for each' and 'for each letter in word' is very logical in my mind
- for-loop is not the only loop in Python. There is also while-loop. Introducing 'loop' will therefore also introduce ambiguity (Python Zen: "In the face of ambiguity, refuse the temptation to guess")

Programming languages are artificial languages ("a language whose rules are explicitly established prior to its use") contrary to natural language ("a language whose rules are based on current usage without being specifically prescribed"). Do you see problem here? 'explicit rules' vs 'current usage'?

Also, if you learn any language you can't 'demand' or 'request' changes what are logical to you. My native language doesn't have gender-specific pronouns ('he', 'she') and it would be very logical for me to get rid of those words in english. We also don't have articles of noun ('a', 'the') and I still don't get why on earth these are necessary. However, english-native people don't understand nor recognize me and my problem(s) Smile.
Thank you for taking the time to answer.
You wrote: "- for-loop means 'for each' and 'for each letter in word' is very logical in my mind"
if for-loop means for each - why not simply use the for each expression in python instead of the for-loop expression? Then people didn't have to learn that for-loop really means for each. Maybe what I want is a computer that has learned my English instead of me having to learn python :)
Reply


Messages In This Thread
Newbie have thoughts about logic - by sdd - Sep-01-2021, 10:20 PM
RE: Newbie have thoughts about logic - by Yoriz - Sep-01-2021, 10:33 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-02-2021, 04:15 AM
RE: Newbie have thoughts about logic - by sdd - Sep-12-2021, 06:11 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-13-2021, 06:15 AM
RE: Newbie have thoughts about logic - by sdd - Sep-13-2021, 08:09 PM
RE: Newbie have thoughts about logic - by Lou - Sep-02-2021, 04:16 AM
RE: Newbie have thoughts about logic - by sdd - Sep-12-2021, 06:01 PM
RE: Newbie have thoughts about logic - by Yoriz - Sep-12-2021, 06:14 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-13-2021, 02:05 AM
RE: Newbie have thoughts about logic - by sdd - Sep-13-2021, 07:41 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-13-2021, 09:00 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-14-2021, 02:32 AM
RE: Newbie have thoughts about logic - by Larz60+ - Sep-14-2021, 02:51 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 01:07 AM
RE: Newbie have thoughts about logic - by bowlofred - Sep-15-2021, 03:11 AM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 06:42 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-15-2021, 03:35 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 11:11 AM
RE: Newbie have thoughts about logic - by perfringo - Sep-16-2021, 07:07 AM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 01:27 AM
RE: Newbie have thoughts about logic - by Larz60+ - Sep-15-2021, 09:08 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 11:37 AM
RE: Newbie have thoughts about logic - by snippsat - Sep-15-2021, 12:29 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 06:50 PM
RE: Newbie have thoughts about logic - by ndc85430 - Sep-16-2021, 06:09 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-16-2021, 07:36 PM
RE: Newbie have thoughts about logic - by Serafim - Sep-17-2021, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Thoughts on interfacing with a QR code reader that outputs keystrokes? wrybread 1 1,490 Oct-08-2021, 03:44 PM
Last Post: bowlofred
  How to timestamp a Python program, your thoughts? Orthoducks 2 4,672 Dec-02-2016, 12:06 AM
Last Post: Orthoducks

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020