Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Getting started in functional programming
Post: Getting started in functional programming

I posted a video with a simple tip for getting started in functional programming. Comments are welcome. https://www.youtube.com/watch?v=K9pCZLpFRbs
swisscheese Tutorial Requests and Submissions 0 1,479 Jan-02-2021, 06:18 PM
    Thread: Moving to Functional
Post: RE: Moving to Functional

Gribouillis - Tested and works - nice work! Now I just have to work on getting my head around it ;-)
swisscheese Code Review 11 4,957 Dec-17-2020, 12:57 PM
    Thread: Moving to Functional
Post: RE: Moving to Functional

Thank you very much again - I'm impressed. Unfortunately that takes me down what appears to be a huge rabbit hole with: RuntimeError: The current Numpy installation ('C:\\Users\\Autologin\\AppData\...
swisscheese Code Review 11 4,957 Dec-15-2020, 08:08 PM
    Thread: Moving to Functional
Post: RE: Moving to Functional

I wonder how to minimize loops and variables. Overall the code is still imperative. def CountRuns (rec,counts): for j in range(10): counts[j] += RecRan(rec, j) def Report (): data = Load () ...
swisscheese Code Review 11 4,957 Dec-15-2020, 10:27 AM
    Thread: Moving to Functional
Post: RE: Moving to Functional

I tested your code and it worked with minor mods - nice work!
swisscheese Code Review 11 4,957 Dec-14-2020, 09:22 PM
    Thread: Moving to Functional
Post: RE: Moving to Functional

Thank you very much. I will study your suggestion. I wonder if there is a way to further reduce mutation and state.
swisscheese Code Review 11 4,957 Dec-14-2020, 01:41 PM
    Thread: Moving to Functional
Post: Moving to Functional

Can anyone help explain how to make this snippet follow a more functional style? I was able to functionalize other portions of the code but having trouble with this. def Report (): data = Load () ...
swisscheese Code Review 11 4,957 Dec-13-2020, 09:30 PM
    Thread: Basic client server code question
Post: RE: Basic client server code question

It's not a homework assignment. I sounds that way because I stripped the code down to a trivial case for clarity.
swisscheese Networking 4 3,274 Dec-11-2020, 04:36 PM
    Thread: Basic client server code question
Post: Basic client server code question

# This is a simple python web server which displays a button and “Hello”. # How can I modify the code so that when I click the button the webpage shows the word “There”? # I need the button to make a...
swisscheese Networking 4 3,274 Dec-09-2020, 04:24 PM

User Panel Messages

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